mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Add icons into search path
This commit is contained in:
parent
3c4d2a4b92
commit
4b8403be4b
@ -120,6 +120,10 @@ MainWindow::MainWindow(QWidget* parent) :
|
||||
ui(new Ui::MainWindow),
|
||||
controller(this)
|
||||
{
|
||||
for(auto & string : VCMIDirs::get().dataPaths())
|
||||
QDir::addSearchPath("icons", pathToQString(string / "mapeditor" / "icons"));
|
||||
QDir::addSearchPath("icons", pathToQString(VCMIDirs::get().userDataPath() / "mapeditor" / "icons"));
|
||||
|
||||
ui->setupUi(this);
|
||||
loadUserSettings(); //For example window size
|
||||
setTitle();
|
||||
|
Loading…
Reference in New Issue
Block a user