GH-796 Icon theme loading workaround
Replacing the Qt machinery with other Qt machinery under our control
This commit is contained in:
parent
ef34cafe17
commit
ceec70e014
31 changed files with 1578 additions and 552 deletions
|
@ -20,6 +20,7 @@
|
|||
#include "logic/BaseInstance.h"
|
||||
#include "logic/net/NetJob.h"
|
||||
#include "BasePage.h"
|
||||
#include <MultiMC.h>
|
||||
|
||||
class EnabledItemFilter;
|
||||
namespace Ui
|
||||
|
@ -40,9 +41,9 @@ public:
|
|||
}
|
||||
virtual QIcon icon() const override
|
||||
{
|
||||
auto icon = QIcon::fromTheme("notes");
|
||||
auto icon = MMC->getThemedIcon("notes");
|
||||
if(icon.isNull())
|
||||
icon = QIcon::fromTheme("news");
|
||||
icon = MMC->getThemedIcon("news");
|
||||
return icon;
|
||||
}
|
||||
virtual QString id() const override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue