diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-06-30 15:34:55 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-30 16:03:46 -0700 |
commit | 4c7ea24921ddf44b4250cf65209f96a4ff121620 (patch) | |
tree | af9b6f1b0e330d6776a8ab24e398569cadce3624 /qt-ui/models.cpp | |
parent | fd22e8123b18e52610e36b21f29f3a80850d8dee (diff) | |
download | subsurface-4c7ea24921ddf44b4250cf65209f96a4ff121620.tar.gz |
Align the texts on the Left inside of Right for the DiveList
The Qt Framework adds a visual 'tab' on the children of a
node, but if we forced a right alignment on them, it will
lose that.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r-- | qt-ui/models.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 823619f64..1b7f028e7 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -1053,16 +1053,7 @@ QVariant DiveItem::data(int column, int role) const switch (role) { case Qt::TextAlignmentRole: - switch (column) { - case DATE: /* fall through */ - case SUIT: /* fall through */ - case LOCATION: - retVal = int(Qt::AlignLeft | Qt::AlignVCenter); - break; - default: - retVal = int(Qt::AlignRight | Qt::AlignVCenter); - break; - } + retVal = int(Qt::AlignLeft | Qt::AlignVCenter); break; case DiveTripModel::SORT_ROLE: Q_ASSERT(dive != NULL); |