mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-20 03:48:16 -04:00
switched all explicit pixmap from files to shared FilesDefs::getPixmapFromQtResourcePath()
This commit is contained in:
parent
f8989ce944
commit
76511479af
90 changed files with 275 additions and 225 deletions
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include "ToasterDisable.h"
|
||||
#include "gui/notifyqt.h"
|
||||
#include "gui/common/FilesDefs.h"
|
||||
|
||||
#define IMAGE_TOASTERDISABLE ":/images/toasterDisable.png"
|
||||
#define IMAGE_TOASTERENABLE ":/images/toasterEnable.png"
|
||||
|
@ -57,7 +58,7 @@ ToasterDisable::ToasterDisable(QWidget *parent)
|
|||
|
||||
void ToasterDisable::disable(bool isDisable)
|
||||
{
|
||||
imageButton->setIcon(QPixmap(isDisable ? IMAGE_TOASTERDISABLE : IMAGE_TOASTERENABLE));
|
||||
imageButton->setIcon(FilesDefs::getPixmapFromQtResourcePath(isDisable ? IMAGE_TOASTERDISABLE : IMAGE_TOASTERENABLE));
|
||||
imageButton->setToolTip(isDisable ? tr("All Toasters are disabled") : tr("Toasters are enabled"));
|
||||
imageButton->setChecked(isDisable);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue