summaryrefslogtreecommitdiffstats
path: root/kommander/widgets
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 14:38:52 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 14:38:52 +0900
commit931991843ab3b6b0b0157dd433c226f7fc2ebc1b (patch)
treea13f719941f2a6bcde02ef743d26f553ef5ed530 /kommander/widgets
parentdfaa5c55fe83e439b4404143f254da811bc0d7c6 (diff)
downloadtdewebdev-931991843ab3b6b0b0157dd433c226f7fc2ebc1b.tar.gz
tdewebdev-931991843ab3b6b0b0157dd433c226f7fc2ebc1b.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kommander/widgets')
-rw-r--r--kommander/widgets/closebutton.cpp10
-rw-r--r--kommander/widgets/combobox.cpp2
-rw-r--r--kommander/widgets/execbutton.cpp4
-rw-r--r--kommander/widgets/fileselector.cpp2
-rw-r--r--kommander/widgets/konsole.cpp4
-rw-r--r--kommander/widgets/lineedit.cpp4
-rw-r--r--kommander/widgets/popupmenu.cpp2
-rw-r--r--kommander/widgets/richtexteditor.cpp14
-rw-r--r--kommander/widgets/subdialog.cpp4
-rw-r--r--kommander/widgets/textedit.cpp2
-rw-r--r--kommander/widgets/timer.cpp4
-rw-r--r--kommander/widgets/wizard.cpp2
12 files changed, 27 insertions, 27 deletions
diff --git a/kommander/widgets/closebutton.cpp b/kommander/widgets/closebutton.cpp
index 0b72f3dc..07fb7ed8 100644
--- a/kommander/widgets/closebutton.cpp
+++ b/kommander/widgets/closebutton.cpp
@@ -39,7 +39,7 @@ CloseButton::CloseButton(TQWidget* a_parent, const char* a_name)
setDisplayStates(states);
setWriteStdout(true);
- connect(this, TQT_SIGNAL(clicked()), this, TQT_SLOT(startProcess()));
+ connect(this, TQ_SIGNAL(clicked()), this, TQ_SLOT(startProcess()));
TQObject *parent = this;
while (parent->parent() != 0)
@@ -48,7 +48,7 @@ CloseButton::CloseButton(TQWidget* a_parent, const char* a_name)
if (parent->inherits("TQDialog"))
break;
}
- connect(this, TQT_SIGNAL(clicked()), parent, TQT_SLOT(reject()));
+ connect(this, TQ_SIGNAL(clicked()), parent, TQ_SLOT(reject()));
}
CloseButton::~CloseButton()
@@ -105,10 +105,10 @@ void CloseButton::startProcess()
KShellProcess *process = new KShellProcess("/bin/sh");
*process << at;
- connect(process, TQT_SIGNAL(processExited(TDEProcess *)), TQT_SLOT(endProcess(TDEProcess *)));
- connect(process, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), TQT_SLOT(appendOutput(TDEProcess *,
+ connect(process, TQ_SIGNAL(processExited(TDEProcess *)), TQ_SLOT(endProcess(TDEProcess *)));
+ connect(process, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), TQ_SLOT(appendOutput(TDEProcess *,
char *, int)));
- connect(process, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), TQT_SLOT(appendOutput(TDEProcess *,
+ connect(process, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), TQ_SLOT(appendOutput(TDEProcess *,
char *, int)));
if (!process->start(TDEProcess::Block, TDEProcess::Stdout))
diff --git a/kommander/widgets/combobox.cpp b/kommander/widgets/combobox.cpp
index e347cdbe..1bb99c2b 100644
--- a/kommander/widgets/combobox.cpp
+++ b/kommander/widgets/combobox.cpp
@@ -44,7 +44,7 @@ ComboBox::ComboBox(TQWidget *a_parent, const char *a_name)
setStates(states);
setDisplayStates(states);
- connect(this, TQT_SIGNAL(activated(int)), this, TQT_SLOT(emitWidgetTextChanged(int)));
+ connect(this, TQ_SIGNAL(activated(int)), this, TQ_SLOT(emitWidgetTextChanged(int)));
KommanderPlugin::setDefaultGroup(Group::DCOP);
KommanderPlugin::registerFunction(popupList, "popupList(TQString widget)", i18n("Make the ComboBox expose it's list without mousing around."), 1);
diff --git a/kommander/widgets/execbutton.cpp b/kommander/widgets/execbutton.cpp
index 15043c15..9ab99d1f 100644
--- a/kommander/widgets/execbutton.cpp
+++ b/kommander/widgets/execbutton.cpp
@@ -56,7 +56,7 @@ ExecButton::ExecButton(TQWidget* a_parent, const char* a_name)
setDisplayStates(states);
setWriteStdout(true);
setBlockGUI(Button);
- connect(this, TQT_SIGNAL(clicked()), this, TQT_SLOT(startProcess()));
+ connect(this, TQ_SIGNAL(clicked()), this, TQ_SLOT(startProcess()));
KommanderPlugin::setDefaultGroup(Group::DCOP);
KommanderPlugin::registerFunction(EB_isOn, "isOn(TQString widget)", i18n("For use only when button is togle type."), 1);
@@ -120,7 +120,7 @@ void ExecButton::startProcess()
TDEApplication::setOverrideCursor(TQCursor(TQt::WaitCursor));
MyProcess* process = new MyProcess(this);
process->setBlocking(m_blockGUI == GUI);
- connect(process, TQT_SIGNAL(processExited(MyProcess*)), TQT_SLOT(processExited(MyProcess*)));
+ connect(process, TQ_SIGNAL(processExited(MyProcess*)), TQ_SLOT(processExited(MyProcess*)));
m_output = process->run(at);
if (m_blockGUI == GUI)
{
diff --git a/kommander/widgets/fileselector.cpp b/kommander/widgets/fileselector.cpp
index 9be2fd88..f562662c 100644
--- a/kommander/widgets/fileselector.cpp
+++ b/kommander/widgets/fileselector.cpp
@@ -54,7 +54,7 @@ FileSelector::FileSelector(TQWidget * a_parent, const char *a_name)
m_lineEdit->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
m_selectButton->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Expanding));
- connect(m_selectButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(makeSelection()));
+ connect(m_selectButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(makeSelection()));
setSelectionType(Open);
setSelectionOpenMultiple(false);
diff --git a/kommander/widgets/konsole.cpp b/kommander/widgets/konsole.cpp
index 48c49f48..dd4a955d 100644
--- a/kommander/widgets/konsole.cpp
+++ b/kommander/widgets/konsole.cpp
@@ -87,8 +87,8 @@ void Konsole::execute()
mSeenEOL = false;
mProcess = new MyProcess(this);
mProcess->setBlocking(false);
- connect(mProcess, TQT_SIGNAL(processExited(MyProcess*)), TQT_SLOT(processExited(MyProcess*)));
- connect(mProcess, TQT_SIGNAL(processReceivedStdout(MyProcess*, char*, int)), TQT_SLOT(processReceivedStdout(MyProcess*, char*, int)));
+ connect(mProcess, TQ_SIGNAL(processExited(MyProcess*)), TQ_SLOT(processExited(MyProcess*)));
+ connect(mProcess, TQ_SIGNAL(processReceivedStdout(MyProcess*, char*, int)), TQ_SLOT(processReceivedStdout(MyProcess*, char*, int)));
setCursor(TQCursor(TQt::WaitCursor));
mProcess->run(at);
}
diff --git a/kommander/widgets/lineedit.cpp b/kommander/widgets/lineedit.cpp
index 08c8b21f..f75526d9 100644
--- a/kommander/widgets/lineedit.cpp
+++ b/kommander/widgets/lineedit.cpp
@@ -38,8 +38,8 @@ LineEdit::LineEdit(TQWidget *a_parent, const char *a_name)
setStates(states);
setDisplayStates(states);
- connect(this, TQT_SIGNAL(textChanged(const TQString &)), this,
- TQT_SIGNAL(widgetTextChanged(const TQString &)));
+ connect(this, TQ_SIGNAL(textChanged(const TQString &)), this,
+ TQ_SIGNAL(widgetTextChanged(const TQString &)));
KommanderPlugin::setDefaultGroup(Group::DCOP);
KommanderPlugin::registerFunction(LE_clearModified, "clearModified(TQString widget)", i18n("Clear widget modified status."), 1);
diff --git a/kommander/widgets/popupmenu.cpp b/kommander/widgets/popupmenu.cpp
index e4d26ecd..b24e5956 100644
--- a/kommander/widgets/popupmenu.cpp
+++ b/kommander/widgets/popupmenu.cpp
@@ -55,7 +55,7 @@ PopupMenu::PopupMenu(TQWidget *parent, const char *name)
setHidden(true);
m_menu = new TDEPopupMenu(this);
- connect(m_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotMenuItemActivated(int)));
+ connect(m_menu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotMenuItemActivated(int)));
KommanderPlugin::setDefaultGroup(Group::DCOP);
KommanderPlugin::registerFunction(INSERTMENUITEM, "insertMenuItem(TQString widget, TQString text, TQString executeWidget, int index, TQString icon)", i18n("Insert an item into the popup menu. The executeWidget's execute method will be run when this item is selected. Returns the id of the inserted item. Use -1 for index to insert to the end. The icon is optional."), 4, 5);
diff --git a/kommander/widgets/richtexteditor.cpp b/kommander/widgets/richtexteditor.cpp
index 4c62b167..33127372 100644
--- a/kommander/widgets/richtexteditor.cpp
+++ b/kommander/widgets/richtexteditor.cpp
@@ -84,15 +84,15 @@ RichTextEditor::RichTextEditor(TQWidget *a_parent, const char *a_name)
m_buttonTextBold = new TQToolButton(m_formatGroup, "textBold");
m_buttonTextBold->setPixmap(TQPixmap((const char **)bold_xpm));
m_buttonTextBold->setToggleButton(true);
- connect(m_buttonTextBold, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(textBold(bool)));
+ connect(m_buttonTextBold, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(textBold(bool)));
m_buttonTextItalic = new TQToolButton(m_formatGroup, "textItalic");
m_buttonTextItalic->setPixmap(TQPixmap((const char **)italic_xpm));
m_buttonTextItalic->setToggleButton(true);
- connect(m_buttonTextItalic, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(textItalic(bool)));
+ connect(m_buttonTextItalic, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(textItalic(bool)));
m_buttonTextUnder = new TQToolButton(m_formatGroup, "textUnder");
m_buttonTextUnder->setPixmap(TQPixmap((const char **)under_xpm));
m_buttonTextUnder->setToggleButton(true);
- connect(m_buttonTextUnder, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(textUnder(bool)));
+ connect(m_buttonTextUnder, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(textUnder(bool)));
m_buttonTextLeft = new TQToolButton(m_alignGroup, "textLeft");
m_buttonTextLeft->setPixmap(TQPixmap((const char **)left_xpm));
@@ -104,11 +104,11 @@ RichTextEditor::RichTextEditor(TQWidget *a_parent, const char *a_name)
m_buttonTextRight->setPixmap(TQPixmap((const char **)right_xpm));
m_buttonTextRight->setToggleButton(true);
- connect(m_alignGroup, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(textAlign(int)));
- connect(m_textedit, TQT_SIGNAL(currentFontChanged(const TQFont &)), this, TQT_SLOT(fontChanged(const TQFont &)));
- connect(m_textedit, TQT_SIGNAL(currentAlignmentChanged(int)), this, TQT_SLOT(alignmentChanged(int)));
+ connect(m_alignGroup, TQ_SIGNAL(clicked(int)), this, TQ_SLOT(textAlign(int)));
+ connect(m_textedit, TQ_SIGNAL(currentFontChanged(const TQFont &)), this, TQ_SLOT(fontChanged(const TQFont &)));
+ connect(m_textedit, TQ_SIGNAL(currentAlignmentChanged(int)), this, TQ_SLOT(alignmentChanged(int)));
- connect(m_textedit, TQT_SIGNAL(textChanged()), this, TQT_SLOT(setTextChanged()));
+ connect(m_textedit, TQ_SIGNAL(textChanged()), this, TQ_SLOT(setTextChanged()));
}
diff --git a/kommander/widgets/subdialog.cpp b/kommander/widgets/subdialog.cpp
index 292ac541..66c8770b 100644
--- a/kommander/widgets/subdialog.cpp
+++ b/kommander/widgets/subdialog.cpp
@@ -39,7 +39,7 @@ SubDialog::SubDialog(TQWidget *a_parent, const char *a_name)
setStates(states);
setDisplayStates(states);
- connect(this, TQT_SIGNAL(clicked()), this, TQT_SLOT(showDialog()));
+ connect(this, TQ_SIGNAL(clicked()), this, TQ_SLOT(showDialog()));
}
@@ -103,7 +103,7 @@ void SubDialog::showDialog()
if(!m_dialog)
{
kdWarning() << "Creation of sub dialog failed .." << endl;
- connect(m_dialog, TQT_SIGNAL(finished()), this, TQT_SLOT(slotFinished()));
+ connect(m_dialog, TQ_SIGNAL(finished()), this, TQ_SLOT(slotFinished()));
m_dialog->exec();
}
diff --git a/kommander/widgets/textedit.cpp b/kommander/widgets/textedit.cpp
index be607aa4..ad5f06d9 100644
--- a/kommander/widgets/textedit.cpp
+++ b/kommander/widgets/textedit.cpp
@@ -50,7 +50,7 @@ KommanderWidget(this)
setStates(states);
setDisplayStates(states);
- connect(this, TQT_SIGNAL(textChanged()), this, TQT_SLOT(setTextChanged()));
+ connect(this, TQ_SIGNAL(textChanged()), this, TQ_SLOT(setTextChanged()));
KommanderPlugin::setDefaultGroup(Group::DCOP);
KommanderPlugin::registerFunction(TE_setModified, "setModified(TQString widget, bool Modified)", i18n("Set widget modified status."), 1);
diff --git a/kommander/widgets/timer.cpp b/kommander/widgets/timer.cpp
index c5f1f6ce..ea39706c 100644
--- a/kommander/widgets/timer.cpp
+++ b/kommander/widgets/timer.cpp
@@ -57,7 +57,7 @@ Timer::Timer(TQWidget *a_parent, const char *a_name)
mTimer = new TQTimer(this);
setInterval(5000);
setSingleShot(false);
- connect(mTimer, TQT_SIGNAL(timeout()), TQT_SLOT(timeout()));
+ connect(mTimer, TQ_SIGNAL(timeout()), TQ_SLOT(timeout()));
KommanderPlugin::setDefaultGroup(Group::DCOP);
KommanderPlugin::registerFunction(SetInterval, "setInterval(TQString widget, int interval)", i18n("Set the timer timeout interval in ms."), 2);
@@ -148,7 +148,7 @@ void Timer::timeout()
void Timer::execute()
{
if (mSingleShot)
- TQTimer::singleShot(mInterval, this, TQT_SLOT(timeout()));
+ TQTimer::singleShot(mInterval, this, TQ_SLOT(timeout()));
else
mTimer->start(mInterval);
}
diff --git a/kommander/widgets/wizard.cpp b/kommander/widgets/wizard.cpp
index fd2c0703..0ae537de 100644
--- a/kommander/widgets/wizard.cpp
+++ b/kommander/widgets/wizard.cpp
@@ -41,7 +41,7 @@ Wizard::Wizard(TQWidget *a_parent, const char *a_name, bool a_modal, int a_flags
setStates(states);
setDisplayStates(states);
- connect(this, TQT_SIGNAL(helpClicked()), TQT_SLOT(runHelp()));
+ connect(this, TQ_SIGNAL(helpClicked()), TQ_SLOT(runHelp()));
}
Wizard::~Wizard()