mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 06:27:52 +00:00
CMakeLists: Add Qt 5 type-safety compile definitions
Migrates the Qt compile definitions that were added to amuse over to the hecl GUI.
This commit is contained in:
@@ -8,7 +8,7 @@ ArgumentEditor::ArgumentEditor(QWidget* parent)
|
||||
: QDialog(parent)
|
||||
, m_ui(std::make_unique<Ui::ArgumentEditor>()) {
|
||||
m_ui->setupUi(this);
|
||||
m_model.setStringList(QSettings().value("urde_arguments").toStringList());
|
||||
m_model.setStringList(QSettings().value(QStringLiteral("urde_arguments")).toStringList());
|
||||
m_ui->argumentEditor->setModel(&m_model);
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ void ArgumentEditor::on_deleteButton_clicked() {
|
||||
void ArgumentEditor::on_buttonBox_clicked(QAbstractButton* button) {
|
||||
QDialogButtonBox* buttonBox = qobject_cast<QDialogButtonBox*>(sender());
|
||||
if (button == buttonBox->button(QDialogButtonBox::Ok)) {
|
||||
QSettings().setValue("urde_arguments", m_model.stringList());
|
||||
QSettings().setValue(QStringLiteral("urde_arguments"), m_model.stringList());
|
||||
accept();
|
||||
} else {
|
||||
reject();
|
||||
|
||||
Reference in New Issue
Block a user