diff options
author | Christoph Schulthess | 2017-03-06 14:09:06 +0100 |
---|---|---|
committer | Christoph Schulthess | 2017-03-06 14:09:06 +0100 |
commit | 77df580e0d46e7f64a3f1bd835f8d6faa5c4efa0 (patch) | |
tree | 774d393a0e70ce8c9ffac5e0d8dc85107a3cce1c /src/client/toolbar/toolbar.cpp | |
parent | initial commit pvs2 remote-debugging button (diff) | |
download | pvs2-77df580e0d46e7f64a3f1bd835f8d6faa5c4efa0.tar.gz pvs2-77df580e0d46e7f64a3f1bd835f8d6faa5c4efa0.tar.xz pvs2-77df580e0d46e7f64a3f1bd835f8d6faa5c4efa0.zip |
added btnCustom and function onBtnCustom
Diffstat (limited to 'src/client/toolbar/toolbar.cpp')
-rw-r--r-- | src/client/toolbar/toolbar.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/client/toolbar/toolbar.cpp b/src/client/toolbar/toolbar.cpp index 19c44cc..424e393 100644 --- a/src/client/toolbar/toolbar.cpp +++ b/src/client/toolbar/toolbar.cpp @@ -109,6 +109,7 @@ void Toolbar::init() connect(clientApp->connectWindow(), SIGNAL(connected(ServerConnection*)), this, SLOT(onConnected(ServerConnection*))); connect(_ui->btnManager, SIGNAL(toggled(bool)), this, SLOT(onBtnManager())); connect(_ui->btnAttention, SIGNAL(toggled(bool)), this, SLOT(onBtnAttention())); + connect(_ui->btnCustom, SIGNAL(toggled(bool)), this, SLOT(onBtnCustom())); /* Setup menu */ initMenu(); @@ -494,6 +495,18 @@ void Toolbar::onBtnManager() switchP.waitForFinished(); } +void Toolbar::onBtnCustom() +{ + QProcess runDbg; + const bool on = _ui->btnCustom->isChecked(); + if (on) { + runDbg.start("/bin/sh", QStringList() << "/etc/start_debug_TLS.sh"); + } else { + runDbg.start("/bin/sh", QStringList() << "/etc/stop_debug.sh"); + } + runDbg.waitForFinished(); +} + void Toolbar::onBtnLockDesktop() { if (this->lockDesktopP.state() == QProcess::NotRunning) { |