From 051ce984ede074b1e1b029d78db418cde6e67611 Mon Sep 17 00:00:00 2001 From: defnax Date: Sat, 19 Jun 2010 18:06:04 +0000 Subject: [PATCH] set TextAlignment for Attachments AlignCenter git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3171 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/MessagesDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/MessagesDialog.cpp b/retroshare-gui/src/gui/MessagesDialog.cpp index bd351a725..90de7ea56 100644 --- a/retroshare-gui/src/gui/MessagesDialog.cpp +++ b/retroshare-gui/src/gui/MessagesDialog.cpp @@ -1552,8 +1552,8 @@ void MessagesDialog::insertMessages() std::ostringstream out; out << it -> count; item[COLUMN_ATTACHEMENTS] -> setText(QString::fromStdString(out.str())); - item[COLUMN_ATTACHEMENTS]->setData(item[COLUMN_ATTACHEMENTS]->text() + dateString, Qt::UserRole); - //item -> setTextAlignment( 0, Qt::AlignCenter ); + item[COLUMN_ATTACHEMENTS] -> setData(item[COLUMN_ATTACHEMENTS]->text() + dateString, Qt::UserRole); + item[COLUMN_ATTACHEMENTS] -> setTextAlignment(Qt::AlignHCenter); } if (nFilterColumn == COLUMN_CONTENT) {