summaryrefslogtreecommitdiff
path: root/libopie/owait.cpp
Unidiff
Diffstat (limited to 'libopie/owait.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/owait.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/libopie/owait.cpp b/libopie/owait.cpp
index c90bb72..0fdf08d 100644
--- a/libopie/owait.cpp
+++ b/libopie/owait.cpp
@@ -20,26 +20,36 @@
20#include <qlabel.h> 20#include <qlabel.h>
21#include <qlayout.h> 21#include <qlayout.h>
22#include <qtimer.h> 22#include <qtimer.h>
23#include <qpe/qpeapplication.h> 23#include <qpe/qpeapplication.h>
24#include <qpainter.h> 24#include <qpainter.h>
25 25
26#include "owait.h" 26#include "owait.h"
27 27
28#include <qpe/resource.h> 28#include <qpe/resource.h>
29 29
30static int frame = 0; 30static int frame = 0;
31 31
32/**
33 * This will construct a modal dialog.
34 *
35 * The default timer length is 10.
36 *
37 * @param parent The parent of the widget
38 * @param msg The name of the object
39 * @param dispIcon Display Icon?
40 */
32OWait::OWait(QWidget *parent, const char* msg, bool dispIcon ) 41OWait::OWait(QWidget *parent, const char* msg, bool dispIcon )
33 :QDialog(parent, QObject::tr("Wait"), TRUE,WStyle_Customize) { 42 :QDialog(parent, msg, TRUE,WStyle_Customize) {
43
34 44
35 QHBoxLayout *hbox = new QHBoxLayout( this ); 45 QHBoxLayout *hbox = new QHBoxLayout( this );
36 46
37 m_lb = new QLabel( this ); 47 m_lb = new QLabel( this );
38 m_lb->setBackgroundMode ( NoBackground ); 48 m_lb->setBackgroundMode ( NoBackground );
39 49
40 hbox->addWidget( m_lb ); 50 hbox->addWidget( m_lb );
41 hbox->activate(); 51 hbox->activate();
42 52
43 m_pix = Resource::loadPixmap( "BigBusy" ); 53 m_pix = Resource::loadPixmap( "BigBusy" );
44 m_aniSize = m_pix.height(); 54 m_aniSize = m_pix.height();
45 resize( m_aniSize, m_aniSize ); 55 resize( m_aniSize, m_aniSize );