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:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user