author | mickeyl <mickeyl> | 2004-08-26 09:49:39 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-08-26 09:49:39 (UTC) |
commit | f64f691f57b134a839b4913e9a2f524790916f51 (patch) (side-by-side diff) | |
tree | 4b8f5b6c066e9ad53a033ee16d42c8bb26556121 | |
parent | 98061531d572e3ded13ec7f8a1a6085362eaa50e (diff) | |
download | opie-f64f691f57b134a839b4913e9a2f524790916f51.zip opie-f64f691f57b134a839b4913e9a2f524790916f51.tar.gz opie-f64f691f57b134a839b4913e9a2f524790916f51.tar.bz2 |
fix bogus NOP as pointed out by zecke
-rw-r--r-- | libopie2/opieui/olistview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opieui/olistview.cpp b/libopie2/opieui/olistview.cpp index 0b3bdea..b90c786 100644 --- a/libopie2/opieui/olistview.cpp +++ b/libopie2/opieui/olistview.cpp @@ -41,49 +41,49 @@ using namespace Opie::Core; namespace Opie { namespace Ui { /*====================================================================================== * OListView *======================================================================================*/ OListView::OListView( QWidget *parent, const char *name, WFlags fl ) :QListView( parent, name, fl ) { //FIXME: get from global settings and calculate ==> see oglobalsettings.* m_alternateBackground = QColor( 238, 246, 255 ); m_columnSeparator = QPen( QColor( 150, 160, 170 ), 0, DotLine ); m_fullWidth = true; connect( this, SIGNAL(expanded(QListViewItem*)), SLOT(expand(QListViewItem*))); } OListView::~OListView() { } void OListView::setFullWidth( bool fullWidth ) { - m_fullWidth = m_fullWidth; + m_fullWidth = fullWidth; #if QT_VERSION > 290 header()->setStretchEnabled( fullWidth, columns()-1 ); #endif } bool OListView::fullWidth() const { return m_fullWidth; } int OListView::addColumn( const QString& label, int width ) { int result = QListView::addColumn( label, width ); #if QT_VERSION > 290 if (m_fullWidth) { header()->setStretchEnabled( false, columns()-2 ); header()->setStretchEnabled( true, columns()-1 ); } #endif return result; } int OListView::addColumn( const QIconSet& iconset, const QString& label, int width ) { |