summaryrefslogtreecommitdiffstats
path: root/kommander/editor/mainwindow.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-14 14:38:52 +0900
committerMichele Calgaro <[email protected]>2024-01-14 14:38:52 +0900
commit931991843ab3b6b0b0157dd433c226f7fc2ebc1b (patch)
treea13f719941f2a6bcde02ef743d26f553ef5ed530 /kommander/editor/mainwindow.cpp
parentdfaa5c55fe83e439b4404143f254da811bc0d7c6 (diff)
downloadtdewebdev-931991843ab3b6b0b0157dd433c226f7fc2ebc1b.tar.gz
tdewebdev-931991843ab3b6b0b0157dd433c226f7fc2ebc1b.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kommander/editor/mainwindow.cpp')
-rw-r--r--kommander/editor/mainwindow.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kommander/editor/mainwindow.cpp b/kommander/editor/mainwindow.cpp
index f9dbac46..fd5059ec 100644
--- a/kommander/editor/mainwindow.cpp
+++ b/kommander/editor/mainwindow.cpp
@@ -129,7 +129,7 @@ MainWindow::MainWindow(bool asClient)
docPath(TQTDOCDIR), client(asClient), databaseAutoEdit(false), previewing(false)
{
m_partManager = new KParts::PartManager(this);
- //connect(m_partManager, TQT_SIGNAL(activePartChanged(KParts::Part * )), this, TQT_SLOT(slotActivePartChanged(KParts::Part * )));
+ //connect(m_partManager, TQ_SIGNAL(activePartChanged(KParts::Part * )), this, TQ_SLOT(slotActivePartChanged(KParts::Part * )));
init_colors();
inDebugMode = true; //debugging kommander
@@ -177,7 +177,7 @@ MainWindow::MainWindow(bool asClient)
as -= TQSize(30, 30);
resize(TQSize(1200, 1000).boundedTo(as));
- connect(kapp->clipboard(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(clipboardChanged()));
+ connect(kapp->clipboard(), TQ_SIGNAL(dataChanged()), this, TQ_SLOT(clipboardChanged()));
clipboardChanged();
layoutChilds = false;
layoutSelected = false;
@@ -204,7 +204,7 @@ MainWindow::MainWindow(bool asClient)
SpecialInformation::registerSpecials();
backupTimer = new TQTimer(this);
- connect(backupTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotCreateBackups()));
+ connect(backupTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotCreateBackups()));
backupTimer->start(1000*60*5); //fire it every five minutes
//createGUI(0);
@@ -235,8 +235,8 @@ void MainWindow::setupMDI()
PixmapChooser::NoSize));
qworkspace->setPaletteBackgroundColor(TQColor(238, 238, 238));
qworkspace->setScrollBarsEnabled(true);
- connect(qworkspace, TQT_SIGNAL(windowActivated(TQWidget *)),
- this, TQT_SLOT(activeWindowChanged(TQWidget *)));
+ connect(qworkspace, TQ_SIGNAL(windowActivated(TQWidget *)),
+ this, TQ_SLOT(activeWindowChanged(TQWidget *)));
lastActiveFormWindow = 0;
qworkspace->setAcceptDrops(true);
}
@@ -294,7 +294,7 @@ void MainWindow::setupWorkspace()
QCompletionEdit *edit = new QCompletionEdit(vbox);
TQToolTip::add(edit, i18n("Start typing the buffer you want to switch to here (ALT+B)"));
TQAccel *a = new TQAccel(this);
- a->connectItem(a->insertItem(ALT + Key_B), edit, TQT_SLOT(setFocus()));
+ a->connectItem(a->insertItem(ALT + Key_B), edit, TQ_SLOT(setFocus()));
wspace = new Workspace(vbox, this);
wspace->setBufferEdit(edit);
dw->setWidget(vbox);
@@ -460,11 +460,11 @@ void MainWindow::runForm()
TDEProcess* process = new TDEProcess;
process->setUseShell(true);
(*process) << "kmdr-executor" << TQString("\"%1\"").arg(form->formFile()->fileName());
- connect(process, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), messageLog,
- TQT_SLOT(receivedStdout(TDEProcess*, char*, int)));
- connect(process, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), messageLog,
- TQT_SLOT(receivedStderr(TDEProcess*, char*, int)));
- connect(process, TQT_SIGNAL(processExited(TDEProcess*)), TQT_SLOT(closeRunningForm(TDEProcess*)));
+ connect(process, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)), messageLog,
+ TQ_SLOT(receivedStdout(TDEProcess*, char*, int)));
+ connect(process, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)), messageLog,
+ TQ_SLOT(receivedStderr(TDEProcess*, char*, int)));
+ connect(process, TQ_SIGNAL(processExited(TDEProcess*)), TQ_SLOT(closeRunningForm(TDEProcess*)));
messageLog->clear(MessageLog::All);
previewing = process->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput);
}
@@ -613,7 +613,7 @@ bool MainWindow::eventFilter(TQObject *o, TQEvent *e)
}
lastPressWidget = (TQWidget*)o;
if (passiveInteractor)
- TQTimer::singleShot(0, formWindow(), TQT_SLOT(visibilityChanged()));
+ TQTimer::singleShot(0, formWindow(), TQ_SLOT(visibilityChanged()));
if (currentTool() == CONNECT_TOOL)
return true;
return !passiveInteractor;
@@ -629,7 +629,7 @@ bool MainWindow::eventFilter(TQObject *o, TQEvent *e)
((FormWindow*)w)->handleMouseRelease((TQMouseEvent*)e, ((FormWindow*)w)->designerWidget(o));
if (passiveInteractor) {
selectionChanged();
- TQTimer::singleShot(0, formWindow(), TQT_SLOT(visibilityChanged()));
+ TQTimer::singleShot(0, formWindow(), TQ_SLOT(visibilityChanged()));
}
return !passiveInteractor;
case TQEvent::MouseMove:
@@ -803,16 +803,16 @@ void MainWindow::insertFormWindow(FormWindow *fw)
"<p>You can have several forms open, and all open forms are listed "
"in the <b>Form List</b>."));
- connect(fw, TQT_SIGNAL(showProperties(TQObject *)),
- this, TQT_SLOT(showProperties(TQObject *)));
- connect(fw, TQT_SIGNAL(updateProperties(TQObject *)),
- this, TQT_SLOT(updateProperties(TQObject *)));
- connect(this, TQT_SIGNAL(currentToolChanged()),
- fw, TQT_SLOT(currentToolChanged()));
- connect(fw, TQT_SIGNAL(selectionChanged()),
- this, TQT_SLOT(selectionChanged()));
- connect(fw, TQT_SIGNAL(undoRedoChanged(bool, bool, const TQString &, const TQString &)),
- this, TQT_SLOT(updateUndoRedo(bool, bool, const TQString &, const TQString &)));
+ connect(fw, TQ_SIGNAL(showProperties(TQObject *)),
+ this, TQ_SLOT(showProperties(TQObject *)));
+ connect(fw, TQ_SIGNAL(updateProperties(TQObject *)),
+ this, TQ_SLOT(updateProperties(TQObject *)));
+ connect(this, TQ_SIGNAL(currentToolChanged()),
+ fw, TQ_SLOT(currentToolChanged()));
+ connect(fw, TQ_SIGNAL(selectionChanged()),
+ this, TQ_SLOT(selectionChanged()));
+ connect(fw, TQ_SIGNAL(undoRedoChanged(bool, bool, const TQString &, const TQString &)),
+ this, TQ_SLOT(updateUndoRedo(bool, bool, const TQString &, const TQString &)));
fw->show();
fw->currentToolChanged();