summaryrefslogtreecommitdiffstats
path: root/kradio3/plugins/gui-docking-menu/docking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kradio3/plugins/gui-docking-menu/docking.cpp')
-rw-r--r--kradio3/plugins/gui-docking-menu/docking.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kradio3/plugins/gui-docking-menu/docking.cpp b/kradio3/plugins/gui-docking-menu/docking.cpp
index 2c07b3f..3392ea6 100644
--- a/kradio3/plugins/gui-docking-menu/docking.cpp
+++ b/kradio3/plugins/gui-docking-menu/docking.cpp
@@ -277,7 +277,7 @@ void RadioDocking::buildStationList()
++k;
TQString shortcut = k < 10 ? "&"+TQString().setNum(k) : k == 10 ? "1&0" : TQString().setNum(k);
- TQString name = rs.longName().tqreplace("&", "&&");
+ TQString name = rs.longName().replace("&", "&&");
TQString item = shortcut + " " + name;
int id = m_menu->insertItem(item);
@@ -484,7 +484,7 @@ void RadioDocking::ShowHideWidgetPlugins()
for (TQMapIterator<WidgetPluginBase*, int> it = m_widgetPluginIDs.begin(); it != m_widgetPluginIDs.end(); ++it) {
WidgetPluginBase *p = it.key();
TQString name = p ? p->name() : TQString();
- if (p && tmpCache.tqcontains(name) && tmpCache[name]) {
+ if (p && tmpCache.contains(name) && tmpCache[name]) {
p->showOnOrgDesktop();
}
}
@@ -511,7 +511,7 @@ void RadioDocking::slotMenuItemActivated(int id)
void RadioDocking::noticeWidgetPluginShown(WidgetPluginBase *b, bool shown)
{
- if (!m_manager || !b || !m_widgetPluginIDs.tqcontains(b))
+ if (!m_manager || !b || !m_widgetPluginIDs.contains(b))
return;
m_manager->updateWidgetPluginMenuItem(b, m_pluginMenu, m_widgetPluginIDs, shown);
@@ -533,7 +533,7 @@ bool RadioDocking::startRecordingWithFormat(
const SoundFormat &/*proposed_format*/,
SoundFormat &/*real_format*/)
{
- if (!id.isValid() || id != queryCurrentSoundStreamID() || m_StreamID2MenuID.tqcontains(id))
+ if (!id.isValid() || id != queryCurrentSoundStreamID() || m_StreamID2MenuID.contains(id))
return false;
TQString descr;
@@ -555,7 +555,7 @@ bool RadioDocking::startRecordingWithFormat(
bool RadioDocking::stopRecording (SoundStreamID id)
{
- if (!id.isValid() || !m_StreamID2MenuID.tqcontains(id))
+ if (!id.isValid() || !m_StreamID2MenuID.contains(id))
return false;
int menu_id = m_StreamID2MenuID[id];
@@ -584,7 +584,7 @@ void RadioDocking::slotRecordingMenu(int i)
sendPowerOn();
sendStartRecording(id);
}
- } else if (m_MenuID2StreamID.tqcontains(i)) {
+ } else if (m_MenuID2StreamID.contains(i)) {
sendStopRecording(m_MenuID2StreamID[i]);
}
}
@@ -628,7 +628,7 @@ void RadioDocking::buildRecordingMenu()
bool RadioDocking::noticeSoundStreamChanged(SoundStreamID id)
{
- if (m_StreamID2MenuID.tqcontains(id)) {
+ if (m_StreamID2MenuID.contains(id)) {
TQString descr;
querySoundStreamDescription(id, descr);
m_recordingMenu->changeItem(m_StreamID2MenuID[id],
@@ -665,7 +665,7 @@ void RadioDocking::dropEvent(TQDropEvent* event)
if ( StationDragObject::decode(event, list) ) {
TQStringList l = getStationSelection();
for (TQValueListConstIterator<TQString> it = list.begin(); it != list.end(); ++it)
- if (!l.tqcontains(*it))
+ if (!l.contains(*it))
l.append(*it);
setStationSelection(l);
}