diff options
author | don bright <hugh.m.bright@gmail.com> | 2011-12-09 16:49:55 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2011-12-09 16:49:55 (GMT) |
commit | a4a64e7c26a0eb523f5b271c9d90f091e5933ebb (patch) | |
tree | 6e247c3f46c23a6c85b4740a2ff99abaa25fe9bd /src/OpenCSGWarningDialog.cc | |
parent | 51f24b998ba555d15f924ccd4fb5b46219f6537b (diff) | |
parent | f577f91d25071f5ad1a9fdb6ed7c6dd3aa4c1008 (diff) |
Merge remote-tracking branch 'upstream/master' into cakebaby
Diffstat (limited to 'src/OpenCSGWarningDialog.cc')
-rw-r--r-- | src/OpenCSGWarningDialog.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/OpenCSGWarningDialog.cc b/src/OpenCSGWarningDialog.cc new file mode 100644 index 0000000..fdaaa50 --- /dev/null +++ b/src/OpenCSGWarningDialog.cc @@ -0,0 +1,23 @@ +#include "OpenCSGWarningDialog.h" +#include "Preferences.h" + +OpenCSGWarningDialog::OpenCSGWarningDialog(QWidget *parent) +{ + setupUi(this); + + connect(this->showBox, SIGNAL(toggled(bool)), + Preferences::inst()->openCSGWarningBox, SLOT(setChecked(bool))); + connect(this->showBox, SIGNAL(toggled(bool)), + Preferences::inst(), SLOT(openCSGWarningChanged(bool))); + + connect(this->enableOpenCSGBox, SIGNAL(toggled(bool)), + Preferences::inst()->enableOpenCSGBox, SLOT(setChecked(bool))); + connect(this->enableOpenCSGBox, SIGNAL(toggled(bool)), + Preferences::inst(), SLOT(enableOpenCSGChanged(bool))); +} + +void OpenCSGWarningDialog::setText(const QString &text) +{ + this->warningText->setPlainText(text); +} + |