summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/qchecknamebase.cpp
Unidiff
Diffstat (limited to 'noncore/apps/checkbook/qchecknamebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/qchecknamebase.cpp81
1 files changed, 0 insertions, 81 deletions
diff --git a/noncore/apps/checkbook/qchecknamebase.cpp b/noncore/apps/checkbook/qchecknamebase.cpp
deleted file mode 100644
index 27bebc1..0000000
--- a/noncore/apps/checkbook/qchecknamebase.cpp
+++ b/dev/null
@@ -1,81 +0,0 @@
1/****************************************************************************
2** Form implementation generated from reading ui file 'qchecknamebase.ui'
3**
4** Created: Wed Sep 18 09:40:57 2002
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#include "qchecknamebase.h"
10
11#include <qlabel.h>
12#include <qpushbutton.h>
13#include "qrestrictedline.h"
14#include <qlayout.h>
15#include <qvariant.h>
16#include <qtooltip.h>
17#include <qwhatsthis.h>
18
19/*
20 * Constructs a QCheckNameBase which is a child of 'parent', with the
21 * name 'name' and widget flags set to 'f'
22 *
23 * The dialog will by default be modeless, unless you set 'modal' to
24 * TRUE to construct a modal dialog.
25 */
26QCheckNameBase::QCheckNameBase( QWidget* parent, const char* name, bool modal, WFlags fl )
27 : QDialog( parent, name, modal, fl )
28{
29 if ( !name )
30 setName( "QCheckNameBase" );
31 resize( 228, 108 );
32 setCaption( tr( "Check Book Name" ) );
33
34 TextLabel3 = new QLabel( this, "TextLabel3" );
35 TextLabel3->setGeometry( QRect( 10, 5, 70, 16 ) );
36 QFont TextLabel3_font( TextLabel3->font() );
37 TextLabel3_font.setFamily( "BDF-helvetica" );
38 TextLabel3_font.setPointSize( 19 );
39 TextLabel3_font.setBold( TRUE );
40 TextLabel3->setFont( TextLabel3_font );
41 TextLabel3->setText( tr( "Name..." ) );
42
43 TextLabel4 = new QLabel( this, "TextLabel4" );
44 TextLabel4->setGeometry( QRect( 10, 25, 210, 25 ) );
45 TextLabel4->setText( tr( "Please name your check book.\n(limit: 15 characters):" ) );
46 TextLabel4->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
47
48 cmdDone = new QPushButton( this, "cmdDone" );
49 cmdDone->setGeometry( QRect( 75, 80, 75, 25 ) );
50 cmdDone->setText( tr( "&Done" ) );
51
52 leText = new QRestrictedLine( this, "leText" );
53 leText->setGeometry( QRect( 5, 51, 216, 25 ) );
54 leText->setFocus();
55}
56
57/*
58 * Destroys the object and frees any allocated resources
59 */
60QCheckNameBase::~QCheckNameBase()
61{
62 // no need to delete child widgets, Qt does it all for us
63}
64
65/*
66 * Main event handler. Reimplemented to handle application
67 * font changes
68 */
69bool QCheckNameBase::event( QEvent* ev )
70{
71 bool ret = QDialog::event( ev );
72 if ( ev->type() == QEvent::ApplicationFontChange ) {
73 QFont TextLabel3_font( TextLabel3->font() );
74 TextLabel3_font.setFamily( "BDF-helvetica" );
75 TextLabel3_font.setPointSize( 19 );
76 TextLabel3_font.setBold( TRUE );
77 TextLabel3->setFont( TextLabel3_font );
78 }
79 return ret;
80}
81