projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c7055b
)
Qt: fixed signal of a clicked push button (patch #786)
author
Ilya Lysenkov
<no@email>
Mon, 20 Jun 2011 09:49:21 +0000
(09:49 +0000)
committer
Ilya Lysenkov
<no@email>
Mon, 20 Jun 2011 09:49:21 +0000
(09:49 +0000)
modules/highgui/src/window_QT.cpp
patch
|
blob
|
history
diff --git
a/modules/highgui/src/window_QT.cpp
b/modules/highgui/src/window_QT.cpp
index
d97928c
..
65b50b6
100755
(executable)
--- a/
modules/highgui/src/window_QT.cpp
+++ b/
modules/highgui/src/window_QT.cpp
@@
-1338,8
+1338,11
@@
void CvButtonbar::addButton( QString name, CvButtonCallback call, void* userdata
}
\r
\r
if (button)
\r
- {
\r
- QObject::connect( button, SIGNAL( toggled(bool) ),button, SLOT( callCallBack(bool) ));
\r
+ {
+ if (button_type == CV_PUSH_BUTTON)
+ QObject::connect( button, SIGNAL( clicked(bool) ),button, SLOT( callCallBack(bool) ));
+ else
+ QObject::connect( button, SIGNAL( toggled(bool) ),button, SLOT( callCallBack(bool) ));
addWidget(button,Qt::AlignCenter);
\r
}
\r
}
\r