Author: tgoettlicher Date: Thu Feb 3 17:08:59 2011 New Revision: 63339 URL: http://svn.opensuse.org/viewcvs/yast?rev=63339&view=rev Log: added event to treewidget Modified: trunk/qt/VERSION.cmake trunk/qt/src/YQTree.cc trunk/qt/src/YQTree.h trunk/qt/yast2-qt.spec.in Modified: trunk/qt/VERSION.cmake URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/VERSION.cmake?rev=63339&r1=63338&r2=63339&view=diff ============================================================================== --- trunk/qt/VERSION.cmake (original) +++ trunk/qt/VERSION.cmake Thu Feb 3 17:08:59 2011 @@ -1,3 +1,3 @@ SET(VERSION_MAJOR "2") -SET(VERSION_MINOR "19") -SET(VERSION_PATCH "8") +SET(VERSION_MINOR "20") +SET(VERSION_PATCH "0") Modified: trunk/qt/src/YQTree.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQTree.cc?rev=63339&r1=63338&r2=63339&view=diff ============================================================================== --- trunk/qt/src/YQTree.cc (original) +++ trunk/qt/src/YQTree.cc Thu Feb 3 17:08:59 2011 @@ -98,8 +98,8 @@ connect( _qt_treeWidget, SIGNAL( itemSelectionChanged () ), this, SLOT ( slotSelectionChanged () ) ); - connect( _qt_treeWidget, SIGNAL( itemClicked ( QTreeWidgetItem *, int ) ), - this, SLOT ( slotSelectionChanged () ) ); + connect( _qt_treeWidget, SIGNAL( itemChanged ( QTreeWidgetItem *, int ) ), + this, SLOT ( slotItemChanged () ) ); connect( _qt_treeWidget, SIGNAL( itemDoubleClicked( QTreeWidgetItem *, int ) ), this, SLOT ( slotActivated ( QTreeWidgetItem * ) ) ); @@ -255,6 +255,14 @@ } +void YQTree::slotItemChanged( ) +{ + if ( notify() && ! YQUI::ui()->eventPendingFor( this ) ) + YQUI::ui()->sendEvent( new YWidgetEvent( this, YEvent::ValueChanged ) ); +} + + + void YQTree::slotSelectionChanged( ) { if ( hasMultiSelection() ) Modified: trunk/qt/src/YQTree.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQTree.h?rev=63339&r1=63338&r2=63339&view=diff ============================================================================== --- trunk/qt/src/YQTree.h (original) +++ trunk/qt/src/YQTree.h Thu Feb 3 17:08:59 2011 @@ -151,6 +151,13 @@ void slotSelectionChanged(); /** + * Propagate a tree item change. + * + * This will trigger a 'ValueChanged' event if 'notify' is set. + **/ + void slotItemChanged(); + + /** * Propagate a double click or pressing the space key on a tree item. * * This will trigger an 'Activated' event if 'notify' is set. Modified: trunk/qt/yast2-qt.spec.in URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/yast2-qt.spec.in?rev=63339&r1=63338&r2=63339&view=diff ============================================================================== --- trunk/qt/yast2-qt.spec.in (original) +++ trunk/qt/yast2-qt.spec.in Thu Feb 3 17:08:59 2011 @@ -20,8 +20,8 @@ Summary: YaST2 - Graphical User Interface BuildRequires: yast2-devtools >= 2.16.3 #YIconLoader -BuildRequires: yast2-libyui-devel >= 2.19.2 -Requires: yast2-libyui >= 2.19.2 +BuildRequires: yast2-libyui-devel >= 2.20.0 +Requires: yast2-libyui >= 2.20.0 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