diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-10-15 22:20:45 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-10-15 22:20:45 +0300 |
commit | 172fa2f8ddac5a53ea6fa6632e0cfaeb53344b64 (patch) | |
tree | 9c0653bf0e7718f754051555d9e56cd4119280b1 /mesongui.py | |
parent | c5788548d225b1cf5561244e24da8a8cd6d7f488 (diff) | |
parent | 0d56955e9cda7993ef07894fb58bb90ba5b463e6 (diff) | |
download | meson-172fa2f8ddac5a53ea6fa6632e0cfaeb53344b64.zip meson-172fa2f8ddac5a53ea6fa6632e0cfaeb53344b64.tar.gz meson-172fa2f8ddac5a53ea6fa6632e0cfaeb53344b64.tar.bz2 |
Merge pull request #275 from mesonbuild/compileroptions
Compiler options
Diffstat (limited to 'mesongui.py')
-rwxr-xr-x | mesongui.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mesongui.py b/mesongui.py index 10a84f7..bdd44bb 100755 --- a/mesongui.py +++ b/mesongui.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright 2013 The Meson development team +# Copyright 2013-2015 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,7 +15,7 @@ # limitations under the License. import sys, os, pickle, time, shutil -import build, coredata, environment, optinterpreter +import build, coredata, environment, mesonlib from PyQt5 import uic from PyQt5.QtWidgets import QApplication, QMainWindow, QHeaderView from PyQt5.QtWidgets import QComboBox, QCheckBox @@ -272,14 +272,14 @@ class OptionForm: self.opt_widgets = [] for key in keys: opt = options[key] - if isinstance(opt, optinterpreter.UserStringOption): + if isinstance(opt, mesonlib.UserStringOption): w = PyQt5.QtWidgets.QLineEdit(opt.value) w.textChanged.connect(self.user_option_changed) - elif isinstance(opt, optinterpreter.UserBooleanOption): + elif isinstance(opt, mesonlib.UserBooleanOption): w = QCheckBox('') w.setChecked(opt.value) w.stateChanged.connect(self.user_option_changed) - elif isinstance(opt, optinterpreter.UserComboOption): + elif isinstance(opt, mesonlib.UserComboOption): w = QComboBox() for i in opt.choices: w.addItem(i) |