diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | b6edfe41c9395f2e20784cbf0e630af6426950a3 (patch) | |
tree | 56ed9b871d4296e6c15949c24e16420be1b28697 /lib/kopalette/kopalettemanager.cc | |
parent | ef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff) | |
download | koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kopalette/kopalettemanager.cc')
-rw-r--r-- | lib/kopalette/kopalettemanager.cc | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/lib/kopalette/kopalettemanager.cc b/lib/kopalette/kopalettemanager.cc index 839a6187..94ea8d4d 100644 --- a/lib/kopalette/kopalettemanager.cc +++ b/lib/kopalette/kopalettemanager.cc @@ -141,7 +141,7 @@ void KoPaletteManager::addWidget(TQWidget * widget, TQString pname = paletteName; - TQWidget * w = m_widgets->tqfind(name); + TQWidget * w = m_widgets->find(name); if (w != 0 ) { removeWidget(name); @@ -157,7 +157,7 @@ void KoPaletteManager::addWidget(TQWidget * widget, visible = cfg->readBoolEntry("visible"); } - KoPalette * palette = m_palettes->tqfind(pname); + KoPalette * palette = m_palettes->find(pname); if (palette == 0) { palette = createPalette(pname, widget->caption(), style); @@ -181,11 +181,11 @@ void KoPaletteManager::addWidget(TQWidget * widget, m_defaultWidgetOrder.append(name); // Find out the hidden state - if(m_widgetNames->tqcontains(name)) + if(m_widgetNames->contains(name)) { // The widget has already been added (and removed) during this session - if(m_hiddenWidgets.tqcontains(name)) + if(m_hiddenWidgets.contains(name)) palette->hidePage( widget ); else { @@ -241,13 +241,13 @@ void KoPaletteManager::slotReset() for (it = m_defaultWidgetOrder.begin(); it != m_defaultWidgetOrder.end(); ++it) { TQString widgetName = *it; - TQWidget * w = m_widgets->tqfind(widgetName); + TQWidget * w = m_widgets->find(widgetName); if (!w) { continue; } - TQString paletteName = *m_defaultMapping->tqfind(widgetName); - KoPalette * p = m_palettes->tqfind(paletteName); + TQString paletteName = *m_defaultMapping->find(widgetName); + KoPalette * p = m_palettes->find(paletteName); if (p == 0) { // Funny -- we should have a consistent set of palettes without holes! @@ -271,48 +271,48 @@ void KoPaletteManager::slotResetFont() TQWidget * KoPaletteManager::widget(const TQString & name) { - return m_widgets->tqfind(name); + return m_widgets->find(name); } void KoPaletteManager::showWidget(const TQString & name) { - TQWidget * w = m_widgets->tqfind(name); + TQWidget * w = m_widgets->find(name); if (!w) return; - TQString pname = *m_currentMapping->tqfind(name); + TQString pname = *m_currentMapping->find(name); if (pname.isNull()) return; - KoPalette * p = m_palettes->tqfind(pname); + KoPalette * p = m_palettes->find(pname); p->showPage(w); - KToggleAction * a = m_actions->tqfind(name); + KToggleAction * a = m_actions->find(name); a->setChecked(true); } void KoPaletteManager::hideWidget(const TQString & name) { - TQWidget * w = m_widgets->tqfind(name); + TQWidget * w = m_widgets->find(name); if (!w) return; - TQString pname = *m_currentMapping->tqfind(name); + TQString pname = *m_currentMapping->find(name); if (pname.isNull()) return; - KoPalette * p = m_palettes->tqfind(pname); + KoPalette * p = m_palettes->find(pname); p->hidePage(w); - KToggleAction * a = m_actions->tqfind(name); + KToggleAction * a = m_actions->find(name); a->setChecked(false); } void KoPaletteManager::removeWidget(const TQString & name) { - TQString palette = *(m_currentMapping->tqfind(name)); + TQString palette = *(m_currentMapping->find(name)); if (palette.isNull()) return; - TQWidget * w = m_widgets->tqfind(name); + TQWidget * w = m_widgets->find(name); if (!w) return; - KoPalette * p = m_palettes->tqfind(palette); + KoPalette * p = m_palettes->find(palette); if (!p) return; p->showPage(w); @@ -331,7 +331,7 @@ KoPalette * KoPaletteManager::createPalette(const TQString & name, const TQStrin KoPalette * palette = 0; - palette = m_palettes->tqfind(name); + palette = m_palettes->find(name); if (palette) return palette; @@ -362,7 +362,7 @@ KoPalette * KoPaletteManager::createPalette(const TQString & name, const TQStrin void KoPaletteManager::placePalette(const TQString & name, TQt::Dock location) { Q_ASSERT(!name.isNull()); - KoPalette * palette = m_palettes->tqfind(name); + KoPalette * palette = m_palettes->find(name); if (!palette) return; @@ -441,9 +441,9 @@ void KoPaletteManager::slotTogglePalette(int paletteIndex) { // Toggle the right palette TQString name = *m_widgetNames->at(paletteIndex); - TQWidget * w = m_widgets->tqfind(name); - TQString pname = *m_currentMapping->tqfind(name); - KoPalette * p = m_palettes->tqfind(pname); + TQWidget * w = m_widgets->find(name); + TQString pname = *m_currentMapping->find(name); + KoPalette * p = m_palettes->find(pname); p->togglePageHidden( w ); m_hiddenWidgets.clear(); @@ -457,12 +457,12 @@ void KoPaletteManager::slotToggleAllPalettes() while(!m_hiddenWidgets.isEmpty()) { TQString name = m_hiddenWidgets.pop(); - TQWidget *w = m_widgets->tqfind(name); - KToggleAction * a = m_actions->tqfind(name); + TQWidget *w = m_widgets->find(name); + KToggleAction * a = m_actions->find(name); a->setChecked(true); - TQString pname = *m_currentMapping->tqfind(name); - KoPalette * p = m_palettes->tqfind(pname); + TQString pname = *m_currentMapping->find(name); + KoPalette * p = m_palettes->find(pname); p->showPage(w); } } @@ -473,14 +473,14 @@ void KoPaletteManager::slotToggleAllPalettes() TQDictIterator<TQWidget> it(*m_widgets); for (; it.current(); ++it) { - KToggleAction * a = m_actions->tqfind(it.currentKey()); + KToggleAction * a = m_actions->find(it.currentKey()); if(a->isChecked()) { a->setChecked(false); m_hiddenWidgets.push(it.currentKey()); - TQString pname = *m_currentMapping->tqfind(it.currentKey()); - KoPalette * p = m_palettes->tqfind(pname); + TQString pname = *m_currentMapping->find(it.currentKey()); + KoPalette * p = m_palettes->find(pname); p->hidePage(it.current()); } } @@ -570,7 +570,7 @@ void KoPaletteManager::save() TQStringList::iterator it; bool inserted = false; for (it = paletteList.begin(); it != paletteList.end(); ++it) { - KoPalette * p2 = m_palettes->tqfind((*it)); + KoPalette * p2 = m_palettes->find((*it)); if (p2->y() > p->y()) { paletteList.insert(it, itP.currentKey()); inserted = true; @@ -592,15 +592,15 @@ void KoPaletteManager::save() TQDictIterator<TQWidget> itW(*m_widgets); for (; itW.current(); ++itW) { cfg->setGroup("palettetab-" + itW.currentKey()); - TQString pname = *m_currentMapping->tqfind(itW.currentKey()); - KoPalette * p = m_palettes->tqfind(pname); + TQString pname = *m_currentMapping->find(itW.currentKey()); + KoPalette * p = m_palettes->find(pname); TQWidget * w = itW.current(); cfg->writeEntry("docker", pname); if(palettesShown) cfg->writeEntry("visible", !p->isHidden(w)); else - if(m_hiddenWidgets.tqcontains(itW.currentKey())) + if(m_hiddenWidgets.contains(itW.currentKey())) cfg->writeEntry("visible", true); else cfg->writeEntry("visible", false); |