From 2f332574ddbd31fe9709c1ec93049ecef9bd00a4 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Tue, 27 Jul 2004 00:53:35 +0000 Subject: workaround weird windows listview bug --- (limited to 'noncore') diff --git a/noncore/apps/zsafe/zsafe.cpp b/noncore/apps/zsafe/zsafe.cpp index 2dd94aa..6aa6392 100644 --- a/noncore/apps/zsafe/zsafe.cpp +++ b/noncore/apps/zsafe/zsafe.cpp @@ -666,7 +666,7 @@ ZSafe::ZSafe( QWidget* parent, const char* name, bool modal, WFlags fl ) ListView->setAllColumnsShowFocus(TRUE); #ifdef DESKTOP - ListView->setResizePolicy(QScrollView::AutoOneFit); + // ListView->setResizePolicy(QScrollView::AutoOneFit); // ListView->setGeometry( QRect( 0, 22, this->width(), this->height() - 30 ) ); #else ListView->setResizePolicy(QScrollView::AutoOneFit); @@ -674,7 +674,7 @@ ZSafe::ZSafe( QWidget* parent, const char* name, bool modal, WFlags fl ) // this->width(), this->height() - 30 ) ); // ListView->setMaximumSize( QSize( 440, 290 ) ); #endif - ListView->setVScrollBarMode( QListView::Auto ); + // ListView->setVScrollBarMode( QListView::Auto ); QBoxLayout * l = new QVBoxLayout( this ); l->addWidget (menu); @@ -710,7 +710,11 @@ ZSafe::ZSafe( QWidget* parent, const char* name, bool modal, WFlags fl ) connect( ListView, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) ); - this->setIcon( image0); + this->setIcon( image0); +#ifdef Q_WS_WIN + ListView->setSelected( ListView->firstChild() , true); + ListView->setSelected( ListView->firstChild() , false); +#endif } const QColor *ZSafe::evenRowColor = &Qt::white; -- cgit v0.9.0.2