[yast-commit] r67475 - in /trunk/qt: VERSION.cmake package/yast2-qt.changes src/YQTable.cc
Author: tgoettlicher Date: Fri Feb 17 16:17:55 2012 New Revision: 67475 URL: http://svn.opensuse.org/viewcvs/yast?rev=67475&view=rev Log: Fixed selection and sorting in Table widget (bnc#746156) (2.22.3) Modified: trunk/qt/VERSION.cmake trunk/qt/package/yast2-qt.changes trunk/qt/src/YQTable.cc Modified: trunk/qt/VERSION.cmake URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/VERSION.cmake?rev=67475&r1=67474&r2=67475&view=diff ============================================================================== --- trunk/qt/VERSION.cmake (original) +++ trunk/qt/VERSION.cmake Fri Feb 17 16:17:55 2012 @@ -1,3 +1,3 @@ SET(VERSION_MAJOR "2") SET(VERSION_MINOR "22") -SET(VERSION_PATCH "2") +SET(VERSION_PATCH "3") Modified: trunk/qt/package/yast2-qt.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/package/yast2-qt.changes?rev=67475&r1=67474&r2=67475&view=diff ============================================================================== --- trunk/qt/package/yast2-qt.changes (original) +++ trunk/qt/package/yast2-qt.changes Fri Feb 17 16:17:55 2012 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Feb 17 16:17:32 CET 2012 - tgoettlicher@suse.de + +- Fixed selection and sorting in Table widget (bnc#746156) +- Version: 2.22.3 + +------------------------------------------------------------------- Wed Feb 8 14:54:15 CET 2012 - tgoettlicher@suse.de - Fixed bnc#731540: fixed auto-scroll in LogView Modified: trunk/qt/src/YQTable.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQTable.cc?rev=67475&r1=67474&r2=67475&view=diff ============================================================================== --- trunk/qt/src/YQTable.cc (original) +++ trunk/qt/src/YQTable.cc Fri Feb 17 16:17:55 2012 @@ -95,6 +95,7 @@ _qt_listView->setHeaderLabels( headers ); _qt_listView->header()->setResizeMode( QHeaderView::Interactive ); + _qt_listView->sortItems( 0, Qt::AscendingOrder); // @@ -216,8 +217,6 @@ if ( sel ) YQTable::selectItem( sel, true ); - _qt_listView->sortItems( 0, Qt::AscendingOrder); - for ( int i=0; i < columns(); i++ ) _qt_listView->resizeColumnToContents( i ); } @@ -297,7 +296,7 @@ void YQTable::slotSelected( QTreeWidgetItem * listViewItem ) { - if ( listViewItem ) + if ( listViewItem && listViewItem->isSelected() ) selectOrigItem( listViewItem ); else { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
tgoettlicher@svn2.opensuse.org