1
0
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:
nordsoft 2022-11-30 15:22:53 +04:00
parent 3c4d2a4b92
commit 4b8403be4b

View File

@ -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();