From 7fa79797882a0df9c4f711b4bdb65bc0022e8ae6 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 13 Oct 2013 23:03:25 +0300 Subject: Can enable or disable the use of pch. --- mesongui.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mesongui.py') diff --git a/mesongui.py b/mesongui.py index 9d13e19a1..7d97028b3 100755 --- a/mesongui.py +++ b/mesongui.py @@ -245,11 +245,17 @@ class OptionForm: combo.currentTextChanged.connect(self.build_type_changed) self.form.addRow('Build type', combo) strip = QCheckBox("") + strip.setChecked(self.coredata.strip) strip.stateChanged.connect(self.strip_changed) self.form.addRow('Strip on install', strip) coverage = QCheckBox("") + coverage.setChecked(self.coredata.coverage) coverage.stateChanged.connect(self.coverage_changed) self.form.addRow('Enable coverage', coverage) + pch = QCheckBox("") + pch.setChecked(self.coredata.use_pch) + pch.stateChanged.connect(self.pch_changed) + self.form.addRow('Enable pch', pch) def build_type_changed(self, newtype): self.coredata.buildtype = newtype @@ -268,6 +274,13 @@ class OptionForm: ns = True self.coredata.coverage = ns + def pch_changed(self, newState): + if newState == 0: + ns = False + else: + ns = True + self.coredata.use_pch = ns + class ProcessRunner(): def __init__(self, rundir, cmdlist): self.cmdlist = cmdlist -- cgit v1.2.3