1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Launcher: use QDesktopWidget to get display list instead of SDL2

First of all SDL2 trying to use dbus and this conflict with Qt. Check mantis#2704.
And there no reason to use SDL2 in launcher when Qt can do the same thing as well.
This commit is contained in:
Arseniy Shestakov
2017-08-24 04:52:02 +03:00
parent c6ff28936d
commit 1110dd27d1
8 changed files with 28 additions and 78 deletions

View File

@@ -39,7 +39,7 @@ void MainWindow::load()
settings.init();
}
MainWindow::MainWindow(const QStringList& displayList, QWidget *parent) :
MainWindow::MainWindow(QWidget * parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
@@ -62,7 +62,7 @@ MainWindow::MainWindow(const QStringList& displayList, QWidget *parent) :
ui->tabSelectList->setMaximumWidth(width + 4);
}
ui->tabListWidget->setCurrentIndex(0);
ui->settingsView->setDisplayList(displayList);
ui->settingsView->setDisplayList();
connect(ui->tabSelectList, SIGNAL(currentRowChanged(int)),
ui->tabListWidget, SLOT(setCurrentIndex(int)));