mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
161153d8b3
commit
746bbda046
@ -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 );
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -81,6 +81,8 @@ private:
|
||||
std::string mCurrForumId;
|
||||
std::string mCurrThreadId;
|
||||
std::string mCurrPostId;
|
||||
|
||||
QFont mForumNameFont;
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::ForumsDialog ui;
|
||||
|
@ -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><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'Arial'; font-size:10pt; font-weight:600; font-style:normal;">
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Forum:</p></body></html></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>
|
||||
|
Loading…
Reference in New Issue
Block a user