[yast-commit] r39844 - in /branches/tmp/sh/qt4-port/qt/src: YQMultiSelectionBox.cc YQTable.cc YQTree.cc
Author: sh-sh-sh Date: Tue Jul 31 16:47:31 2007 New Revision: 39844 URL: http://svn.opensuse.org/viewcvs/yast?rev=39844&view=rev Log: table column stretching Modified: branches/tmp/sh/qt4-port/qt/src/YQMultiSelectionBox.cc branches/tmp/sh/qt4-port/qt/src/YQTable.cc branches/tmp/sh/qt4-port/qt/src/YQTree.cc Modified: branches/tmp/sh/qt4-port/qt/src/YQMultiSelectionBox.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/qt4-port/qt/src/YQMultiSelectionBox.cc?rev=39844&r1=39843&r2=39844&view=diff ============================================================================== --- branches/tmp/sh/qt4-port/qt/src/YQMultiSelectionBox.cc (original) +++ branches/tmp/sh/qt4-port/qt/src/YQMultiSelectionBox.cc Tue Jul 31 16:47:31 2007 @@ -56,6 +56,7 @@ _qt_listview->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) ); _qt_listview->addColumn( "" ); // QListView doesn't have one single column by default! _qt_listview->setSorting( 0, false ); + _qt_listview->header()->setStretchEnabled( true ); _qt_listview->header()->hide(); _qt_label->setBuddy( _qt_listview ); @@ -121,6 +122,7 @@ _qt_listview->blockSignals( true ); YQMultiSelectionBoxItem * item = new YQMultiSelectionBoxItem( this, _qt_listview, fromUTF8( label->value() ) ); + // _qt_listview->header()->adjustHeaderSize(); if ( item && selected ) { Modified: branches/tmp/sh/qt4-port/qt/src/YQTable.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/qt4-port/qt/src/YQTable.cc?rev=39844&r1=39843&r2=39844&view=diff ============================================================================== --- branches/tmp/sh/qt4-port/qt/src/YQTable.cc (original) +++ branches/tmp/sh/qt4-port/qt/src/YQTable.cc Tue Jul 31 16:47:31 2007 @@ -92,6 +92,7 @@ setMargin( YQWidgetMargin ); _qt_listview = new Q3ListView( this ); + // _qt_listview->header()->setStretchEnabled( true ); if ( ! _enable_user_sort ) Modified: branches/tmp/sh/qt4-port/qt/src/YQTree.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/qt4-port/qt/src/YQTree.cc?rev=39844&r1=39843&r2=39844&view=diff ============================================================================== --- branches/tmp/sh/qt4-port/qt/src/YQTree.cc (original) +++ branches/tmp/sh/qt4-port/qt/src/YQTree.cc Tue Jul 31 16:47:31 2007 @@ -60,6 +60,7 @@ _listView = new Q3ListView( this ); _listView->setFont( YQUI::ui()->currentFont() ); _listView->addColumn( "" ); + _listView->header()->setStretchEnabled( true ); _listView->header()->hide(); _listView->setRootIsDecorated ( true ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
sh-sh-sh@svn.opensuse.org