summaryrefslogtreecommitdiff
authorzecke <zecke>2002-06-25 18:18:59 (UTC)
committer zecke <zecke>2002-06-25 18:18:59 (UTC)
commitbb392a72fd6071e76ca0c103637d6bb9eed59d3a (patch) (unidiff)
tree8ed133ad55a7809873b5136ca97063be5fc85d8d
parent6812da2105ea8cc3e78b4fb54601e3fd12413ccc (diff)
downloadopie-bb392a72fd6071e76ca0c103637d6bb9eed59d3a.zip
opie-bb392a72fd6071e76ca0c103637d6bb9eed59d3a.tar.gz
opie-bb392a72fd6071e76ca0c103637d6bb9eed59d3a.tar.bz2
Fixing QPE bugs isn't good for my health.... But I guess
judging of the amount already fixed bugs that there isn't much to come
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/datebook.cpp23
1 files changed, 21 insertions, 2 deletions
diff --git a/core/pim/datebook/datebook.cpp b/core/pim/datebook/datebook.cpp
index 7dd93a6..e10842a 100644
--- a/core/pim/datebook/datebook.cpp
+++ b/core/pim/datebook/datebook.cpp
@@ -60,2 +60,3 @@
60#include <qtextstream.h> 60#include <qtextstream.h>
61#include <qtimer.h>
61#include <qtl.h> 62#include <qtl.h>
@@ -88,2 +89,3 @@ DateBook::DateBook( QWidget *parent, const char *, WFlags f )
88{ 89{
90 bool needEvilHack= false; // if we need an Evil Hack
89 QTime t; 91 QTime t;
@@ -183,3 +185,3 @@ DateBook::DateBook( QWidget *parent, const char *, WFlags f )
183 a = new QAction( tr( "Week" ), QString::null, 0, 0, 0, true ); 185 a = new QAction( tr( "Week" ), QString::null, 0, 0, 0, true );
184 if (current==WEEK) a->setOn(true), viewWeek(); 186 if (current==WEEK) a->setOn(true), /*viewWeek(),*/ needEvilHack = true;
185 ag->insert(a); 187 ag->insert(a);
@@ -221,3 +223,20 @@ DateBook::DateBook( QWidget *parent, const char *, WFlags f )
221 qDebug("done t=%d", t.elapsed() ); 223 qDebug("done t=%d", t.elapsed() );
222 224
225 /*
226 * Here is a problem description:
227 * When Weekview is the default view
228 * a DateBookWeekView get's created
229 * redraw() get's called. So what?
230 * Remember that we're still in the c'tor
231 * and no final layout has happened? Ok
232 * now all Events get arranged. Their x
233 * position get's determined by a QHeader
234 * position. But the QHeader isn't layouted or
235 * at the right position. redraw() is a slot
236 * so we'll call it then via a singleShot
237 * from view()
238 */
239 if( needEvilHack ){
240 QTimer::singleShot( 500, this, SLOT(viewWeek()) );
241 }
223} 242}