mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Add icons into search path
This commit is contained in:
@@ -120,6 +120,10 @@ MainWindow::MainWindow(QWidget* parent) :
|
|||||||
ui(new Ui::MainWindow),
|
ui(new Ui::MainWindow),
|
||||||
controller(this)
|
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);
|
ui->setupUi(this);
|
||||||
loadUserSettings(); //For example window size
|
loadUserSettings(); //For example window size
|
||||||
setTitle();
|
setTitle();
|
||||||
|
Reference in New Issue
Block a user