mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-30 17:59:02 -04:00
Added to change the text for the Play Button, when file is not a media file.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6978 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
abd6b46ca0
commit
0e134d0a92
1 changed files with 10 additions and 2 deletions
|
@ -213,8 +213,16 @@ void ChanMsgItem::updateItemStatic()
|
||||||
|
|
||||||
/* check if the file is a media file */
|
/* check if the file is a media file */
|
||||||
if (!misc::isPreviewable(QFileInfo(QString::fromUtf8(it->fname.c_str())).suffix()))
|
if (!misc::isPreviewable(QFileInfo(QString::fromUtf8(it->fname.c_str())).suffix()))
|
||||||
|
{
|
||||||
fi->mediatype();
|
fi->mediatype();
|
||||||
|
playButton->setText(tr("Open"));
|
||||||
|
playButton->setToolTip(tr("Open File"));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
playButton->setText(tr("Play"));
|
||||||
|
playButton->setToolTip(tr("Play Media"));
|
||||||
|
}
|
||||||
|
|
||||||
QLayout *layout = expandFrame->layout();
|
QLayout *layout = expandFrame->layout();
|
||||||
layout->addWidget(fi);
|
layout->addWidget(fi);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue