mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 05:39:11 -04:00
* Hide by default the Attachments Recommend Files list.
* Changed the tooltips for the Hide/Show Button , "Download all" Button now with default text. * Moved files count label before "Recommend Files" label git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7708 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
09dbb63a78
commit
03cee1b998
2 changed files with 32 additions and 29 deletions
|
@ -247,7 +247,7 @@ void MessageWidget::processSettings(const QString &settingsGroup, bool load)
|
|||
// load settings
|
||||
|
||||
// expandFiles
|
||||
bool value = Settings->value("expandFiles", true).toBool();
|
||||
bool value = Settings->value("expandFiles", false).toBool();
|
||||
ui.expandFilesButton->setChecked(value);
|
||||
ui.msgList->setVisible(value);
|
||||
togglefileview();
|
||||
|
@ -289,10 +289,10 @@ void MessageWidget::togglefileview()
|
|||
|
||||
if (ui.expandFilesButton->isChecked()) {
|
||||
ui.expandFilesButton->setIcon(QIcon(QString(":/images/edit_remove24.png")));
|
||||
ui.expandFilesButton->setToolTip(tr("Hide"));
|
||||
ui.expandFilesButton->setToolTip(tr("Hide the attachment pane"));
|
||||
} else {
|
||||
ui.expandFilesButton->setIcon(QIcon(QString(":/images/edit_add24.png")));
|
||||
ui.expandFilesButton->setToolTip(tr("Expand"));
|
||||
ui.expandFilesButton->setToolTip(tr("Show the attachment pane"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -583,7 +583,7 @@ void MessageWidget::fill(const std::string &msgId)
|
|||
ui.msgText->resetImagesStatus(Settings->getMsgLoadEmbeddedImages() || (msgInfo.msgflags & RS_MSG_LOAD_EMBEDDED_IMAGES));
|
||||
ui.msgText->setHtml(text);
|
||||
|
||||
ui.filesText->setText(QString("(%1 %2)").arg(msgInfo.count).arg(msgInfo.count == 1 ? tr("File") : tr("Files")));
|
||||
ui.filesText->setText(QString("%1").arg(msgInfo.count)/*.arg(msgInfo.count == 1 ? tr("File") : tr("Files"))*/);
|
||||
|
||||
if (msgInfo.msgflags & RS_MSG_ENCRYPTED) {
|
||||
ui.decryptFrame->show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue