summaryrefslogtreecommitdiffstats
path: root/kresources/scalix/scalixadmin/delegatedialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kresources/scalix/scalixadmin/delegatedialog.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/scalix/scalixadmin/delegatedialog.cpp')
-rw-r--r--kresources/scalix/scalixadmin/delegatedialog.cpp34
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;