From 718ed562ca30c9f203fdff8b13bcd847fc425f59 Mon Sep 17 00:00:00 2001 From: defnax Date: Sun, 23 May 2010 18:17:08 +0000 Subject: [PATCH] set for Attachments column to display a icon and fixed size git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2976 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/MessagesDialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/MessagesDialog.cpp b/retroshare-gui/src/gui/MessagesDialog.cpp index 4d5a13b20..423d4e298 100644 --- a/retroshare-gui/src/gui/MessagesDialog.cpp +++ b/retroshare-gui/src/gui/MessagesDialog.cpp @@ -169,7 +169,7 @@ MessagesDialog::MessagesDialog(QWidget *parent) // Set the QStandardItemModel MessagesModel = new QStandardItemModel(0, COLUMN_COUNT); - MessagesModel->setHeaderData(COLUMN_ATTACHEMENTS, Qt::Horizontal, tr("#")); + MessagesModel->setHeaderData(COLUMN_ATTACHEMENTS, Qt::Horizontal, QIcon(":/images/attachment.png"), Qt::DecorationRole); MessagesModel->setHeaderData(COLUMN_SUBJECT, Qt::Horizontal, tr("Subject")); MessagesModel->setHeaderData(COLUMN_READ, Qt::Horizontal, QIcon(":/images/message-mail-state-header.png"), Qt::DecorationRole); MessagesModel->setHeaderData(COLUMN_FROM, Qt::Horizontal, tr("From")); @@ -253,6 +253,7 @@ MessagesDialog::MessagesDialog(QWidget *parent) processSettings(true); /* Set header sizes for the fixed columns and resize modes, must be set after processSettings */ + msgwheader->setResizeMode (COLUMN_ATTACHEMENTS, QHeaderView::Fixed); msgwheader->setResizeMode (COLUMN_DATE, QHeaderView::Interactive); msgwheader->setResizeMode (COLUMN_READ, QHeaderView::Fixed); msgwheader->resizeSection (COLUMN_READ, 24);