summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/groupconfigcommon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kitchensync/src/groupconfigcommon.cpp')
-rw-r--r--kitchensync/src/groupconfigcommon.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kitchensync/src/groupconfigcommon.cpp b/kitchensync/src/groupconfigcommon.cpp
index d5b0bd1c1..9f629c4d2 100644
--- a/kitchensync/src/groupconfigcommon.cpp
+++ b/kitchensync/src/groupconfigcommon.cpp
@@ -25,9 +25,9 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
#include <libqopensync/group.h>
#include <libqopensync/conversion.h>
@@ -38,26 +38,26 @@
#include "groupconfigcommon.h"
-ObjectTypeSelector::ObjectTypeSelector( QWidget *parent )
- : QWidget( parent )
+ObjectTypeSelector::ObjectTypeSelector( TQWidget *parent )
+ : TQWidget( parent )
{
- QGridLayout *layout = new QGridLayout( this );
+ TQGridLayout *layout = new TQGridLayout( this );
layout->setMargin( 0 );
const QSync::Conversion conversion = SyncProcessManager::self()->environment()->conversion();
- QMap<QString, QString> objectTypeMap;
+ TQMap<TQString, TQString> objectTypeMap;
objectTypeMap.insert( "contact", i18n( "Contacts" ) );
objectTypeMap.insert( "event", i18n( "Events" ) );
objectTypeMap.insert( "todo", i18n( "To-dos" ) );
objectTypeMap.insert( "note", i18n( "Notes" ) );
- QStringList objectTypes = conversion.objectTypes();
+ TQStringList objectTypes = conversion.objectTypes();
// reorder the entries so that contact and event are the first one
qHeapSort( objectTypes );
- QStringList reoderedObjectTypes, stack;
+ TQStringList reoderedObjectTypes, stack;
for ( uint i = 0; i < objectTypes.count(); ++i ) {
if ( objectTypes[ i ] == "contact" || objectTypes[ i ] == "event" )
reoderedObjectTypes.append( objectTypes[ i ] );
@@ -66,18 +66,18 @@ ObjectTypeSelector::ObjectTypeSelector( QWidget *parent )
}
reoderedObjectTypes += stack;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
int row = 0;
int col = 0;
for( it = reoderedObjectTypes.begin(); it != reoderedObjectTypes.end(); ++it ) {
- QString objectType = *it;
+ TQString objectType = *it;
// Don't display object type "data". Object type "data" is a kind of wildcard - so don't filter *
if ( objectType == "data" )
continue;
- QCheckBox *objectCheckBox = new QCheckBox( objectTypeMap[ objectType ], this );
+ TQCheckBox *objectCheckBox = new TQCheckBox( objectTypeMap[ objectType ], this );
layout->addWidget( objectCheckBox, row, col );
mObjectTypeChecks.insert( objectType, objectCheckBox );
@@ -93,27 +93,27 @@ void ObjectTypeSelector::load( const QSync::Group &group )
{
const QSync::GroupConfig config = group.config();
- const QStringList objectTypes = config.activeObjectTypes();
+ const TQStringList objectTypes = config.activeObjectTypes();
// Enable everything on the inital load
bool initialLoad = false;
if ( objectTypes.isEmpty() )
initialLoad = true;
- QMap<QString, QCheckBox*>::ConstIterator it;
+ TQMap<TQString, TQCheckBox*>::ConstIterator it;
for( it = mObjectTypeChecks.begin(); it != mObjectTypeChecks.end(); ++it ) {
- QCheckBox *check = it.data();
+ TQCheckBox *check = it.data();
check->setChecked( objectTypes.contains( it.key() ) || initialLoad );
}
}
void ObjectTypeSelector::save( QSync::Group group )
{
- QStringList objectTypes;
+ TQStringList objectTypes;
- QMap<QString,QCheckBox *>::ConstIterator it;
+ TQMap<TQString,TQCheckBox *>::ConstIterator it;
for( it = mObjectTypeChecks.begin(); it != mObjectTypeChecks.end(); ++it ) {
- QCheckBox *check = it.data();
+ TQCheckBox *check = it.data();
if ( check->isChecked() )
objectTypes.append( it.key() );
}
@@ -125,17 +125,17 @@ void ObjectTypeSelector::save( QSync::Group group )
config.setActiveObjectTypes( objectTypes );
}
-GroupConfigCommon::GroupConfigCommon( QWidget *parent )
- : QWidget( parent )
+GroupConfigCommon::GroupConfigCommon( TQWidget *parent )
+ : TQWidget( parent )
{
- QGridLayout *layout = new QGridLayout( this, 2, 2, KDialog::marginHint(), KDialog::spacingHint() );
+ TQGridLayout *layout = new TQGridLayout( this, 2, 2, KDialog::marginHint(), KDialog::spacingHint() );
- layout->addWidget( new QLabel( i18n( "Name:" ), this ), 0, 0 );
+ layout->addWidget( new TQLabel( i18n( "Name:" ), this ), 0, 0 );
mGroupName = new KLineEdit( this );
layout->addWidget( mGroupName, 0, 1 );
- layout->addWidget( new QLabel( i18n( "Object Types to be Synchronized:"), this ), 1, 0, Qt::AlignTop );
+ layout->addWidget( new TQLabel( i18n( "Object Types to be Synchronized:"), this ), 1, 0, Qt::AlignTop );
mObjectTypeSelector = new ObjectTypeSelector( this );
layout->addWidget( mObjectTypeSelector, 1, 1 );