diff options
author | Arno <am@disconnect.de> | 2013-05-24 15:18:53 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-05-24 15:18:53 +0200 |
commit | 1661cab2c916c4b7595f5468b905c37ae79bbd60 (patch) | |
tree | 0941d3ed69cee50a0fb5ff64c0a6eadf729472b5 /filestreemodel.cpp | |
parent | 6d67170284ac0dcf05f7e56ad60ddc2213f5d89c (diff) | |
download | SheMov-1661cab2c916c4b7595f5468b905c37ae79bbd60.tar.gz SheMov-1661cab2c916c4b7595f5468b905c37ae79bbd60.tar.bz2 SheMov-1661cab2c916c4b7595f5468b905c37ae79bbd60.zip |
Fix alignment in FilesTreeModel
Also align columns vertically when Qt:AlignRight is in effect.
Diffstat (limited to 'filestreemodel.cpp')
-rw-r--r-- | filestreemodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/filestreemodel.cpp b/filestreemodel.cpp index f7763e4..b6738af 100644 --- a/filestreemodel.cpp +++ b/filestreemodel.cpp @@ -174,7 +174,8 @@ QVariant FilesTreeModel::data(const QModelIndex &index, int role) const{ } if(role == Qt::TextAlignmentRole){ if(index.column() > 0 && index.column() < 4){ - return Qt::AlignRight; + int retval = Qt::AlignRight | Qt::AlignVCenter; + return retval; } } if(role == Qt::ForegroundRole){ |