Author: tgoettlicher Date: Thu May 19 16:22:16 2011 New Revision: 64074 URL: http://svn.opensuse.org/viewcvs/yast?rev=64074&view=rev Log: - Fixed selection of tree widget items (bnc #680107) - V.2.20.5 Modified: branches/SuSE-Linux-11_4-Branch/qt/VERSION.cmake branches/SuSE-Linux-11_4-Branch/qt/package/yast2-qt.changes branches/SuSE-Linux-11_4-Branch/qt/src/YQTree.cc Modified: branches/SuSE-Linux-11_4-Branch/qt/VERSION.cmake URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-11_4-Branch/qt/VERS... ============================================================================== --- branches/SuSE-Linux-11_4-Branch/qt/VERSION.cmake (original) +++ branches/SuSE-Linux-11_4-Branch/qt/VERSION.cmake Thu May 19 16:22:16 2011 @@ -1,3 +1,3 @@ SET(VERSION_MAJOR "2") SET(VERSION_MINOR "20") -SET(VERSION_PATCH "4") +SET(VERSION_PATCH "5") Modified: branches/SuSE-Linux-11_4-Branch/qt/package/yast2-qt.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-11_4-Branch/qt/pack... ============================================================================== --- branches/SuSE-Linux-11_4-Branch/qt/package/yast2-qt.changes (original) +++ branches/SuSE-Linux-11_4-Branch/qt/package/yast2-qt.changes Thu May 19 16:22:16 2011 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu May 19 14:46:09 CEST 2011 - tgoettlicher@suse.de + +- Fixed selection of tree widget items (bnc #680107) +- V.2.20.5 + +------------------------------------------------------------------- Mon Feb 21 17:37:47 CET 2011 - tgoettlicher@suse.de - Fixed unselecting items for tree widget (bnc #673801) Modified: branches/SuSE-Linux-11_4-Branch/qt/src/YQTree.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-11_4-Branch/qt/src/... ============================================================================== --- branches/SuSE-Linux-11_4-Branch/qt/src/YQTree.cc (original) +++ branches/SuSE-Linux-11_4-Branch/qt/src/YQTree.cc Thu May 19 16:22:16 2011 @@ -327,6 +327,14 @@ void YQTree::slotSelectionChanged( ) { + QList<QTreeWidgetItem *> items = _qt_treeWidget->selectedItems (); + + if ( ! hasMultiSelection() && ! items.empty() ) + { + QTreeWidgetItem *qItem = items.first(); + selectItem( dynamic_cast<YQTreeItem *> (qItem) ); + } + if ( notify() && ! YQUI::ui()->eventPendingFor( this ) ) YQUI::ui()->sendEvent( new YWidgetEvent( this, YEvent::SelectionChanged ) ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org