Author: tgoettlicher Date: Fri Feb 11 14:55:16 2011 New Revision: 63398 URL: http://svn.opensuse.org/viewcvs/yast?rev=63398&view=rev Log: fixed event handling in tree widget Modified: trunk/qt/VERSION.cmake trunk/qt/package/yast2-qt.changes trunk/qt/src/YQTree.cc trunk/qt/yast2-qt.spec.in Modified: trunk/qt/VERSION.cmake URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/VERSION.cmake?rev=63398&r1=63397&r2=63398&view=diff ============================================================================== --- trunk/qt/VERSION.cmake (original) +++ trunk/qt/VERSION.cmake Fri Feb 11 14:55:16 2011 @@ -1,3 +1,3 @@ SET(VERSION_MAJOR "2") SET(VERSION_MINOR "20") -SET(VERSION_PATCH "1") +SET(VERSION_PATCH "2") Modified: trunk/qt/package/yast2-qt.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/package/yast2-qt.changes?rev=63398&r1=63397&r2=63398&view=diff ============================================================================== --- trunk/qt/package/yast2-qt.changes (original) +++ trunk/qt/package/yast2-qt.changes Fri Feb 11 14:55:16 2011 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Feb 11 14:57:41 CET 2011 - tgoettlicher@suse.de + +- Fixed event handling in tree widget +- V 2.20.2 + +------------------------------------------------------------------- Tue Feb 8 12:20:04 CET 2011 - tgoettlicher@suse.de - Added support for currentItem to tree widget Modified: trunk/qt/src/YQTree.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQTree.cc?rev=63398&r1=63397&r2=63398&view=diff ============================================================================== --- trunk/qt/src/YQTree.cc (original) +++ trunk/qt/src/YQTree.cc Fri Feb 11 14:55:16 2011 @@ -260,25 +260,6 @@ void YQTree::slotItemChanged( ) { - if ( notify() && ! YQUI::ui()->eventPendingFor( this ) ) - YQUI::ui()->sendEvent( new YWidgetEvent( this, YEvent::ValueChanged ) ); - -} - - -void YQTree::slotItemClicked( QTreeWidgetItem * item, int column ) -{ - _qt_treeWidget->setCurrentItem( item ); - - if ( notify() && ! YQUI::ui()->eventPendingFor( this ) ) - YQUI::ui()->sendEvent( new YWidgetEvent( this, YEvent::SelectionChanged ) ); -} - - - - -void YQTree::slotSelectionChanged( ) -{ if ( hasMultiSelection() ) { QTreeWidgetItemIterator it( _qt_treeWidget); @@ -308,6 +289,27 @@ } + + if ( notify() && ! YQUI::ui()->eventPendingFor( this ) ) + YQUI::ui()->sendEvent( new YWidgetEvent( this, YEvent::ValueChanged ) ); + +} + + +void YQTree::slotItemClicked( QTreeWidgetItem * item, int column ) +{ + _qt_treeWidget->setCurrentItem( item ); + + if ( notify() && ! YQUI::ui()->eventPendingFor( this ) ) + YQUI::ui()->sendEvent( new YWidgetEvent( this, YEvent::SelectionChanged ) ); +} + + + + +void YQTree::slotSelectionChanged( ) +{ + if ( notify() && ! YQUI::ui()->eventPendingFor( this ) ) YQUI::ui()->sendEvent( new YWidgetEvent( this, YEvent::SelectionChanged ) ); } Modified: trunk/qt/yast2-qt.spec.in URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/yast2-qt.spec.in?rev=63398&r1=63397&r2=63398&view=diff ============================================================================== --- trunk/qt/yast2-qt.spec.in (original) +++ trunk/qt/yast2-qt.spec.in Fri Feb 11 14:55:16 2011 @@ -20,8 +20,8 @@ Summary: YaST2 - Graphical User Interface BuildRequires: yast2-devtools >= 2.16.3 #YIconLoader -BuildRequires: yast2-libyui-devel >= 2.20.1 -Requires: yast2-libyui >= 2.20.1 +BuildRequires: yast2-libyui-devel >= 2.20.2 +Requires: yast2-libyui >= 2.20.2 Requires: yast2_theme >= 2.16.1 Provides: yast2_ui Provides: y2base:/usr/lib/YaST2/servers/qt -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org