author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /korganizer/filteredit_base.cpp | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
Diffstat (limited to 'korganizer/filteredit_base.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/filteredit_base.cpp | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/korganizer/filteredit_base.cpp b/korganizer/filteredit_base.cpp index 505edf6..9425963 100644 --- a/korganizer/filteredit_base.cpp +++ b/korganizer/filteredit_base.cpp | |||
@@ -1,128 +1,132 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** Form implementation generated from reading ui file 'filteredit_base.ui' | 2 | ** Form implementation generated from reading ui file 'filteredit_base.ui' |
3 | ** | 3 | ** |
4 | ** Created: Fr Jan 21 21:25:30 2005 | 4 | ** Created: Fr Jan 21 21:25:30 2005 |
5 | ** by: The User Interface Compiler ($Id$) | 5 | ** by: The User Interface Compiler ($Id$) |
6 | ** | 6 | ** |
7 | ** WARNING! All changes made in this file will be lost! | 7 | ** WARNING! All changes made in this file will be lost! |
8 | ****************************************************************************/ | 8 | ****************************************************************************/ |
9 | 9 | ||
10 | #include "filteredit_base.h" | 10 | #include "filteredit_base.h" |
11 | 11 | ||
12 | #include <qvariant.h> | 12 | #include <qvariant.h> |
13 | #include <qpushbutton.h> | 13 | #include <qpushbutton.h> |
14 | #include <qframe.h> | 14 | #include <q3frame.h> |
15 | #include <qbuttongroup.h> | 15 | #include <q3buttongroup.h> |
16 | #include <qapplication.h> | 16 | #include <qapplication.h> |
17 | #include <QDesktopWidget> | ||
17 | #include <qradiobutton.h> | 18 | #include <qradiobutton.h> |
18 | #include <qlistbox.h> | 19 | #include <q3listbox.h> |
19 | #include <qlabel.h> | 20 | #include <qlabel.h> |
20 | #include <qcheckbox.h> | 21 | #include <qcheckbox.h> |
21 | #include <qlayout.h> | 22 | #include <qlayout.h> |
22 | #include <qtooltip.h> | 23 | #include <qtooltip.h> |
23 | #include <qwhatsthis.h> | 24 | #include <q3whatsthis.h> |
25 | //Added by qt3to4: | ||
26 | #include <Q3GridLayout> | ||
27 | #include <Q3HBoxLayout> | ||
28 | #include <Q3VBoxLayout> | ||
24 | #include "tr.h" | 29 | #include "tr.h" |
25 | 30 | ||
26 | /* | 31 | /* |
27 | * Constructs a FilterEdit_base as a child of 'parent', with the | 32 | * Constructs a FilterEdit_base as a child of 'parent', with the |
28 | * name 'name' and widget flags set to 'f'. | 33 | * name 'name' and widget flags set to 'f'. |
29 | */ | 34 | */ |
30 | FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl ) | 35 | FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, Qt::WFlags fl ) |
31 | : QWidget( parent, name, fl ) | 36 | : QWidget( parent, name, fl ) |
32 | { | 37 | { |
33 | if ( !name ) | 38 | if ( !name ) |
34 | setName( "FilterEdit_base" ); | 39 | setName( "FilterEdit_base" ); |
35 | FilterEdit_baseLayout = new QVBoxLayout( this, 0, 0, "FilterEdit_baseLayout"); | 40 | FilterEdit_baseLayout = new Q3VBoxLayout( this, 0, 0, "FilterEdit_baseLayout"); |
36 | 41 | ||
37 | mCriteriaFrame = new QFrame( this, "mCriteriaFrame" ); | 42 | mCriteriaFrame = new Q3Frame( this, "mCriteriaFrame" ); |
38 | mCriteriaFrame->setFrameShape( QFrame::StyledPanel ); | 43 | mCriteriaFrame->setFrameShape( Q3Frame::StyledPanel ); |
39 | mCriteriaFrame->setFrameShadow( QFrame::Raised ); | 44 | mCriteriaFrame->setFrameShadow( Q3Frame::Raised ); |
40 | mCriteriaFrameLayout = new QVBoxLayout( mCriteriaFrame, 3, 2, "mCriteriaFrameLayout"); | 45 | mCriteriaFrameLayout = new Q3VBoxLayout( mCriteriaFrame, 3, 2, "mCriteriaFrameLayout"); |
41 | 46 | ||
42 | ButtonGroup1 = new QButtonGroup( mCriteriaFrame, "ButtonGroup1" ); | 47 | ButtonGroup1 = new Q3ButtonGroup( mCriteriaFrame, "ButtonGroup1" ); |
43 | ButtonGroup1->setColumnLayout(0, Qt::Vertical ); | 48 | ButtonGroup1->setColumnLayout(0, Qt::Vertical ); |
44 | ButtonGroup1->layout()->setSpacing( 6 ); | 49 | ButtonGroup1->layout()->setSpacing( 6 ); |
45 | ButtonGroup1->layout()->setMargin( 6 ); | 50 | ButtonGroup1->layout()->setMargin( 6 ); |
46 | ButtonGroup1Layout = new QGridLayout( ButtonGroup1->layout() ); | 51 | ButtonGroup1Layout = new Q3GridLayout( ButtonGroup1->layout() ); |
47 | ButtonGroup1Layout->setAlignment( Qt::AlignTop ); | 52 | ButtonGroup1Layout->setAlignment( Qt::AlignTop ); |
48 | 53 | ||
49 | layout4 = new QHBoxLayout( 0, 0, 6, "layout4"); | 54 | layout4 = new Q3HBoxLayout( 0, 0, 6, "layout4"); |
50 | 55 | ||
51 | mCatShowCheck = new QRadioButton( ButtonGroup1, "mCatShowCheck" ); | 56 | mCatShowCheck = new QRadioButton( ButtonGroup1, "mCatShowCheck" ); |
52 | layout4->addWidget( mCatShowCheck ); | 57 | layout4->addWidget( mCatShowCheck ); |
53 | 58 | ||
54 | mCatHideCheck = new QRadioButton( ButtonGroup1, "mCatHideCheck" ); | 59 | mCatHideCheck = new QRadioButton( ButtonGroup1, "mCatHideCheck" ); |
55 | layout4->addWidget( mCatHideCheck ); | 60 | layout4->addWidget( mCatHideCheck ); |
56 | 61 | ||
57 | mCatEditButton = new QPushButton( ButtonGroup1, "mCatEditButton" ); | 62 | mCatEditButton = new QPushButton( ButtonGroup1, "mCatEditButton" ); |
58 | layout4->addWidget( mCatEditButton ); | 63 | layout4->addWidget( mCatEditButton ); |
59 | 64 | ||
60 | ButtonGroup1Layout->addLayout( layout4, 0, 0 ); | 65 | ButtonGroup1Layout->addLayout( layout4, 0, 0 ); |
61 | 66 | ||
62 | mCatList = new QListBox( ButtonGroup1, "mCatList" ); | 67 | mCatList = new Q3ListBox( ButtonGroup1, "mCatList" ); |
63 | 68 | ||
64 | ButtonGroup1Layout->addWidget( mCatList, 1, 0 ); | 69 | ButtonGroup1Layout->addWidget( mCatList, 1, 0 ); |
65 | mCriteriaFrameLayout->addWidget( ButtonGroup1 ); | 70 | mCriteriaFrameLayout->addWidget( ButtonGroup1 ); |
66 | 71 | ||
67 | layout7 = new QHBoxLayout( 0, 0, 6, "layout7"); | 72 | layout7 = new Q3HBoxLayout( 0, 0, 6, "layout7"); |
68 | 73 | ||
69 | textLabel1 = new QLabel( mCriteriaFrame, "textLabel1" ); | 74 | textLabel1 = new QLabel( mCriteriaFrame, "textLabel1" ); |
70 | layout7->addWidget( textLabel1 ); | 75 | layout7->addWidget( textLabel1 ); |
71 | 76 | ||
72 | mRecurringCheck = new QCheckBox( mCriteriaFrame, "mRecurringCheck" ); | 77 | mRecurringCheck = new QCheckBox( mCriteriaFrame, "mRecurringCheck" ); |
73 | layout7->addWidget( mRecurringCheck ); | 78 | layout7->addWidget( mRecurringCheck ); |
74 | 79 | ||
75 | mCompletedCheck = new QCheckBox( mCriteriaFrame, "mCompletedCheck" ); | 80 | mCompletedCheck = new QCheckBox( mCriteriaFrame, "mCompletedCheck" ); |
76 | layout7->addWidget( mCompletedCheck ); | 81 | layout7->addWidget( mCompletedCheck ); |
77 | mCriteriaFrameLayout->addLayout( layout7 ); | 82 | mCriteriaFrameLayout->addLayout( layout7 ); |
78 | 83 | ||
79 | layout9 = new QHBoxLayout( 0, 0, 6, "layout9"); | 84 | layout9 = new Q3HBoxLayout( 0, 0, 6, "layout9"); |
80 | 85 | ||
81 | textLabel1_2 = new QLabel( mCriteriaFrame, "textLabel1_2" ); | 86 | textLabel1_2 = new QLabel( mCriteriaFrame, "textLabel1_2" ); |
82 | layout9->addWidget( textLabel1_2 ); | 87 | layout9->addWidget( textLabel1_2 ); |
83 | 88 | ||
84 | mEventCheck = new QCheckBox( mCriteriaFrame, "mEventCheck" ); | 89 | mEventCheck = new QCheckBox( mCriteriaFrame, "mEventCheck" ); |
85 | layout9->addWidget( mEventCheck ); | 90 | layout9->addWidget( mEventCheck ); |
86 | 91 | ||
87 | mTodoCheck = new QCheckBox( mCriteriaFrame, "mTodoCheck" ); | 92 | mTodoCheck = new QCheckBox( mCriteriaFrame, "mTodoCheck" ); |
88 | layout9->addWidget( mTodoCheck ); | 93 | layout9->addWidget( mTodoCheck ); |
89 | 94 | ||
90 | mJournalCheck = new QCheckBox( mCriteriaFrame, "mJournalCheck" ); | 95 | mJournalCheck = new QCheckBox( mCriteriaFrame, "mJournalCheck" ); |
91 | layout9->addWidget( mJournalCheck ); | 96 | layout9->addWidget( mJournalCheck ); |
92 | mCriteriaFrameLayout->addLayout( layout9 ); | 97 | mCriteriaFrameLayout->addLayout( layout9 ); |
93 | 98 | ||
94 | layout2 = new QHBoxLayout( 0, 0, 0, "layout2"); | 99 | layout2 = new Q3HBoxLayout( 0, 0, 0, "layout2"); |
95 | 100 | ||
96 | textLabel2 = new QLabel( mCriteriaFrame, "textLabel2" ); | 101 | textLabel2 = new QLabel( mCriteriaFrame, "textLabel2" ); |
97 | layout2->addWidget( textLabel2 ); | 102 | layout2->addWidget( textLabel2 ); |
98 | 103 | ||
99 | mPublicCheck = new QCheckBox( mCriteriaFrame, "mPublicCheck" ); | 104 | mPublicCheck = new QCheckBox( mCriteriaFrame, "mPublicCheck" ); |
100 | layout2->addWidget( mPublicCheck ); | 105 | layout2->addWidget( mPublicCheck ); |
101 | 106 | ||
102 | mPrivateCheck = new QCheckBox( mCriteriaFrame, "mPrivateCheck" ); | 107 | mPrivateCheck = new QCheckBox( mCriteriaFrame, "mPrivateCheck" ); |
103 | layout2->addWidget( mPrivateCheck ); | 108 | layout2->addWidget( mPrivateCheck ); |
104 | 109 | ||
105 | mConfidentialCheck = new QCheckBox( mCriteriaFrame, "mConfidentialCheck" ); | 110 | mConfidentialCheck = new QCheckBox( mCriteriaFrame, "mConfidentialCheck" ); |
106 | mConfidentialCheck->setChecked( FALSE ); | 111 | mConfidentialCheck->setChecked( FALSE ); |
107 | layout2->addWidget( mConfidentialCheck ); | 112 | layout2->addWidget( mConfidentialCheck ); |
108 | mCriteriaFrameLayout->addLayout( layout2 ); | 113 | mCriteriaFrameLayout->addLayout( layout2 ); |
109 | FilterEdit_baseLayout->addWidget( mCriteriaFrame ); | 114 | FilterEdit_baseLayout->addWidget( mCriteriaFrame ); |
110 | languageChange(); | 115 | languageChange(); |
111 | resize( QSize(300, 200).expandedTo(minimumSizeHint()) ); | 116 | resize( QSize(300, 200).expandedTo(minimumSizeHint()) ); |
112 | clearWState( WState_Polished ); | ||
113 | } | 117 | } |
114 | 118 | ||
115 | /* | 119 | /* |
116 | * Destroys the object and frees any allocated resources | 120 | * Destroys the object and frees any allocated resources |
117 | */ | 121 | */ |
118 | FilterEdit_base::~FilterEdit_base() | 122 | FilterEdit_base::~FilterEdit_base() |
119 | { | 123 | { |
120 | // no need to delete child widgets, Qt does it all for us | 124 | // no need to delete child widgets, Qt does it all for us |
121 | } | 125 | } |
122 | 126 | ||
123 | /* | 127 | /* |
124 | * Sets the strings of the subwidgets using the current | 128 | * Sets the strings of the subwidgets using the current |
125 | * language. | 129 | * language. |
126 | */ | 130 | */ |
127 | void FilterEdit_base::languageChange() | 131 | void FilterEdit_base::languageChange() |
128 | { | 132 | { |