summaryrefslogtreecommitdiffabout
path: root/korganizer/filteredit_base.cpp
authorzautrix <zautrix>2005-01-29 07:48:23 (UTC)
committer zautrix <zautrix>2005-01-29 07:48:23 (UTC)
commitef1d97a243957180f5ffc3c3b055ffd8bf52e157 (patch) (side-by-side diff)
tree57ebf97cfd0d324ffcecbfb0c9814745f73d54a5 /korganizer/filteredit_base.cpp
parent0850ade22908615389800c6ee973f5906154d980 (diff)
downloadkdepimpi-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.cpp13
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 @@
** Created: Fr Jan 21 21:25:30 2005
** by: The User Interface Compiler ($Id$)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "filteredit_base.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qframe.h>
#include <qbuttongroup.h>
+#include <qapplication.h>
#include <qradiobutton.h>
#include <qlistbox.h>
#include <qlabel.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "tr.h"
/*
* Constructs a FilterEdit_base as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
@@ -98,48 +99,54 @@ FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl )
mPublicCheck = new QCheckBox( mCriteriaFrame, "mPublicCheck" );
layout2->addWidget( mPublicCheck );
mPrivateCheck = new QCheckBox( mCriteriaFrame, "mPrivateCheck" );
layout2->addWidget( mPrivateCheck );
mConfidentialCheck = new QCheckBox( mCriteriaFrame, "mConfidentialCheck" );
mConfidentialCheck->setChecked( FALSE );
layout2->addWidget( mConfidentialCheck );
mCriteriaFrameLayout->addLayout( layout2 );
FilterEdit_baseLayout->addWidget( mCriteriaFrame );
languageChange();
- resize( QSize(324, 281).expandedTo(minimumSizeHint()) );
+ resize( QSize(300, 200).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
FilterEdit_base::~FilterEdit_base()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void FilterEdit_base::languageChange()
{
setCaption( tr( "FilterEditor" ) );
ButtonGroup1->setTitle( tr( "Categories" ) );
mCatShowCheck->setText( tr( "Include" ) );
mCatHideCheck->setText( tr( "Exclude" ) );
mCatEditButton->setText( tr( "Edit Selection..." ) );
textLabel1->setText( tr( "Exclude" ) );
- mRecurringCheck->setText( tr( "recurring events" ) );
- mCompletedCheck->setText( tr( "completed to-dos" ) );
+ if (QApplication::desktop()->width() > 480 ) {
+ mCompletedCheck->setText( tr( "completed to-dos" ) );
+ mRecurringCheck->setText( tr( "recurring events" ) );
+ }
+ else {
+ mCompletedCheck->setText( tr( "compl.todos" ) );
+ mRecurringCheck->setText( tr( "recurr. events" ) );
+ }
textLabel1_2->setText( tr( "Exclude" ) );
mEventCheck->setText( tr( "events" ) );
mTodoCheck->setText( tr( "todos" ) );
mJournalCheck->setText( tr( "journals" ) );
textLabel2->setText( tr( "Include" ) );
mPublicCheck->setText( tr( "public" ) );
mPrivateCheck->setText( tr( "private" ) );
mConfidentialCheck->setText( tr( "confidential" ) );
}