[yast-commit] r41586 - in /branches/tmp/sh/mod-ui/qt/src: YQRadioButton.cc YQRadioButton.h
![](https://seccdn.libravatar.org/avatar/f850d49374387219fe79b9ca562f7803.jpg?s=120&d=mm&r=g)
Author: tgoettlicher
Date: Fri Oct 26 12:30:19 2007
New Revision: 41586
URL: http://svn.opensuse.org/viewcvs/yast?rev=41586&view=rev
Log:
fix bug "During installation radio buttons in yast does not respond to right click" (#332349)
Modified:
branches/tmp/sh/mod-ui/qt/src/YQRadioButton.cc
branches/tmp/sh/mod-ui/qt/src/YQRadioButton.h
Modified: branches/tmp/sh/mod-ui/qt/src/YQRadioButton.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/qt/src/YQRadioButton.cc?rev=41586&r1=41585&r2=41586&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/qt/src/YQRadioButton.cc (original)
+++ branches/tmp/sh/mod-ui/qt/src/YQRadioButton.cc Fri Oct 26 12:30:19 2007
@@ -58,6 +58,8 @@
layout->addSpacing( SPACING );
_qt_radioButton->setChecked( checked );
+ installEventFilter(this);
+
connect ( _qt_radioButton, SIGNAL( toggled ( bool ) ),
this, SLOT ( changed ( bool ) ) );
}
@@ -152,4 +154,21 @@
}
+bool YQRadioButton::eventFilter( QObject * obj, QEvent * event )
+{
+ if ( event && event->type() == QEvent::MouseButtonRelease )
+ {
+ QMouseEvent * mouseEvent = dynamic_cast
participants (1)
-
tgoettlicher@svn.opensuse.org