From 1661cab2c916c4b7595f5468b905c37ae79bbd60 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 24 May 2013 15:18:53 +0200 Subject: Fix alignment in FilesTreeModel Also align columns vertically when Qt:AlignRight is in effect. --- filestreemodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'filestreemodel.cpp') 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){ -- cgit v1.2.3-70-g09d2