added to disable when flatview is enabled RootIsDecorated

added stylesheet background for Forum Label
set a default Font size for Forum Label.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1645 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-09-13 13:25:24 +00:00
parent 161153d8b3
commit 746bbda046
3 changed files with 26 additions and 7 deletions

View File

@ -95,7 +95,7 @@ ForumsDialog::ForumsDialog(QWidget *parent)
/* Set header resize modes and initial section sizes */
/* Set header resize modes and initial section sizes */
QHeaderView * ftheader = ui.forumTreeWidget->header () ;
ftheader->setResizeMode (0, QHeaderView::Interactive);
@ -108,6 +108,9 @@ ForumsDialog::ForumsDialog(QWidget *parent)
ttheader->resizeSection ( 0, 170 );
ttheader->resizeSection ( 1, 170 );
mForumNameFont = QFont("MS SANS SERIF", 12);
ui.forumName->setFont(mForumNameFont);
/* Hide platform specific features */
@ -658,10 +661,12 @@ void ForumsDialog::insertThreads()
if (flatView)
{
child = new QTreeWidgetItem();
ui.threadTreeWidget->setRootIsDecorated( false );
}
else
{
child = new QTreeWidgetItem(parent);
ui.threadTreeWidget->setRootIsDecorated( true );
}
{

View File

@ -81,6 +81,8 @@ private:
std::string mCurrForumId;
std::string mCurrThreadId;
std::string mCurrPostId;
QFont mForumNameFont;
/** Qt Designer generated object */
Ui::ForumsDialog ui;

View File

@ -593,14 +593,14 @@
</property>
<property name="minimumSize">
<size>
<width>60</width>
<height>10</height>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>10</height>
<height>16777215</height>
</size>
</property>
<property name="font">
@ -611,7 +611,11 @@
</font>
</property>
<property name="text">
<string>Forum Name</string>
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Arial'; font-size:10pt; font-weight:600; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Forum:&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
@ -626,15 +630,20 @@
<property name="minimumSize">
<size>
<width>0</width>
<height>10</height>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>10</height>
<height>1677215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QLabel{border: 2px solid grey;
border-radius: 10px;
background: white;}</string>
</property>
<property name="text">
<string/>
</property>
@ -803,6 +812,9 @@ p, li { white-space: pre-wrap; }
<pointsize>9</pointsize>
</font>
</property>
<property name="openExternalLinks">
<bool>false</bool>
</property>
</widget>
</widget>
</widget>