summaryrefslogtreecommitdiff
path: root/noncore
authorllornkcor <llornkcor>2004-07-27 00:53:35 (UTC)
committer llornkcor <llornkcor>2004-07-27 00:53:35 (UTC)
commit2f332574ddbd31fe9709c1ec93049ecef9bd00a4 (patch) (side-by-side diff)
treeb4d2fb110e398d6fa2491bd754a1d3f2e651fe97 /noncore
parent8ff9840e3cbb28a1a644eb165465c60903e651a1 (diff)
downloadopie-2f332574ddbd31fe9709c1ec93049ecef9bd00a4.zip
opie-2f332574ddbd31fe9709c1ec93049ecef9bd00a4.tar.gz
opie-2f332574ddbd31fe9709c1ec93049ecef9bd00a4.tar.bz2
workaround weird windows listview bug
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/zsafe/zsafe.cpp8
1 files changed, 6 insertions, 2 deletions
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
@@ -657,33 +657,33 @@ ZSafe::ZSafe( QWidget* parent, const char* name, bool modal, WFlags fl )
*/
ListView = new ZListView( this, "ListView" );
ListView->addColumn( tr( "Name" ) );
ListView->addColumn( tr( "Field 2" ) );
ListView->addColumn( tr( "Field 3" ) );
ListView->addColumn( tr( "Comment" ) );
ListView->addColumn( tr( "Field 4" ) );
ListView->addColumn( tr( "Field 5" ) );
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);
// ListView->setGeometry( QRect( 0, 22,
// 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);
l->addWidget (ListView);
#ifndef DESKTOP
// start a timer (100 ms) to load the default document
docuTimer.start( 100, true );
connect( &docuTimer, SIGNAL(timeout()), SLOT( slotLoadDocu() ) );
raiseFlag = true;
connect( &raiseTimer, SIGNAL(timeout()), SLOT( slotRaiseTimer() ) );
#else
@@ -702,24 +702,28 @@ ZSafe::ZSafe( QWidget* parent, const char* name, bool modal, WFlags fl )
connect( ListView, SIGNAL( doubleClicked(QListViewItem*) ),
this, SLOT( showInfo(QListViewItem*) ) );
connect( ListView, SIGNAL( returnPressed(QListViewItem*) ),
this, SLOT( showInfo(QListViewItem*) ) );
#ifndef DESKTOP
QPEApplication::setStylusOperation( ListView->viewport(),QPEApplication::RightOnHold);
#endif
connect( ListView, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)),
this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) );
this->setIcon( image0);
+#ifdef Q_WS_WIN
+ ListView->setSelected( ListView->firstChild() , true);
+ ListView->setSelected( ListView->firstChild() , false);
+#endif
}
const QColor *ZSafe::evenRowColor = &Qt::white;
// const QColor *ZSafe::oddRowColor = &Qt::lightGray;
const QColor *ZSafe::oddRowColor = new QColor(216,240,255);
/*
* Destroys the object and frees any allocated resources
*/
ZSafe::~ZSafe()
{
// no need to delete child widgets, Qt does it all for us