summaryrefslogtreecommitdiffstats
path: root/kworldwatch/mapwidget.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-14 14:04:47 +0900
committerMichele Calgaro <[email protected]>2024-01-18 19:03:51 +0900
commit8114410a311b64cba3de27fc60ac59ce3322eaab (patch)
tree126ed143667ccf4cdab62a4bec5a17eb2f0921cc /kworldwatch/mapwidget.cpp
parent233d1477e9794af302b81f0f8af4155eff3ab2e4 (diff)
downloadtdetoys-8114410a311b64cba3de27fc60ac59ce3322eaab.tar.gz
tdetoys-8114410a311b64cba3de27fc60ac59ce3322eaab.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit cb5e787fde24bc986f17de4c78b5840f8ed85856)
Diffstat (limited to 'kworldwatch/mapwidget.cpp')
-rw-r--r--kworldwatch/mapwidget.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kworldwatch/mapwidget.cpp b/kworldwatch/mapwidget.cpp
index ba1bba5..452a0ba 100644
--- a/kworldwatch/mapwidget.cpp
+++ b/kworldwatch/mapwidget.cpp
@@ -88,19 +88,19 @@ MapWidget::MapWidget(bool applet, bool restore, TQWidget *parent, const char *na
int id;
_flagPopup = new TQPopupMenu(this);
TQPixmap flag = TQPixmap(locate("data", "kworldclock/pics/flag-red.png"));
- id = _flagPopup->insertItem(TQIconSet(flag), i18n("Add &Red"), this, TQT_SLOT(addFlag(int)));
+ id = _flagPopup->insertItem(TQIconSet(flag), i18n("Add &Red"), this, TQ_SLOT(addFlag(int)));
_flagPopup->setItemParameter(id, 0);
flag = TQPixmap(locate("data", "kworldclock/pics/flag-green.png"));
- id = _flagPopup->insertItem(TQIconSet(flag), i18n("Add &Green"), this, TQT_SLOT(addFlag(int)));
+ id = _flagPopup->insertItem(TQIconSet(flag), i18n("Add &Green"), this, TQ_SLOT(addFlag(int)));
_flagPopup->setItemParameter(id, 1);
flag = TQPixmap(locate("data", "kworldclock/pics/flag-blue.png"));
- id = _flagPopup->insertItem(TQIconSet(flag), i18n("Add &Blue"), this, TQT_SLOT(addFlag(int)));
+ id = _flagPopup->insertItem(TQIconSet(flag), i18n("Add &Blue"), this, TQ_SLOT(addFlag(int)));
_flagPopup->setItemParameter(id, 2);
- id = _flagPopup->insertItem(i18n("Add &Custom..."), this, TQT_SLOT(addFlag(int)));
+ id = _flagPopup->insertItem(i18n("Add &Custom..."), this, TQ_SLOT(addFlag(int)));
_flagPopup->setItemParameter(id, 3);
_flagPopup->insertSeparator();
- _flagPopup->insertItem(i18n("&Remove Flag"), this, TQT_SLOT(removeFlag()));
- _flagPopup->insertItem(i18n("&Remove All Flags"), this, TQT_SLOT(removeAllFlags()));
+ _flagPopup->insertItem(i18n("&Remove Flag"), this, TQ_SLOT(removeFlag()));
+ _flagPopup->insertItem(i18n("&Remove All Flags"), this, TQ_SLOT(removeAllFlags()));
_themePopup = new TQPopupMenu(this);
_themes = MapLoader::themes();
@@ -108,13 +108,13 @@ MapWidget::MapWidget(bool applet, bool restore, TQWidget *parent, const char *na
TQPtrListIterator<MapTheme> it(_themes);
for ( ; it.current(); ++it)
{
- int id = _themePopup->insertItem(it.current()->name(), this, TQT_SLOT(themeSelected(int)));
+ int id = _themePopup->insertItem(it.current()->name(), this, TQ_SLOT(themeSelected(int)));
_themePopup->setItemParameter(id, cnt++);
it.current()->setID(id);
}
TQPopupMenu *_clocksPopup = new TQPopupMenu(this);
- _clocksPopup->insertItem(i18n("&Add..."), this, TQT_SLOT(addClock()));
+ _clocksPopup->insertItem(i18n("&Add..."), this, TQ_SLOT(addClock()));
_popup = new TQPopupMenu(this);
_popup->insertItem(i18n("&Flags"), _flagPopup);
@@ -124,21 +124,21 @@ MapWidget::MapWidget(bool applet, bool restore, TQWidget *parent, const char *na
_popup->insertSeparator();
_popup->insertItem(i18n("&Map Theme"), _themePopup);
- _illuminationID = _popup->insertItem(i18n("Show &Daylight"), this, TQT_SLOT(toggleIllumination()));
- _citiesID = _popup->insertItem(i18n("Show &Cities"), this, TQT_SLOT(toggleCities()));
- _flagsID = _popup->insertItem(i18n("Show F&lags"), this, TQT_SLOT(toggleFlags()));
+ _illuminationID = _popup->insertItem(i18n("Show &Daylight"), this, TQ_SLOT(toggleIllumination()));
+ _citiesID = _popup->insertItem(i18n("Show &Cities"), this, TQ_SLOT(toggleCities()));
+ _flagsID = _popup->insertItem(i18n("Show F&lags"), this, TQ_SLOT(toggleFlags()));
if (!applet)
{
_popup->insertSeparator();
- _popup->insertItem(i18n("&Save Settings"), this, TQT_SLOT(slotSaveSettings()));
+ _popup->insertItem(i18n("&Save Settings"), this, TQ_SLOT(slotSaveSettings()));
}
_popup->insertSeparator();
- _popup->insertItem(i18n("&About"), this, TQT_SLOT(about()));
+ _popup->insertItem(i18n("&About"), this, TQ_SLOT(about()));
TQTimer *timer = new TQTimer(this);
- connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout()));
+ connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()));
timer->start(1000);
_cityIndicator = new TQLabel(0,0, WStyle_StaysOnTop | WStyle_Customize | WStyle_NoBorder | WStyle_Tool | WX11BypassWM );
@@ -154,7 +154,7 @@ MapWidget::MapWidget(bool applet, bool restore, TQWidget *parent, const char *na
if (restore && !applet)
load(kapp->config());
- connect(&m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(updateCityIndicator()));
+ connect(&m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(updateCityIndicator()));
}