From 0fac4909554179fa212c7c9e350735e0a058879e Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 28 Aug 2003 14:51:14 +0000 Subject: Use owait Harlekin you're not destroying owait... --- (limited to 'core/launcher') diff --git a/core/launcher/wait.cpp b/core/launcher/wait.cpp index d202d26..ab53a07 100644 --- a/core/launcher/wait.cpp +++ b/core/launcher/wait.cpp @@ -1,7 +1,7 @@ /********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. +** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. ** -** This file is part of Qtopia Environment. +** This file is part of the Qtopia Environment. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software @@ -20,8 +20,10 @@ #include "wait.h" -#include -#include +#include +#include + +#include #include #include @@ -36,8 +38,8 @@ Wait::Wait( QWidget *parent ) : QWidget( parent ), { setFixedSize( pm.size() ); lastWaitObject = this; - centralWait = new OWait( 0L ); - centralWait->hide(); + m_centralWait = new OWait( 0l ); + m_centralWait->hide(); hide(); } @@ -51,19 +53,18 @@ Wait *Wait::getWaitObject() void Wait::setWaiting( bool w ) { Config cfg ( "Launcher" ); - cfg. setGroup ( "GUI" ); + cfg.setGroup("GUI"); waiting = w; if ( w ) { - if ( cfg. readBoolEntry ( "BigBusy" ) ) { - centralWait->show(); - } else { + if ( cfg. readBoolEntry( "BigBusy" ) ) + m_centralWait->show(); + else show(); - } - } else { - centralWait->hide(); - hide(); + }else{ + m_centralWait->hide(); + hide(); } } diff --git a/core/launcher/wait.h b/core/launcher/wait.h index d7c29bd..e7294d2 100644 --- a/core/launcher/wait.h +++ b/core/launcher/wait.h @@ -1,7 +1,7 @@ /********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. +** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. ** -** This file is part of Qtopia Environment. +** This file is part of the Qtopia Environment. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software @@ -21,15 +21,13 @@ #ifndef __WAIT_H__ #define __WAIT_H__ -#include - -#include +#include #include -#include #include #include +class OWait; class Wait : public QWidget { public: @@ -38,9 +36,9 @@ public: void paintEvent( QPaintEvent * ); static Wait *getWaitObject(); private: - OWait* centralWait; QPixmap pm; bool waiting; + OWait* m_centralWait; }; -- cgit v0.9.0.2