summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-11-21 23:36:39 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-22 07:34:45 -0800
commitcdac73792590dd66e39a9a14c09c56b14c485fe6 (patch)
tree7e795a0fe8ec4de5aa83ce65f5a204475189e96d /qt-ui/models.cpp
parentbc461d091c9d6a7b027d76347b328ff8b33e23ce (diff)
downloadsubsurface-cdac73792590dd66e39a9a14c09c56b14c485fe6.tar.gz
Better positioning of the text on Weightsystems table.
Same as the cylinder, but for weightsystem. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp6
1 files 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()) {