diff options
Diffstat (limited to 'kresources/scalix/scalixadmin/delegatedialog.cpp')
-rw-r--r-- | kresources/scalix/scalixadmin/delegatedialog.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kresources/scalix/scalixadmin/delegatedialog.cpp b/kresources/scalix/scalixadmin/delegatedialog.cpp index 3dc0412a4..661f57430 100644 --- a/kresources/scalix/scalixadmin/delegatedialog.cpp +++ b/kresources/scalix/scalixadmin/delegatedialog.cpp @@ -18,11 +18,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qcheckbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qlineedit.h> -#include <qtoolbutton.h> +#include <tqcheckbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqlineedit.h> +#include <tqtoolbutton.h> #include <klocale.h> @@ -31,24 +31,24 @@ #include "delegatedialog.h" -DelegateDialog::DelegateDialog( QWidget *parent ) +DelegateDialog::DelegateDialog( TQWidget *parent ) : KDialogBase( parent, "", true, "", Ok | Cancel, Ok, true ) { - QWidget *page = new QWidget( this ); - QGridLayout *layout = new QGridLayout( page, 5, 3, 11, 6 ); + TQWidget *page = new TQWidget( this ); + TQGridLayout *layout = new TQGridLayout( page, 5, 3, 11, 6 ); - QLabel *label = new QLabel( i18n( "User:" ), page ); + TQLabel *label = new TQLabel( i18n( "User:" ), page ); layout->addWidget( label, 0, 0 ); - mEmail = new QLineEdit( page ); + mEmail = new TQLineEdit( page ); layout->addWidget( mEmail, 0, 1 ); - QToolButton *emailSelector = new QToolButton( page ); + TQToolButton *emailSelector = new TQToolButton( page ); emailSelector->setUsesTextLabel( true ); emailSelector->setTextLabel( i18n( "..." ) ); layout->addWidget( emailSelector, 0, 2 ); - QValueList<Scalix::DelegateTypes> types; + TQValueList<Scalix::DelegateTypes> types; types << Scalix::SendOnBehalfOf; types << Scalix::SeePrivate; types << Scalix::GetMeetings; @@ -56,14 +56,14 @@ DelegateDialog::DelegateDialog( QWidget *parent ) int row = 1; for ( uint i = 0; i < types.count(); ++i ) { - QCheckBox *box = new QCheckBox( Scalix::Delegate::rightsAsString( types[ i ] ), page ); + TQCheckBox *box = new TQCheckBox( Scalix::Delegate::rightsAsString( types[ i ] ), page ); layout->addMultiCellWidget( box, row, row, 1, 2 ); mRights.insert( types[ i ], box ); row++; } - connect( emailSelector, SIGNAL( clicked() ), SLOT( selectEmail() ) ); + connect( emailSelector, TQT_SIGNAL( clicked() ), TQT_SLOT( selectEmail() ) ); setMainWidget( page ); } @@ -72,7 +72,7 @@ void DelegateDialog::setDelegate( const Scalix::Delegate &delegate ) { mEmail->setText( delegate.email() ); - QMap<int, QCheckBox*>::Iterator it; + TQMap<int, TQCheckBox*>::Iterator it; for ( it = mRights.begin(); it != mRights.end(); ++it ) it.data()->setChecked( delegate.rights() & it.key() ); } @@ -81,7 +81,7 @@ Scalix::Delegate DelegateDialog::delegate() const { int rights = 0; - QMap<int, QCheckBox*>::ConstIterator it; + TQMap<int, TQCheckBox*>::ConstIterator it; for ( it = mRights.begin(); it != mRights.end(); ++it ) if ( it.data()->isChecked() ) rights |= it.key(); @@ -95,7 +95,7 @@ void DelegateDialog::selectEmail() if ( !dlg.exec() ) return; - const QString email = dlg.selectedUser(); + const TQString email = dlg.selectedUser(); if ( email.isEmpty() ) return; |