Fixed set minimum size for Channel Logo Label

Fixed set minimum width for Channel Name Label to not stretch The MainWindow when the Channel name is longer


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1646 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-09-13 16:33:59 +00:00
parent 746bbda046
commit e266b6b68f
2 changed files with 8 additions and 3 deletions

View File

@ -155,9 +155,11 @@ ChannelFeed::ChannelFeed(QWidget *parent)
//added from ahead
updateChannelList();
mChannelFont = QFont("MS SANS SERIF", 24);
mChannelFont = QFont("MS SANS SERIF", 22);
nameLabel->setFont(mChannelFont);
nameLabel->setMinimumWidth(20);
QTimer *timer = new QTimer(this);
timer->connect(timer, SIGNAL(timeout()), this, SLOT(checkUpdate()));
timer->start(1000);

View File

@ -110,8 +110,8 @@
<widget class="QLabel" name="iconLabel">
<property name="minimumSize">
<size>
<width>24</width>
<height>24</height>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="maximumSize">
@ -152,6 +152,9 @@ p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'DejaVu Sans'; font-size:9pt; 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;&lt;span style=&quot; font-size:14pt;&quot;&gt;Channel Name&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
</item>
</layout>