From f005863ac3e3106f3da9fd337ab0a20da0cd4b83 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Thu, 13 May 2004 21:56:23 +0000 Subject: BUGFIX for 1314: Fix page initialization on first start of drawpad. Problem was caused by a race condition. Developers: If you have todo initializations which depend on the widget layout being finished, _don't_ do this in the widget constructor but in a callback from the mainloop, i.e. via QTimer::singleShot( 10, this, SLOT( myInitialization() ) ); --- (limited to 'noncore/graphics/drawpad/drawpad.h') diff --git a/noncore/graphics/drawpad/drawpad.h b/noncore/graphics/drawpad/drawpad.h index ba9e47d..63d3057 100644 --- a/noncore/graphics/drawpad/drawpad.h +++ b/noncore/graphics/drawpad/drawpad.h @@ -41,9 +41,10 @@ public: QBrush brush() { return m_brush; } bool antiAliasing(); - void finishStartup(); private slots: + void finishStartup(); + void newPage(); void clearPage(); void deletePage(); -- cgit v0.9.0.2