diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-06 12:58:35 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-06 12:58:35 +0900 |
commit | 936a0c73f552cce101c9aa5ec64800fad86542a2 (patch) | |
tree | d0a1d1bd72fbbbb35917113916e7b362206ae8c3 /bab | |
parent | 81589f93590dc8daa7a1209fc4b1df60b5132477 (diff) | |
download | tde-style-baghira-936a0c73f552cce101c9aa5ec64800fad86542a2.tar.gz tde-style-baghira-936a0c73f552cce101c9aa5ec64800fad86542a2.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'bab')
-rw-r--r-- | bab/main.cpp | 26 | ||||
-rw-r--r-- | bab/styleconfdialog.cpp | 6 |
2 files changed, 16 insertions, 16 deletions
diff --git a/bab/main.cpp b/bab/main.cpp index 3650888..ed21408 100644 --- a/bab/main.cpp +++ b/bab/main.cpp @@ -85,8 +85,8 @@ int main(int argc, char **argv) leftCorner.hide(); rightCorner.hide(); } - leftCorner.connect( mainBAB->cornerCheck, SIGNAL(toggled(bool)), SLOT(toggle(bool)) ); - rightCorner.connect( mainBAB->cornerCheck, SIGNAL(toggled(bool)), SLOT(toggle(bool)) ); + leftCorner.connect( mainBAB->cornerCheck, TQ_SIGNAL(toggled(bool)), TQ_SLOT(toggle(bool)) ); + rightCorner.connect( mainBAB->cornerCheck, TQ_SIGNAL(toggled(bool)), TQ_SLOT(toggle(bool)) ); int ret = app.exec(); if (mainBAB) delete mainBAB; @@ -177,11 +177,11 @@ bab::bab() : TDEMainWindow(0,"bab",TQt::WStyle_StaysOnTop | TQt::WX11BypassWM ){ bSwitcher->setStyle(DefStyle->currentText()); bSwitcher->setDeco(DefStyle->currentText()); - connect(DefStyle, SIGNAL(activated(int)), this, SLOT(saveSettings())); - connect(cornerCheck, SIGNAL(toggled(bool)), this, SLOT(saveSettings())); - connect(configBaghira, SIGNAL(clicked()), this, SLOT(configureBaghira())); - connect(Close, SIGNAL(clicked()), this, SLOT(hide())); - connect(Quit, SIGNAL(clicked()), this, SLOT(close())); + connect(DefStyle, TQ_SIGNAL(activated(int)), this, TQ_SLOT(saveSettings())); + connect(cornerCheck, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(saveSettings())); + connect(configBaghira, TQ_SIGNAL(clicked()), this, TQ_SLOT(configureBaghira())); + connect(Close, TQ_SIGNAL(clicked()), this, TQ_SLOT(hide())); + connect(Quit, TQ_SIGNAL(clicked()), this, TQ_SLOT(close())); resize(vb->width(),vb->height()); @@ -261,12 +261,12 @@ void bab::configureBaghira() TQPoint nPos((desktop->width() - dial->width())/2, (desktop->height() - dial->height() - 100)/2); dial->move(nPos); //..and connect it to the wrapper - connect(styleConfig, SIGNAL(changed(bool)), dial, SLOT(setStyleDirty(bool))); - connect(decoObject, SIGNAL(changed()), dial, SLOT(setDecoDirty())); - connect(dial, SIGNAL(defaults()), styleConfig, SLOT(defaults())); - connect(dial, SIGNAL(save()), styleConfig, SLOT(save())); - connect(dial, SIGNAL(defaults()), decoObject, SLOT(defaults())); - connect(dial, SIGNAL(save(TDEConfig*)), decoObject, SLOT(save(TDEConfig*))); + connect(styleConfig, TQ_SIGNAL(changed(bool)), dial, TQ_SLOT(setStyleDirty(bool))); + connect(decoObject, TQ_SIGNAL(changed()), dial, TQ_SLOT(setDecoDirty())); + connect(dial, TQ_SIGNAL(defaults()), styleConfig, TQ_SLOT(defaults())); + connect(dial, TQ_SIGNAL(save()), styleConfig, TQ_SLOT(save())); + connect(dial, TQ_SIGNAL(defaults()), decoObject, TQ_SLOT(defaults())); + connect(dial, TQ_SIGNAL(save(TDEConfig*)), decoObject, TQ_SLOT(save(TDEConfig*))); if (dial->exec() == TQDialog::Accepted) { diff --git a/bab/styleconfdialog.cpp b/bab/styleconfdialog.cpp index 5ab768d..83edb74 100644 --- a/bab/styleconfdialog.cpp +++ b/bab/styleconfdialog.cpp @@ -30,9 +30,9 @@ StyleConfigDialog::StyleConfigDialog(TQWidget* parent, TQString styleName): { m_styleDirty = false; m_decoDirty = false; - connect( this, SIGNAL( defaultClicked() ), this, SIGNAL( defaults() )); - connect( this, SIGNAL( okClicked() ), this, SIGNAL( save() )); - connect( this, SIGNAL( okClicked() ), this, SLOT( saveDeco() )); + connect( this, TQ_SIGNAL( defaultClicked() ), this, TQ_SIGNAL( defaults() )); + connect( this, TQ_SIGNAL( okClicked() ), this, TQ_SIGNAL( save() )); + connect( this, TQ_SIGNAL( okClicked() ), this, TQ_SLOT( saveDeco() )); } void StyleConfigDialog::saveDeco() |