mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 06:21:29 -04:00
Replacing Qt5-only method with Qt4-compatible code
This commit is contained in:
parent
04f79c34a2
commit
8b17844781
@ -41,7 +41,7 @@ bool Launcher::AdvancedPage::loadSettings()
|
|||||||
QString screenshotFormatString = QString::fromStdString(mEngineSettings.getString("screenshot format", "General")).toUpper();
|
QString screenshotFormatString = QString::fromStdString(mEngineSettings.getString("screenshot format", "General")).toUpper();
|
||||||
if (screenshotFormatComboBox->findText(screenshotFormatString) == -1)
|
if (screenshotFormatComboBox->findText(screenshotFormatString) == -1)
|
||||||
screenshotFormatComboBox->addItem(screenshotFormatString);
|
screenshotFormatComboBox->addItem(screenshotFormatString);
|
||||||
screenshotFormatComboBox->setCurrentText(screenshotFormatString);
|
screenshotFormatComboBox->setCurrentIndex(screenshotFormatComboBox->findText(screenshotFormatString));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user