Added close Button for the Info Frame.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3393 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-08-24 15:28:50 +00:00
parent 2e92496aab
commit 0afc0f298e
3 changed files with 42 additions and 0 deletions

View File

@ -572,6 +572,11 @@ void PopupChatDialog::showAvatarFrame(bool show)
}
}
void PopupChatDialog::on_closeInfoFrameButton_clicked()
{
ui.infoframe->setVisible(false);
}
void PopupChatDialog::setColor()
{
bool ok;

View File

@ -92,6 +92,7 @@ private slots:
void addExtraFile();
void addExtraPicture();
void showAvatarFrame(bool show);
void on_closeInfoFrameButton_clicked();
void setColor();
void getFont();

View File

@ -245,6 +245,40 @@ stop:0 #FFFFD7, stop:1 #FFFFB2);}</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="closeInfoFrameButton">
<property name="maximumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="toolTip">
<string>Close</string>
</property>
<property name="styleSheet">
<string notr="true">QToolButton
{
border-image: url(:/images/closenormal.png)
}
QToolButton:hover
{
border-image: url(:/images/closehover.png)
}
QToolButton:pressed {
border-image: url(:/images/closepressed.png)
}</string>
</property>
<property name="text">
<string/>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
@ -774,6 +808,8 @@ border: 1px solid #CCCCCC;
<resources>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
</resources>
<connections/>
</ui>