summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/mainwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kitchensync/src/mainwidget.cpp')
-rw-r--r--kitchensync/src/mainwidget.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kitchensync/src/mainwidget.cpp b/kitchensync/src/mainwidget.cpp
index 683436364..d04542f9d 100644
--- a/kitchensync/src/mainwidget.cpp
+++ b/kitchensync/src/mainwidget.cpp
@@ -38,10 +38,10 @@
#include <kstdaction.h>
#include <kxmlguiclient.h>
-#include <qlayout.h>
+#include <tqlayout.h>
-MainWidget::MainWidget( KXMLGUIClient *guiClient, QWidget *widget, const char *name )
- : QWidget( widget, name ), mGUIClient( guiClient )
+MainWidget::MainWidget( KXMLGUIClient *guiClient, TQWidget *widget, const char *name )
+ : TQWidget( widget, name ), mGUIClient( guiClient )
{
initGUI();
initActions();
@@ -55,10 +55,10 @@ MainWidget::MainWidget( KXMLGUIClient *guiClient, QWidget *widget, const char *n
mGroupView->updateView();
- connect( SyncProcessManager::self(), SIGNAL( changed() ),
- mGroupView, SLOT( updateView() ) );
- connect( SyncProcessManager::self(), SIGNAL( syncProcessChanged( SyncProcess* ) ),
- mGroupView, SLOT( updateSyncProcess( SyncProcess* ) ) );
+ connect( SyncProcessManager::self(), TQT_SIGNAL( changed() ),
+ mGroupView, TQT_SLOT( updateView() ) );
+ connect( SyncProcessManager::self(), TQT_SIGNAL( syncProcessChanged( SyncProcess* ) ),
+ mGroupView, TQT_SLOT( updateSyncProcess( SyncProcess* ) ) );
enableActions();
}
@@ -86,29 +86,29 @@ KAboutData *MainWidget::aboutData()
void MainWidget::initGUI()
{
- QVBoxLayout *topLayout = new QVBoxLayout( this );
+ TQVBoxLayout *topLayout = new TQVBoxLayout( this );
mGroupView = new GroupView( this );
topLayout->addWidget( mGroupView );
- connect( mGroupView, SIGNAL( addGroup() ), SLOT( addGroup() ) );
- connect( mGroupView, SIGNAL( synchronizeGroup( SyncProcess* ) ),
- SLOT( sync( SyncProcess* ) ) );
- connect( mGroupView, SIGNAL( abortSynchronizeGroup( SyncProcess* ) ),
- SLOT( abortSync( SyncProcess* ) ) );
- connect( mGroupView, SIGNAL( configureGroup( SyncProcess* ) ),
- SLOT( editGroup( SyncProcess* ) ) );
+ connect( mGroupView, TQT_SIGNAL( addGroup() ), TQT_SLOT( addGroup() ) );
+ connect( mGroupView, TQT_SIGNAL( synchronizeGroup( SyncProcess* ) ),
+ TQT_SLOT( sync( SyncProcess* ) ) );
+ connect( mGroupView, TQT_SIGNAL( abortSynchronizeGroup( SyncProcess* ) ),
+ TQT_SLOT( abortSync( SyncProcess* ) ) );
+ connect( mGroupView, TQT_SIGNAL( configureGroup( SyncProcess* ) ),
+ TQT_SLOT( editGroup( SyncProcess* ) ) );
}
void MainWidget::initActions()
{
- mActionSynchronize = new KAction( i18n("Synchronize"), "hotsync", 0, this, SLOT( sync() ),
+ mActionSynchronize = new KAction( i18n("Synchronize"), "hotsync", 0, this, TQT_SLOT( sync() ),
mGUIClient->actionCollection(), "sync" );
- mActionAddGroup = new KAction( i18n("Add Group..."), "filenew", 0, this, SLOT( addGroup() ),
+ mActionAddGroup = new KAction( i18n("Add Group..."), "filenew", 0, this, TQT_SLOT( addGroup() ),
mGUIClient->actionCollection(), "add_group" );
- mActionDeleteGroup = new KAction( i18n("Delete Group..."), "editdelete", 0, this, SLOT( deleteGroup() ),
+ mActionDeleteGroup = new KAction( i18n("Delete Group..."), "editdelete", 0, this, TQT_SLOT( deleteGroup() ),
mGUIClient->actionCollection(), "delete_group" );
- mActionEditGroup = new KAction( i18n("Edit Group..."), "edit", 0, this, SLOT( editGroup() ),
+ mActionEditGroup = new KAction( i18n("Edit Group..."), "edit", 0, this, TQT_SLOT( editGroup() ),
mGUIClient->actionCollection(), "edit_group" );
}
@@ -124,8 +124,8 @@ void MainWidget::enableActions()
void MainWidget::addGroup()
{
bool ok;
- QString name = KInputDialog::getText( i18n("Create Synchronization Group"),
- i18n("Name for new synchronization group."), QString::null, &ok, this );
+ TQString name = KInputDialog::getText( i18n("Create Synchronization Group"),
+ i18n("Name for new synchronization group."), TQString::null, &ok, this );
if ( ok ) {
SyncProcessManager::self()->addGroup( name );
enableActions();