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

@ -109,6 +109,9 @@ ForumsDialog::ForumsDialog(QWidget *parent)
ttheader->resizeSection ( 1, 170 ); ttheader->resizeSection ( 1, 170 );
mForumNameFont = QFont("MS SANS SERIF", 12);
ui.forumName->setFont(mForumNameFont);
/* Hide platform specific features */ /* Hide platform specific features */
#ifdef Q_WS_WIN #ifdef Q_WS_WIN
@ -658,10 +661,12 @@ void ForumsDialog::insertThreads()
if (flatView) if (flatView)
{ {
child = new QTreeWidgetItem(); child = new QTreeWidgetItem();
ui.threadTreeWidget->setRootIsDecorated( false );
} }
else else
{ {
child = new QTreeWidgetItem(parent); child = new QTreeWidgetItem(parent);
ui.threadTreeWidget->setRootIsDecorated( true );
} }
{ {

View File

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

View File

@ -593,14 +593,14 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>60</width> <width>0</width>
<height>10</height> <height>0</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>10</height> <height>16777215</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -611,7 +611,11 @@
</font> </font>
</property> </property>
<property name="text"> <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> </property>
</widget> </widget>
</item> </item>
@ -626,15 +630,20 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>10</height> <height>0</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>10</height> <height>1677215</height>
</size> </size>
</property> </property>
<property name="styleSheet">
<string notr="true">QLabel{border: 2px solid grey;
border-radius: 10px;
background: white;}</string>
</property>
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
@ -803,6 +812,9 @@ p, li { white-space: pre-wrap; }
<pointsize>9</pointsize> <pointsize>9</pointsize>
</font> </font>
</property> </property>
<property name="openExternalLinks">
<bool>false</bool>
</property>
</widget> </widget>
</widget> </widget>
</widget> </widget>