summaryrefslogtreecommitdiffstats
path: root/kgeography/src/kgeography.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 11:49:24 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-19 11:12:48 +0900
commit845281400a4c6124e2cf8ab28174e9c3f0bc2895 (patch)
treefe2d221d237349ce9e1709802676323f747a4c66 /kgeography/src/kgeography.cpp
parentb06213ed1ee55fef2ebc1de1d9759d8c9df5f4bd (diff)
downloadtdeedu-845281400a4c6124e2cf8ab28174e9c3f0bc2895.tar.gz
tdeedu-845281400a4c6124e2cf8ab28174e9c3f0bc2895.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 69e4de2f4cee257151ca13b207dc677b2d958fed)
Diffstat (limited to 'kgeography/src/kgeography.cpp')
-rw-r--r--kgeography/src/kgeography.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kgeography/src/kgeography.cpp b/kgeography/src/kgeography.cpp
index 2aaee1e9..a0dba217 100644
--- a/kgeography/src/kgeography.cpp
+++ b/kgeography/src/kgeography.cpp
@@ -65,16 +65,16 @@ kgeography::kgeography() : TDEMainWindow(), p_firstShow(true), p_mustShowResults
setCentralWidget(p_bigWidget);
- connect(p_consult, TQT_SIGNAL(clicked()), this, TQT_SLOT(consult()));
- connect(p_askMap, TQT_SIGNAL(clicked()), this, TQT_SLOT(askMap()));
- connect(p_askCapitalDivisions, TQT_SIGNAL(clicked()), this, TQT_SLOT(askCapitalDivisions()));
- connect(p_askDivisionCapitals, TQT_SIGNAL(clicked()), this, TQT_SLOT(askDivisionCapitals()));
- connect(p_askFlagDivisions, TQT_SIGNAL(clicked()), this, TQT_SLOT(askFlagDivisions()));
- connect(p_askDivisionFlags, TQT_SIGNAL(clicked()), this, TQT_SLOT(askDivisionFlags()));
-
- TDEAction *a = KStdAction::open(this, TQT_SLOT(openMap()), actionCollection(), "openMap");
+ connect(p_consult, TQ_SIGNAL(clicked()), this, TQ_SLOT(consult()));
+ connect(p_askMap, TQ_SIGNAL(clicked()), this, TQ_SLOT(askMap()));
+ connect(p_askCapitalDivisions, TQ_SIGNAL(clicked()), this, TQ_SLOT(askCapitalDivisions()));
+ connect(p_askDivisionCapitals, TQ_SIGNAL(clicked()), this, TQ_SLOT(askDivisionCapitals()));
+ connect(p_askFlagDivisions, TQ_SIGNAL(clicked()), this, TQ_SLOT(askFlagDivisions()));
+ connect(p_askDivisionFlags, TQ_SIGNAL(clicked()), this, TQ_SLOT(askDivisionFlags()));
+
+ TDEAction *a = KStdAction::open(this, TQ_SLOT(openMap()), actionCollection(), "openMap");
a -> setText(i18n("&Open Map..."));
- KStdAction::quit(this, TQT_SLOT(close()), actionCollection(), "quit");
+ KStdAction::quit(this, TQ_SLOT(close()), actionCollection(), "quit");
p_zoom = new TDEToggleAction(i18n("&Zoom"), "zoom-fit-best", 0, 0, 0, actionCollection(), "zoom_select");
p_zoom -> setEnabled(false);
@@ -85,7 +85,7 @@ kgeography::kgeography() : TDEMainWindow(), p_firstShow(true), p_mustShowResults
p_move = new TDEToggleAction(i18n("&Move"), "move", 0, 0, 0, actionCollection(), "move");
p_move -> setEnabled(false);
- new TDEAction(i18n("Disclaimer"), 0, this, TQT_SLOT(disclaimer()), actionCollection(), "disclaimer");
+ new TDEAction(i18n("Disclaimer"), 0, this, TQ_SLOT(disclaimer()), actionCollection(), "disclaimer");
setupGUI(Keys | ToolBar | Save | Create);
@@ -132,7 +132,7 @@ void kgeography::showEvent(TQShowEvent *)
}
// if anyone can explain why with the slot works and now without
// i'll be glad to learn
- TQTimer::singleShot(0, this, TQT_SLOT(resizeMainWindow()));
+ TQTimer::singleShot(0, this, TQ_SLOT(resizeMainWindow()));
// resizeMainWindow();
p_firstShow = false;
@@ -269,13 +269,13 @@ void kgeography::putAskWidget()
{
p_bigWidget -> setStretchFactor(p_askWidget, 1);
p_askWidget -> show();
- connect(p_askWidget, TQT_SIGNAL(setZoomActionChecked(bool)), p_zoom, TQT_SLOT(setChecked(bool)));
- connect(p_zoom, TQT_SIGNAL(toggled(bool)), p_askWidget, TQT_SLOT(setZoom(bool)));
- connect(p_zoomOriginal, TQT_SIGNAL(activated()), p_askWidget, TQT_SLOT(setOriginalZoom()));
- connect(p_askWidget, TQT_SIGNAL(setMoveActionEnabled(bool)), p_move, TQT_SLOT(setEnabled(bool)));
- connect(p_askWidget, TQT_SIGNAL(setMoveActionChecked(bool)), p_move, TQT_SLOT(setChecked(bool)));
- connect(p_move, TQT_SIGNAL(toggled(bool)), p_askWidget, TQT_SLOT(setMovement(bool)));
- connect(p_askWidget, TQT_SIGNAL(questionsEnded()), this, TQT_SLOT(showResultsDialog()));
+ connect(p_askWidget, TQ_SIGNAL(setZoomActionChecked(bool)), p_zoom, TQ_SLOT(setChecked(bool)));
+ connect(p_zoom, TQ_SIGNAL(toggled(bool)), p_askWidget, TQ_SLOT(setZoom(bool)));
+ connect(p_zoomOriginal, TQ_SIGNAL(activated()), p_askWidget, TQ_SLOT(setOriginalZoom()));
+ connect(p_askWidget, TQ_SIGNAL(setMoveActionEnabled(bool)), p_move, TQ_SLOT(setEnabled(bool)));
+ connect(p_askWidget, TQ_SIGNAL(setMoveActionChecked(bool)), p_move, TQ_SLOT(setChecked(bool)));
+ connect(p_move, TQ_SIGNAL(toggled(bool)), p_askWidget, TQ_SLOT(setMovement(bool)));
+ connect(p_askWidget, TQ_SIGNAL(questionsEnded()), this, TQ_SLOT(showResultsDialog()));
}
void kgeography::setMap(KGmap *m)