mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -05:00
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
This commit is contained in:
parent
cef2c1218f
commit
718ed562ca
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user