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
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
@ -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><!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>
|
</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>
|
||||||
|
Loading…
Reference in New Issue
Block a user