mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
changed Column order ,set Subject Label bold
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2129 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
de288d196d
commit
d8a8f041ce
@ -105,7 +105,8 @@ MessagesDialog::MessagesDialog(QWidget *parent)
|
|||||||
msgwheader->setResizeMode (3, QHeaderView::Interactive);
|
msgwheader->setResizeMode (3, QHeaderView::Interactive);
|
||||||
|
|
||||||
msgwheader->resizeSection ( 0, 24 );
|
msgwheader->resizeSection ( 0, 24 );
|
||||||
msgwheader->resizeSection ( 2, 250 );
|
msgwheader->resizeSection ( 1, 250 );
|
||||||
|
msgwheader->resizeSection ( 2, 140 );
|
||||||
msgwheader->resizeSection ( 3, 140 );
|
msgwheader->resizeSection ( 3, 140 );
|
||||||
|
|
||||||
/* Set header resize modes and initial section sizes */
|
/* Set header resize modes and initial section sizes */
|
||||||
@ -139,6 +140,9 @@ MessagesDialog::MessagesDialog(QWidget *parent)
|
|||||||
|
|
||||||
loadToolButtonsettings();
|
loadToolButtonsettings();
|
||||||
|
|
||||||
|
mFont = QFont("Times", 11, QFont::Bold);
|
||||||
|
ui.subjectText->setFont(mFont);
|
||||||
|
|
||||||
|
|
||||||
/* Hide platform specific features */
|
/* Hide platform specific features */
|
||||||
#ifdef Q_WS_WIN
|
#ifdef Q_WS_WIN
|
||||||
@ -624,26 +628,26 @@ void MessagesDialog::insertMessages()
|
|||||||
|
|
||||||
// From ....
|
// From ....
|
||||||
{
|
{
|
||||||
item -> setText(1, QString::fromStdString(rsPeers->getPeerName(it->srcId)));
|
item -> setText(2, QString::fromStdString(rsPeers->getPeerName(it->srcId)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Subject
|
// Subject
|
||||||
item -> setText(2, QString::fromStdWString(it->title));
|
item -> setText(1, QString::fromStdWString(it->title));
|
||||||
|
|
||||||
// Change Message icon when Subject is Re: or Fwd:
|
// Change Message icon when Subject is Re: or Fwd:
|
||||||
QString text = QString::fromStdWString(it->title);
|
QString text = QString::fromStdWString(it->title);
|
||||||
|
|
||||||
if (text.startsWith("Re:", Qt::CaseInsensitive))
|
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))
|
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
|
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)
|
if (it -> msgflags & RS_MSG_NEW)
|
||||||
@ -658,15 +662,15 @@ void MessagesDialog::insertMessages()
|
|||||||
|
|
||||||
if (text.startsWith("Re:", Qt::CaseInsensitive))
|
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))
|
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
|
else
|
||||||
{
|
{
|
||||||
item -> setIcon(2, (QIcon(":/images/message-mail.png")));
|
item -> setIcon(1, (QIcon(":/images/message-mail.png")));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,6 +107,8 @@ private:
|
|||||||
|
|
||||||
QString fileName;
|
QString fileName;
|
||||||
|
|
||||||
|
QFont mFont;
|
||||||
|
|
||||||
|
|
||||||
/** Qt Designer generated object */
|
/** Qt Designer generated object */
|
||||||
Ui::MessagesDialog ui;
|
Ui::MessagesDialog ui;
|
||||||
|
@ -971,12 +971,12 @@ p, li { white-space: pre-wrap; }
|
|||||||
</column>
|
</column>
|
||||||
<column>
|
<column>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>From</string>
|
<string>Subject</string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
<column>
|
<column>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Subject</string>
|
<string>From</string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
<column>
|
<column>
|
||||||
@ -1078,7 +1078,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16777215</width>
|
<width>16777215</width>
|
||||||
<height>10</height>
|
<height>12</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -1135,7 +1135,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16777215</width>
|
<width>16777215</width>
|
||||||
<height>10</height>
|
<height>12</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -1192,7 +1192,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16777215</width>
|
<width>16777215</width>
|
||||||
<height>10</height>
|
<height>12</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
Loading…
Reference in New Issue
Block a user