aboutsummaryrefslogtreecommitdiff
path: root/mesongui.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-06-22 17:10:00 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-06-22 17:10:00 +0300
commitd2b5e5c7a5cadc221bdc604cab12716238dbe4db (patch)
tree4c22179cf20582c1b8fea54e9cc3cb53de4889c4 /mesongui.py
parentec167c81071bfc64fe62837ac1b156232655ca37 (diff)
downloadmeson-d2b5e5c7a5cadc221bdc604cab12716238dbe4db.zip
meson-d2b5e5c7a5cadc221bdc604cab12716238dbe4db.tar.gz
meson-d2b5e5c7a5cadc221bdc604cab12716238dbe4db.tar.bz2
The mass flags -> args renaming for consistency.
Diffstat (limited to 'mesongui.py')
-rwxr-xr-xmesongui.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/mesongui.py b/mesongui.py
index 56bdd88..fb45231 100755
--- a/mesongui.py
+++ b/mesongui.py
@@ -34,7 +34,7 @@ class PathModel(QAbstractItemModel):
self.attr_name = ['prefix', 'libdir', 'bindir', 'includedir', 'datadir', \
'mandir', 'localedir']
- def flags(self, index):
+ def args(self, index):
if index.column() == 1:
editable = PyQt5.QtCore.Qt.ItemIsEditable
else:
@@ -104,7 +104,7 @@ class TargetModel(QAbstractItemModel):
installed = 'No'
self.targets.append((name, typename, installed, num_sources))
- def flags(self, index):
+ def args(self, index):
return PyQt5.QtCore.Qt.ItemIsSelectable | PyQt5.QtCore.Qt.ItemIsEnabled
def rowCount(self, index):
@@ -148,8 +148,8 @@ class DependencyModel(QAbstractItemModel):
name = k
found = bd.found()
if found:
- cflags = str(bd.get_compile_flags())
- libs = str(bd.get_link_flags())
+ cflags = str(bd.get_compile_args())
+ libs = str(bd.get_link_args())
found = 'yes'
else:
cflags = ''
@@ -157,7 +157,7 @@ class DependencyModel(QAbstractItemModel):
found = 'no'
self.deps.append((name, found, cflags, libs))
- def flags(self, index):
+ def args(self, index):
return PyQt5.QtCore.Qt.ItemIsSelectable | PyQt5.QtCore.Qt.ItemIsEnabled
def rowCount(self, index):
@@ -172,9 +172,9 @@ class DependencyModel(QAbstractItemModel):
if role != PyQt5.QtCore.Qt.DisplayRole:
return QVariant()
if section == 3:
- return QVariant('Link flags')
+ return QVariant('Link args')
if section == 2:
- return QVariant('Compile flags')
+ return QVariant('Compile args')
if section == 1:
return QVariant('Found')
return QVariant('Name')
@@ -201,7 +201,7 @@ class CoreModel(QAbstractItemModel):
for langname, comp in core_data.cross_compilers.items():
self.elems.append((langname + ' cross compiler', str(comp.get_exelist())))
- def flags(self, index):
+ def args(self, index):
return PyQt5.QtCore.Qt.ItemIsSelectable | PyQt5.QtCore.Qt.ItemIsEnabled
def rowCount(self, index):