diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-08 16:22:14 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-08 16:22:14 +0200 |
commit | 2778ac50551c5175125a066ba6b59cad6ce4e45b (patch) | |
tree | fd2446a47af588eef263fe85a0be4fdfe59a98ac /gui/process_detector.cpp | |
parent | 744574a36be2914c6d4641a9fa6e76359a4e218e (diff) |
gui, tracker/{aruco,pt}: do action on button correct press, not button hold
Diffstat (limited to 'gui/process_detector.cpp')
-rw-r--r-- | gui/process_detector.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/process_detector.cpp b/gui/process_detector.cpp index f0a66fa5..1a5cbb9d 100644 --- a/gui/process_detector.cpp +++ b/gui/process_detector.cpp @@ -88,7 +88,7 @@ int process_detector::add_row(QString exe_name, QString profile) { BrowseButton* b = new BrowseButton(twi); b->setText("..."); - QObject::connect(b, SIGNAL(pressed()), b, SLOT(browse())); + QObject::connect(b, SIGNAL(clicked()), b, SLOT(browse())); ui.tableWidget->setCellWidget(i, 2, b); } @@ -111,8 +111,8 @@ process_detector::process_detector(QWidget* parent) : QWidget(parent) { ui.setupUi(this); setFixedSize(size()); - connect(ui.add, SIGNAL(pressed()), this, SLOT(add())); - connect(ui.remove, SIGNAL(pressed()), this, SLOT(remove())); + connect(ui.add, SIGNAL(clicked()), this, SLOT(add())); + connect(ui.remove, SIGNAL(clicked()), this, SLOT(remove())); add_items(); |