mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-23 08:19:57 -05:00
change hide/expand icon when frame is hidden/visible
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2045 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
66fe9cb9b0
commit
80142c2752
@ -165,10 +165,14 @@ void ChanMsgItem::toggle()
|
|||||||
if (expandFrame->isHidden())
|
if (expandFrame->isHidden())
|
||||||
{
|
{
|
||||||
expandFrame->show();
|
expandFrame->show();
|
||||||
|
expandButton->setIcon(QIcon(QString(":/images/edit_remove24.png")));
|
||||||
|
expandButton->setToolTip(tr("Hide"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
expandFrame->hide();
|
expandFrame->hide();
|
||||||
|
expandButton->setIcon(QIcon(QString(":/images/edit_add24.png")));
|
||||||
|
expandButton->setToolTip(tr("Expand"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../images.qrc">
|
<iconset resource="../images.qrc">
|
||||||
<normaloff>:/images/add_24x24.png</normaloff>:/images/add_24x24.png</iconset>
|
<normaloff>:/images/edit_add24.png</normaloff>:/images/edit_add24.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -276,6 +276,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<include location="../images.qrc"/>
|
<include location="../images.qrc"/>
|
||||||
<include location="../images.qrc"/>
|
<include location="../images.qrc"/>
|
||||||
<include location="../images.qrc"/>
|
<include location="../images.qrc"/>
|
||||||
|
<include location="../images.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user