From 4c7ea24921ddf44b4250cf65209f96a4ff121620 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 30 Jun 2014 15:34:55 -0300 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- qt-ui/models.cpp | 11 +---------- 1 file changed, 1 insertion(+), 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);