Diffstat (limited to 'libkdepim/categoryselectdialog_base.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libkdepim/categoryselectdialog_base.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/libkdepim/categoryselectdialog_base.cpp b/libkdepim/categoryselectdialog_base.cpp index 4793fd7..5d53ac4 100644 --- a/libkdepim/categoryselectdialog_base.cpp +++ b/libkdepim/categoryselectdialog_base.cpp | |||
@@ -1,84 +1,87 @@ | |||
1 | #include <klocale.h> | 1 | #include <klocale.h> |
2 | /**************************************************************************** | 2 | /**************************************************************************** |
3 | ** Form implementation generated from reading ui file '/build/kde/cvs/korge/kdepim/libkdepim/categoryselectdialog_base.ui' | 3 | ** Form implementation generated from reading ui file '/build/kde/cvs/korge/kdepim/libkdepim/categoryselectdialog_base.ui' |
4 | ** | 4 | ** |
5 | ** Created: Sat Mar 29 21:46:05 2003 | 5 | ** Created: Sat Mar 29 21:46:05 2003 |
6 | ** by: The User Interface Compiler () | 6 | ** by: The User Interface Compiler () |
7 | ** | 7 | ** |
8 | ** WARNING! All changes made in this file will be lost! | 8 | ** WARNING! All changes made in this file will be lost! |
9 | ****************************************************************************/ | 9 | ****************************************************************************/ |
10 | 10 | ||
11 | #include "categoryselectdialog_base.h" | 11 | #include "categoryselectdialog_base.h" |
12 | 12 | ||
13 | #include <qvariant.h> | 13 | #include <qvariant.h> |
14 | #include <qheader.h> | 14 | #include <q3header.h> |
15 | #include <qlistview.h> | 15 | #include <q3listview.h> |
16 | #include <qpushbutton.h> | 16 | #include <qpushbutton.h> |
17 | #include <qlayout.h> | 17 | #include <qlayout.h> |
18 | #include <qtooltip.h> | 18 | #include <qtooltip.h> |
19 | #include <qwhatsthis.h> | 19 | #include <q3whatsthis.h> |
20 | //Added by qt3to4: | ||
21 | #include <Q3VBoxLayout> | ||
22 | #include <Q3HBoxLayout> | ||
20 | 23 | ||
21 | /* | 24 | /* |
22 | * Constructs a CategorySelectDialog_base as a child of 'parent', with the | 25 | * Constructs a CategorySelectDialog_base as a child of 'parent', with the |
23 | * name 'name' and widget flags set to 'f'. | 26 | * name 'name' and widget flags set to 'f'. |
24 | * | 27 | * |
25 | * The dialog will by default be modeless, unless you set 'modal' to | 28 | * The dialog will by default be modeless, unless you set 'modal' to |
26 | * TRUE to construct a modal dialog. | 29 | * TRUE to construct a modal dialog. |
27 | */ | 30 | */ |
28 | CategorySelectDialog_base::CategorySelectDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl ) | 31 | CategorySelectDialog_base::CategorySelectDialog_base( QWidget* parent, const char* name, bool modal, Qt::WFlags fl ) |
29 | : QDialog( parent, name, modal, fl ) | 32 | : QDialog( parent, name, modal, fl ) |
30 | 33 | ||
31 | { | 34 | { |
32 | if ( !name ) | 35 | if ( !name ) |
33 | setName( "CategorySelectDialog_base" ); | 36 | setName( "CategorySelectDialog_base" ); |
34 | CategorySelectDialog_baseLayout = new QVBoxLayout( this, 11, 6, "CategorySelectDialog_baseLayout"); | 37 | CategorySelectDialog_baseLayout = new Q3VBoxLayout( this, 11, 6, "CategorySelectDialog_baseLayout"); |
35 | 38 | ||
36 | mCategories = new QListView( this, "mCategories" ); | 39 | mCategories = new Q3ListView( this, "mCategories" ); |
37 | mCategories->addColumn( i18n( "Category" ) ); | 40 | mCategories->addColumn( i18n( "Category" ) ); |
38 | CategorySelectDialog_baseLayout->addWidget( mCategories ); | 41 | CategorySelectDialog_baseLayout->addWidget( mCategories ); |
39 | mSetColorCat = new QPushButton( this, "msetColor" ); | 42 | mSetColorCat = new QPushButton( this, "msetColor" ); |
40 | CategorySelectDialog_baseLayout->addWidget( mSetColorCat ); | 43 | CategorySelectDialog_baseLayout->addWidget( mSetColorCat ); |
41 | Layout12 = new QHBoxLayout( 0, 0, 4, "Layout12"); | 44 | Layout12 = new Q3HBoxLayout( 0, 0, 4, "Layout12"); |
42 | 45 | ||
43 | mClear = new QPushButton( this, "mClear" ); | 46 | mClear = new QPushButton( this, "mClear" ); |
44 | Layout12->addWidget( mClear ); | 47 | Layout12->addWidget( mClear ); |
45 | // QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | 48 | // QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); |
46 | //Layout12->addItem( spacer ); | 49 | //Layout12->addItem( spacer ); |
47 | 50 | ||
48 | mButtonEdit = new QPushButton( this, "mButtonEdit" ); | 51 | mButtonEdit = new QPushButton( this, "mButtonEdit" ); |
49 | Layout12->addWidget( mButtonEdit ); | 52 | Layout12->addWidget( mButtonEdit ); |
50 | CategorySelectDialog_baseLayout->addLayout( Layout12 ); | 53 | CategorySelectDialog_baseLayout->addLayout( Layout12 ); |
51 | 54 | ||
52 | Layout11 = new QHBoxLayout( 0, 0, 4, "Layout11"); | 55 | Layout11 = new Q3HBoxLayout( 0, 0, 4, "Layout11"); |
53 | 56 | ||
54 | //mButtonHelp = new QPushButton( this, "mButtonHelp" ); | 57 | //mButtonHelp = new QPushButton( this, "mButtonHelp" ); |
55 | //Layout11->addWidget( mButtonHelp ); | 58 | //Layout11->addWidget( mButtonHelp ); |
56 | //QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | 59 | //QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); |
57 | // Layout11->addItem( spacer_2 ); | 60 | // Layout11->addItem( spacer_2 ); |
58 | 61 | ||
59 | //mApply = new QPushButton( this, "mApply" ); | 62 | //mApply = new QPushButton( this, "mApply" ); |
60 | // Layout11->addWidget( mApply ); | 63 | // Layout11->addWidget( mApply ); |
61 | 64 | ||
62 | mButtonOk = new QPushButton( this, "mButtonOk" ); | 65 | mButtonOk = new QPushButton( this, "mButtonOk" ); |
63 | mButtonOk->setOn( FALSE ); | 66 | mButtonOk->setOn( FALSE ); |
64 | mButtonOk->setDefault( TRUE ); | 67 | mButtonOk->setDefault( TRUE ); |
65 | Layout11->addWidget( mButtonOk ); | 68 | Layout11->addWidget( mButtonOk ); |
66 | 69 | ||
67 | mButtonCancel = new QPushButton( this, "mButtonCancel" ); | 70 | mButtonCancel = new QPushButton( this, "mButtonCancel" ); |
68 | Layout11->addWidget( mButtonCancel ); | 71 | Layout11->addWidget( mButtonCancel ); |
69 | CategorySelectDialog_baseLayout->addLayout( Layout11 ); | 72 | CategorySelectDialog_baseLayout->addLayout( Layout11 ); |
70 | languageChange(); | 73 | languageChange(); |
71 | // resize( sizeHint() ); | 74 | // resize( sizeHint() ); |
72 | 75 | ||
73 | // signals and slots connections | 76 | // signals and slots connections |
74 | connect( mButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); | 77 | connect( mButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); |
75 | connect( mButtonOk, SIGNAL( clicked() ), this, SLOT( slotOk() ) ); | 78 | connect( mButtonOk, SIGNAL( clicked() ), this, SLOT( slotOk() ) ); |
76 | connect( mClear, SIGNAL( clicked() ), this, SLOT( clear() ) ); | 79 | connect( mClear, SIGNAL( clicked() ), this, SLOT( clear() ) ); |
77 | //connect( mApply, SIGNAL( clicked() ), this, SLOT( slotApply() ) ); | 80 | //connect( mApply, SIGNAL( clicked() ), this, SLOT( slotApply() ) ); |
78 | 81 | ||
79 | // tab order | 82 | // tab order |
80 | setTabOrder( mCategories, mClear ); | 83 | setTabOrder( mCategories, mClear ); |
81 | setTabOrder( mClear, mButtonEdit ); | 84 | setTabOrder( mClear, mButtonEdit ); |
82 | setTabOrder( mButtonEdit, mButtonOk );//mButtonHelp ); | 85 | setTabOrder( mButtonEdit, mButtonOk );//mButtonHelp ); |
83 | // setTabOrder( mButtonHelp, mApply ); | 86 | // setTabOrder( mButtonHelp, mApply ); |
84 | // setTabOrder( mApply, mButtonOk ); | 87 | // setTabOrder( mApply, mButtonOk ); |