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.cpp21
1 files changed, 7 insertions, 14 deletions
diff --git a/kitchensync/src/groupconfigcommon.cpp b/kitchensync/src/groupconfigcommon.cpp
index 360746893..9f629c4d2 100644
--- a/kitchensync/src/groupconfigcommon.cpp
+++ b/kitchensync/src/groupconfigcommon.cpp
@@ -30,15 +30,14 @@
#include <tqcheckbox.h>
#include <libqopensync/group.h>
-//#include <libqopensync/conversion.h>
+#include <libqopensync/conversion.h>
+#include <libqopensync/environment.h>
#include "syncprocess.h"
#include "syncprocessmanager.h"
#include "groupconfigcommon.h"
-// TODO: port ObjectTypeSelector to ported solution of Conversation class
-#if 0
ObjectTypeSelector::ObjectTypeSelector( TQWidget *parent )
: TQWidget( parent )
{
@@ -125,7 +124,6 @@ void ObjectTypeSelector::save( QSync::Group group )
QSync::GroupConfig config = group.config();
config.setActiveObjectTypes( objectTypes );
}
-#endif
GroupConfigCommon::GroupConfigCommon( TQWidget *parent )
: TQWidget( parent )
@@ -137,11 +135,10 @@ GroupConfigCommon::GroupConfigCommon( TQWidget *parent )
mGroupName = new KLineEdit( this );
layout->addWidget( mGroupName, 0, 1 );
- //layout->addWidget( new TQLabel( 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 );
- // TODO port ObjectTypeSelector class..
- //mObjectTypeSelector = new ObjectTypeSelector( this );
- //layout->addWidget( mObjectTypeSelector, 1, 1 );
+ mObjectTypeSelector = new ObjectTypeSelector( this );
+ layout->addWidget( mObjectTypeSelector, 1, 1 );
layout->setRowStretch( 2, 1 );
}
@@ -151,15 +148,11 @@ void GroupConfigCommon::setSyncProcess( SyncProcess *syncProcess )
mSyncProcess = syncProcess;
mGroupName->setText( mSyncProcess->group().name() );
-
- // TODO port ObjectTypeSelector class..
- //mObjectTypeSelector->load( mSyncProcess->group() );
+ mObjectTypeSelector->load( mSyncProcess->group() );
}
void GroupConfigCommon::save()
{
mSyncProcess->group().setName( mGroupName->text() );
-
- // TODO port ObjectTypeSelector class..
- //mObjectTypeSelector->save( mSyncProcess->group() );
+ mObjectTypeSelector->save( mSyncProcess->group() );
}