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:
defnax 2010-01-15 00:41:27 +00:00
parent 66fe9cb9b0
commit 80142c2752
2 changed files with 6 additions and 1 deletions

View file

@ -165,10 +165,14 @@ void ChanMsgItem::toggle()
if (expandFrame->isHidden())
{
expandFrame->show();
expandButton->setIcon(QIcon(QString(":/images/edit_remove24.png")));
expandButton->setToolTip(tr("Hide"));
}
else
{
expandFrame->hide();
expandButton->setIcon(QIcon(QString(":/images/edit_add24.png")));
expandButton->setToolTip(tr("Expand"));
}
}