author | zautrix <zautrix> | 2005-01-29 07:48:23 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-29 07:48:23 (UTC) |
commit | ef1d97a243957180f5ffc3c3b055ffd8bf52e157 (patch) (unidiff) | |
tree | 57ebf97cfd0d324ffcecbfb0c9814745f73d54a5 /korganizer/filteredit_base.cpp | |
parent | 0850ade22908615389800c6ee973f5906154d980 (diff) | |
download | kdepimpi-ef1d97a243957180f5ffc3c3b055ffd8bf52e157.zip kdepimpi-ef1d97a243957180f5ffc3c3b055ffd8bf52e157.tar.gz kdepimpi-ef1d97a243957180f5ffc3c3b055ffd8bf52e157.tar.bz2 |
many stribg fixes
Diffstat (limited to 'korganizer/filteredit_base.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/filteredit_base.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/korganizer/filteredit_base.cpp b/korganizer/filteredit_base.cpp index 15a4aaa..505edf6 100644 --- a/korganizer/filteredit_base.cpp +++ b/korganizer/filteredit_base.cpp | |||
@@ -4,24 +4,25 @@ | |||
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 <qframe.h> |
15 | #include <qbuttongroup.h> | 15 | #include <qbuttongroup.h> |
16 | #include <qapplication.h> | ||
16 | #include <qradiobutton.h> | 17 | #include <qradiobutton.h> |
17 | #include <qlistbox.h> | 18 | #include <qlistbox.h> |
18 | #include <qlabel.h> | 19 | #include <qlabel.h> |
19 | #include <qcheckbox.h> | 20 | #include <qcheckbox.h> |
20 | #include <qlayout.h> | 21 | #include <qlayout.h> |
21 | #include <qtooltip.h> | 22 | #include <qtooltip.h> |
22 | #include <qwhatsthis.h> | 23 | #include <qwhatsthis.h> |
23 | #include "tr.h" | 24 | #include "tr.h" |
24 | 25 | ||
25 | /* | 26 | /* |
26 | * Constructs a FilterEdit_base as a child of 'parent', with the | 27 | * Constructs a FilterEdit_base as a child of 'parent', with the |
27 | * name 'name' and widget flags set to 'f'. | 28 | * name 'name' and widget flags set to 'f'. |
@@ -98,48 +99,54 @@ FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl ) | |||
98 | mPublicCheck = new QCheckBox( mCriteriaFrame, "mPublicCheck" ); | 99 | mPublicCheck = new QCheckBox( mCriteriaFrame, "mPublicCheck" ); |
99 | layout2->addWidget( mPublicCheck ); | 100 | layout2->addWidget( mPublicCheck ); |
100 | 101 | ||
101 | mPrivateCheck = new QCheckBox( mCriteriaFrame, "mPrivateCheck" ); | 102 | mPrivateCheck = new QCheckBox( mCriteriaFrame, "mPrivateCheck" ); |
102 | layout2->addWidget( mPrivateCheck ); | 103 | layout2->addWidget( mPrivateCheck ); |
103 | 104 | ||
104 | mConfidentialCheck = new QCheckBox( mCriteriaFrame, "mConfidentialCheck" ); | 105 | mConfidentialCheck = new QCheckBox( mCriteriaFrame, "mConfidentialCheck" ); |
105 | mConfidentialCheck->setChecked( FALSE ); | 106 | mConfidentialCheck->setChecked( FALSE ); |
106 | layout2->addWidget( mConfidentialCheck ); | 107 | layout2->addWidget( mConfidentialCheck ); |
107 | mCriteriaFrameLayout->addLayout( layout2 ); | 108 | mCriteriaFrameLayout->addLayout( layout2 ); |
108 | FilterEdit_baseLayout->addWidget( mCriteriaFrame ); | 109 | FilterEdit_baseLayout->addWidget( mCriteriaFrame ); |
109 | languageChange(); | 110 | languageChange(); |
110 | resize( QSize(324, 281).expandedTo(minimumSizeHint()) ); | 111 | resize( QSize(300, 200).expandedTo(minimumSizeHint()) ); |
111 | clearWState( WState_Polished ); | 112 | clearWState( WState_Polished ); |
112 | } | 113 | } |
113 | 114 | ||
114 | /* | 115 | /* |
115 | * Destroys the object and frees any allocated resources | 116 | * Destroys the object and frees any allocated resources |
116 | */ | 117 | */ |
117 | FilterEdit_base::~FilterEdit_base() | 118 | FilterEdit_base::~FilterEdit_base() |
118 | { | 119 | { |
119 | // no need to delete child widgets, Qt does it all for us | 120 | // no need to delete child widgets, Qt does it all for us |
120 | } | 121 | } |
121 | 122 | ||
122 | /* | 123 | /* |
123 | * Sets the strings of the subwidgets using the current | 124 | * Sets the strings of the subwidgets using the current |
124 | * language. | 125 | * language. |
125 | */ | 126 | */ |
126 | void FilterEdit_base::languageChange() | 127 | void FilterEdit_base::languageChange() |
127 | { | 128 | { |
128 | setCaption( tr( "FilterEditor" ) ); | 129 | setCaption( tr( "FilterEditor" ) ); |
129 | ButtonGroup1->setTitle( tr( "Categories" ) ); | 130 | ButtonGroup1->setTitle( tr( "Categories" ) ); |
130 | mCatShowCheck->setText( tr( "Include" ) ); | 131 | mCatShowCheck->setText( tr( "Include" ) ); |
131 | mCatHideCheck->setText( tr( "Exclude" ) ); | 132 | mCatHideCheck->setText( tr( "Exclude" ) ); |
132 | mCatEditButton->setText( tr( "Edit Selection..." ) ); | 133 | mCatEditButton->setText( tr( "Edit Selection..." ) ); |
133 | textLabel1->setText( tr( "Exclude" ) ); | 134 | textLabel1->setText( tr( "Exclude" ) ); |
134 | mRecurringCheck->setText( tr( "recurring events" ) ); | 135 | if (QApplication::desktop()->width() > 480 ) { |
135 | mCompletedCheck->setText( tr( "completed to-dos" ) ); | 136 | mCompletedCheck->setText( tr( "completed to-dos" ) ); |
137 | mRecurringCheck->setText( tr( "recurring events" ) ); | ||
138 | } | ||
139 | else { | ||
140 | mCompletedCheck->setText( tr( "compl.todos" ) ); | ||
141 | mRecurringCheck->setText( tr( "recurr. events" ) ); | ||
142 | } | ||
136 | textLabel1_2->setText( tr( "Exclude" ) ); | 143 | textLabel1_2->setText( tr( "Exclude" ) ); |
137 | mEventCheck->setText( tr( "events" ) ); | 144 | mEventCheck->setText( tr( "events" ) ); |
138 | mTodoCheck->setText( tr( "todos" ) ); | 145 | mTodoCheck->setText( tr( "todos" ) ); |
139 | mJournalCheck->setText( tr( "journals" ) ); | 146 | mJournalCheck->setText( tr( "journals" ) ); |
140 | textLabel2->setText( tr( "Include" ) ); | 147 | textLabel2->setText( tr( "Include" ) ); |
141 | mPublicCheck->setText( tr( "public" ) ); | 148 | mPublicCheck->setText( tr( "public" ) ); |
142 | mPrivateCheck->setText( tr( "private" ) ); | 149 | mPrivateCheck->setText( tr( "private" ) ); |
143 | mConfidentialCheck->setText( tr( "confidential" ) ); | 150 | mConfidentialCheck->setText( tr( "confidential" ) ); |
144 | } | 151 | } |
145 | 152 | ||