From cdac73792590dd66e39a9a14c09c56b14c485fe6 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 21 Nov 2013 23:36:39 -0200 Subject: [PATCH] Better positioning of the text on Weightsystems table. Same as the cylinder, but for weightsystem. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/models.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index f44704939..71e0ec19d 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -106,7 +106,7 @@ QVariant CylindersModel::data(const QModelIndex& index, int role) const } case Qt::TextAlignmentRole: ret = Qt::AlignCenter; - break; + break; case Qt::DisplayRole: case Qt::EditRole: switch(index.column()) { @@ -447,8 +447,8 @@ QVariant WeightModel::data(const QModelIndex& index, int role) const ret = defaultModelFont(); break; case Qt::TextAlignmentRole: - ret = Qt::AlignRight; - break; + ret = Qt::AlignCenter; + break; case Qt::DisplayRole: case Qt::EditRole: switch(index.column()) {