summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/mainwidget.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 /kitchensync/src/mainwidget.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 '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();