summaryrefslogtreecommitdiffstats
path: root/kradio3/plugins/gui-docking-menu
diff options
context:
space:
mode:
Diffstat (limited to 'kradio3/plugins/gui-docking-menu')
-rw-r--r--kradio3/plugins/gui-docking-menu/docking-configuration.cpp18
-rw-r--r--kradio3/plugins/gui-docking-menu/docking.cpp22
2 files changed, 20 insertions, 20 deletions
diff --git a/kradio3/plugins/gui-docking-menu/docking-configuration.cpp b/kradio3/plugins/gui-docking-menu/docking-configuration.cpp
index 4aaa4a9..489df58 100644
--- a/kradio3/plugins/gui-docking-menu/docking-configuration.cpp
+++ b/kradio3/plugins/gui-docking-menu/docking-configuration.cpp
@@ -19,7 +19,7 @@
#include <tqcombobox.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqframe.h>
#include <klocale.h>
@@ -31,26 +31,26 @@ DockingConfiguration::DockingConfiguration (RadioDocking *docking, TQWidget *par
m_docking(docking),
m_disableGUIUpdates(false)
{
- TQHBoxLayout *layout = new TQHBoxLayout();
- TQHBoxLayout *layout2 = new TQHBoxLayout();
+ TQHBoxLayout *tqlayout = new TQHBoxLayout();
+ TQHBoxLayout *tqlayout2 = new TQHBoxLayout();
m_labelClickMode = new TQLabel(this);
- layout->addWidget(m_labelClickMode);
+ tqlayout->addWidget(m_labelClickMode);
m_comboClickMode = new TQComboBox(this);
- layout->addWidget(m_comboClickMode);
+ tqlayout->addWidget(m_comboClickMode);
TQSpacerItem *spacer = new TQSpacerItem( 20, 2, TQSizePolicy::Expanding, TQSizePolicy::Minimum);
- layout->addItem(spacer);
+ tqlayout->addItem(spacer);
TQFrame *line = new TQFrame(this);
line->setFrameShape ( TQFrame::HLine );
line->setFrameShadow( TQFrame::Sunken );
- layout2->addWidget(line);
+ tqlayout2->addWidget(line);
StationSelectorUILayout->expand(2,0);
- StationSelectorUILayout->addMultiCellLayout(layout2, 2, 2, 0, 2);
- StationSelectorUILayout->addMultiCellLayout(layout, 3, 3, 0, 2);
+ StationSelectorUILayout->addMultiCellLayout(tqlayout2, 2, 2, 0, 2);
+ StationSelectorUILayout->addMultiCellLayout(tqlayout, 3, 3, 0, 2);
connect(m_comboClickMode, TQT_SIGNAL(activated( int )), this, TQT_SLOT(slotSetDirty()));
diff --git a/kradio3/plugins/gui-docking-menu/docking.cpp b/kradio3/plugins/gui-docking-menu/docking.cpp
index 24511f1..4b1f696 100644
--- a/kradio3/plugins/gui-docking-menu/docking.cpp
+++ b/kradio3/plugins/gui-docking-menu/docking.cpp
@@ -137,8 +137,8 @@ void RadioDocking::restoreState (KConfig *config)
int n = config->readNumEntry("show_hide_cache_entries", 0);
for (int i = 1; i <= n; ++i) {
- TQString s = config->readEntry(TQString("show_hide_cache_id_%1").arg(i), TQString());
- bool b = config->readBoolEntry(TQString("show_hide_cache_value_%1").arg(i), false);
+ TQString s = config->readEntry(TQString("show_hide_cache_id_%1").tqarg(i), TQString());
+ bool b = config->readBoolEntry(TQString("show_hide_cache_value_%1").tqarg(i), false);
if (!s.isNull()) {
m_widgetsShownCache.insert(s,b);
}
@@ -161,8 +161,8 @@ void RadioDocking::saveState (KConfig *config) const
config->writeEntry("show_hide_cache_entries", m_widgetsShownCache.count());
i = 1;
for (TQMapConstIterator<TQString, bool> it = m_widgetsShownCache.begin(); it != m_widgetsShownCache.end(); ++it, ++i) {
- config->writeEntry(TQString("show_hide_cache_id_%1").arg(i), it.key());
- config->writeEntry(TQString("show_hide_cache_value_%1").arg(i), *it);
+ config->writeEntry(TQString("show_hide_cache_id_%1").tqarg(i), it.key());
+ config->writeEntry(TQString("show_hide_cache_value_%1").tqarg(i), *it);
}
}
@@ -351,7 +351,7 @@ bool RadioDocking::noticeNextAlarmChanged(const Alarm *a)
if (a) d = a->nextAlarm();
if (d.isValid())
- m_menu->changeTitle (m_alarmID, i18n("next alarm: %1").arg(d.toString()));
+ m_menu->changeTitle (m_alarmID, i18n("next alarm: %1").tqarg(d.toString()));
else
m_menu->changeTitle (m_alarmID, i18n("<no alarm pending>"));
return true;
@@ -361,7 +361,7 @@ bool RadioDocking::noticeNextAlarmChanged(const Alarm *a)
bool RadioDocking::noticeCountdownStarted(const TQDateTime &end)
{
if (end.isValid())
- m_menu->changeItem (m_sleepID, SmallIcon("kradio_zzz"), i18n("Stop Sleep Countdown (running until %1)").arg(end.toString()));
+ m_menu->changeItem (m_sleepID, SmallIcon("kradio_zzz"), i18n("Stop Sleep Countdown (running until %1)").tqarg(end.toString()));
else
m_menu->changeItem (m_sleepID, SmallIcon("kradio_zzz"), i18n("Start Sleep Countdown"));
return true;
@@ -404,7 +404,7 @@ bool RadioDocking::noticeStationChanged (const RadioStation &rs, int /*idx*/)
s = rs.longName();
TQToolTip::add(this, s);
- m_menu->changeTitle (m_titleID, i18n("KRadio: %1").arg(s));
+ m_menu->changeTitle (m_titleID, i18n("KRadio: %1").tqarg(s));
// FIXME: title does not change in opened popupmenu
TQValueList<int>::iterator iit = m_stationMenuIDs.begin();
@@ -472,7 +472,7 @@ void RadioDocking::ShowHideWidgetPlugins()
if (p) {
bool visible = p->isAnywhereVisible();
TQString name = p->name();
- logDebug(TQString("visibility of %1: %2").arg(name).arg(visible));
+ logDebug(TQString("visibility of %1: %2").tqarg(name).tqarg(visible));
m_widgetsShownCache.insert(name, visible);
p->getWidget()->hide();
}
@@ -540,7 +540,7 @@ bool RadioDocking::startRecordingWithFormat(
querySoundStreamDescription(id, descr);
int menu_id = m_NextRecordingMenuID++;
m_recordingMenu->insertItem(SmallIcon("kradio_record"),
- i18n("Stop Recording of %1").arg(descr),
+ i18n("Stop Recording of %1").tqarg(descr),
menu_id);
m_MenuID2StreamID.insert(menu_id, id);
m_StreamID2MenuID.insert(id, menu_id);
@@ -613,7 +613,7 @@ void RadioDocking::buildRecordingMenu()
if (r) {
int menu_id = m_NextRecordingMenuID++;
m->insertItem(SmallIcon("kradio_record"),
- i18n("Stop Recording of %1").arg(descr),
+ i18n("Stop Recording of %1").tqarg(descr),
menu_id);
m_MenuID2StreamID.insert(menu_id, id);
m_StreamID2MenuID.insert(id, menu_id);
@@ -633,7 +633,7 @@ bool RadioDocking::noticeSoundStreamChanged(SoundStreamID id)
querySoundStreamDescription(id, descr);
m_recordingMenu->changeItem(m_StreamID2MenuID[id],
SmallIcon("kradio_record"),
- i18n("Stop Recording of %1").arg(descr));
+ i18n("Stop Recording of %1").tqarg(descr));
return true;
}
return false;