Diffstat (limited to 'noncore/settings/aqpkg/progressdlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/progressdlg.cpp | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/progressdlg.cpp b/noncore/settings/aqpkg/progressdlg.cpp new file mode 100644 index 0000000..3fa4367 --- a/dev/null +++ b/noncore/settings/aqpkg/progressdlg.cpp | |||
@@ -0,0 +1,65 @@ | |||
1 | /*************************************************************************** | ||
2 | progressdlg.h - description | ||
3 | ------------------- | ||
4 | begin : Mon Aug 26 2002 | ||
5 | copyright : (C) 2002 by Andy Qua | ||
6 | email : andy.qua@blueyonder.co.uk | ||
7 | ***************************************************************************/ | ||
8 | |||
9 | /*************************************************************************** | ||
10 | * * | ||
11 | * This program is free software; you can redistribute it and/or modify * | ||
12 | * it under the terms of the GNU General Public License as published by * | ||
13 | * the Free Software Foundation; either version 2 of the License, or * | ||
14 | * (at your option) any later version. * | ||
15 | * * | ||
16 | ***************************************************************************/ | ||
17 | |||
18 | #include "progressdlg.h" | ||
19 | |||
20 | #include <qlabel.h> | ||
21 | #include <qlayout.h> | ||
22 | #include <qvariant.h> | ||
23 | #include <qtooltip.h> | ||
24 | #include <qwhatsthis.h> | ||
25 | |||
26 | #include "global.h" | ||
27 | /* | ||
28 | * Constructs a ProgressDlg which is a child of 'parent', with the | ||
29 | * name 'name' and widget flags set to 'f' | ||
30 | * | ||
31 | * The dialog will by default be modeless, unless you set 'modal' to | ||
32 | * TRUE to construct a modal dialog. | ||
33 | */ | ||
34 | ProgressDlg::ProgressDlg( QWidget* parent, const char* name, bool modal, WFlags fl ) | ||
35 | : QDialog( parent, name, modal, fl ) | ||
36 | { | ||
37 | if ( !name ) | ||
38 | setName( "ProgressDlg" ); | ||
39 | resize( 240, 73 ); | ||
40 | setCaption( tr( "Progress" ) ); | ||
41 | |||
42 | TextLabel2 = new QLabel( this, "TextLabel2" ); | ||
43 | TextLabel2->setGeometry( QRect( 10, 10, 240, 50 ) ); | ||
44 | TextLabel2->setFrameShape( QLabel::Box ); | ||
45 | TextLabel2->setText( tr( "Text" ) ); | ||
46 | TextLabel2->setAlignment( QLabel::WordBreak | QLabel::AlignHCenter | QLabel::AlignVCenter ); | ||
47 | } | ||
48 | |||
49 | /* | ||
50 | * Destroys the object and frees any allocated resources | ||
51 | */ | ||
52 | ProgressDlg::~ProgressDlg() | ||
53 | { | ||
54 | // no need to delete child widgets, Qt does it all for us | ||
55 | } | ||
56 | |||
57 | void ProgressDlg :: setText( QString &text ) | ||
58 | { | ||
59 | TextLabel2->setText( text ); | ||
60 | } | ||
61 | |||
62 | void ProgressDlg :: setText( const char *text ) | ||
63 | { | ||
64 | TextLabel2->setText( text ); | ||
65 | } | ||