diff --git a/retroshare-gui/src/gui/MessagesDialog.cpp b/retroshare-gui/src/gui/MessagesDialog.cpp
index 15e22a9f8..57a50679a 100644
--- a/retroshare-gui/src/gui/MessagesDialog.cpp
+++ b/retroshare-gui/src/gui/MessagesDialog.cpp
@@ -105,7 +105,8 @@ MessagesDialog::MessagesDialog(QWidget *parent)
msgwheader->setResizeMode (3, QHeaderView::Interactive);
msgwheader->resizeSection ( 0, 24 );
- msgwheader->resizeSection ( 2, 250 );
+ msgwheader->resizeSection ( 1, 250 );
+ msgwheader->resizeSection ( 2, 140 );
msgwheader->resizeSection ( 3, 140 );
/* Set header resize modes and initial section sizes */
@@ -138,6 +139,9 @@ MessagesDialog::MessagesDialog(QWidget *parent)
ui.msgWidget->sortItems( 3, Qt::DescendingOrder );
loadToolButtonsettings();
+
+ mFont = QFont("Times", 11, QFont::Bold);
+ ui.subjectText->setFont(mFont);
/* Hide platform specific features */
@@ -624,26 +628,26 @@ void MessagesDialog::insertMessages()
// From ....
{
- item -> setText(1, QString::fromStdString(rsPeers->getPeerName(it->srcId)));
+ item -> setText(2, QString::fromStdString(rsPeers->getPeerName(it->srcId)));
}
// Subject
- item -> setText(2, QString::fromStdWString(it->title));
+ item -> setText(1, QString::fromStdWString(it->title));
// Change Message icon when Subject is Re: or Fwd:
QString text = QString::fromStdWString(it->title);
if (text.startsWith("Re:", Qt::CaseInsensitive))
{
- item -> setIcon(2, (QIcon(":/images/message-mail-replied-read.png")));
+ item -> setIcon(1, (QIcon(":/images/message-mail-replied-read.png")));
}
else if (text.startsWith("Fwd:", Qt::CaseInsensitive))
{
- item -> setIcon(2, (QIcon(":/images/message-mail-forwarded-read.png")));
+ item -> setIcon(1, (QIcon(":/images/message-mail-forwarded-read.png")));
}
else
{
- item -> setIcon(2, (QIcon(":/images/message-mail-read.png")));
+ item -> setIcon(1, (QIcon(":/images/message-mail-read.png")));
}
if (it -> msgflags & RS_MSG_NEW)
@@ -658,15 +662,15 @@ void MessagesDialog::insertMessages()
if (text.startsWith("Re:", Qt::CaseInsensitive))
{
- item -> setIcon(2, (QIcon(":/images/message-mail-replied.png")));
+ item -> setIcon(1, (QIcon(":/images/message-mail-replied.png")));
}
else if (text.startsWith("Fwd:", Qt::CaseInsensitive))
{
- item -> setIcon(2, (QIcon(":/images/message-mail-forwarded.png")));
+ item -> setIcon(1, (QIcon(":/images/message-mail-forwarded.png")));
}
else
{
- item -> setIcon(2, (QIcon(":/images/message-mail.png")));
+ item -> setIcon(1, (QIcon(":/images/message-mail.png")));
}
}
diff --git a/retroshare-gui/src/gui/MessagesDialog.h b/retroshare-gui/src/gui/MessagesDialog.h
index accb2fb82..d00ba6417 100644
--- a/retroshare-gui/src/gui/MessagesDialog.h
+++ b/retroshare-gui/src/gui/MessagesDialog.h
@@ -106,6 +106,8 @@ private:
QAction* getAllRecAct;
QString fileName;
+
+ QFont mFont;
/** Qt Designer generated object */
diff --git a/retroshare-gui/src/gui/MessagesDialog.ui b/retroshare-gui/src/gui/MessagesDialog.ui
index e789ef19f..b68573788 100644
--- a/retroshare-gui/src/gui/MessagesDialog.ui
+++ b/retroshare-gui/src/gui/MessagesDialog.ui
@@ -971,12 +971,12 @@ p, li { white-space: pre-wrap; }
- From
+ Subject
- Subject
+ From
@@ -1078,7 +1078,7 @@ p, li { white-space: pre-wrap; }
16777215
- 10
+ 12
@@ -1135,7 +1135,7 @@ p, li { white-space: pre-wrap; }
16777215
- 10
+ 12
@@ -1192,7 +1192,7 @@ p, li { white-space: pre-wrap; }
16777215
- 10
+ 12