summaryrefslogtreecommitdiffstats
path: root/lib/kopalette/kotoolboxpalette.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kopalette/kotoolboxpalette.cc')
-rw-r--r--lib/kopalette/kotoolboxpalette.cc36
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/kopalette/kotoolboxpalette.cc b/lib/kopalette/kotoolboxpalette.cc
index 12dbee55..c41382cf 100644
--- a/lib/kopalette/kotoolboxpalette.cc
+++ b/lib/kopalette/kotoolboxpalette.cc
@@ -17,17 +17,17 @@
*/
-#include <qdockwindow.h>
-#include <qtoolbox.h>
+#include <tqdockwindow.h>
+#include <tqtoolbox.h>
#include <kopalette.h>
#include <kopalettemanager.h>
#include <kotoolboxpalette.h>
-KoToolBoxPalette::KoToolBoxPalette(QWidget * parent, const char * name)
- : KoPalette(parent, name)
+KoToolBoxPalette::KoToolBoxPalette(TQWidget * tqparent, const char * name)
+ : KoPalette(tqparent, name)
{
- m_page = new QToolBox(this);
+ m_page = new TQToolBox(this);
m_page->unsetFont();
setMainWidget(m_page);
m_style = PALETTE_TOOLBOX;
@@ -45,27 +45,27 @@ void KoToolBoxPalette::resetFont()
}
-void KoToolBoxPalette::plug(QWidget *w, const QString & label, int position)
+void KoToolBoxPalette::plug(TQWidget *w, const TQString & label, int position)
{
w->unsetFont();
m_page->insertItem( position, w, label );
}
-void KoToolBoxPalette::unplug(const QWidget *w)
+void KoToolBoxPalette::unplug(const TQWidget *w)
{
- m_page->removeItem( const_cast<QWidget*>(w) );
+ m_page->removeItem( const_cast<TQWidget*>(w) );
}
-void KoToolBoxPalette::showPage(QWidget *w)
+void KoToolBoxPalette::showPage(TQWidget *w)
{
m_page->setCurrentItem( w );
}
-int KoToolBoxPalette::indexOf(QWidget *w)
+int KoToolBoxPalette::indexOf(TQWidget *w)
{
- if (m_hiddenPages.find(w) != m_hiddenPages.end()) {
+ if (m_hiddenPages.tqfind(w) != m_hiddenPages.end()) {
return m_page->indexOf(w);
}
else {
@@ -84,15 +84,15 @@ void KoToolBoxPalette::makeVisible(bool v)
}
}
-bool KoToolBoxPalette::isHidden(QWidget * w)
+bool KoToolBoxPalette::isHidden(TQWidget * w)
{
- return (m_hiddenPages.find(w) != m_hiddenPages.end());
+ return (m_hiddenPages.tqfind(w) != m_hiddenPages.end());
}
-void KoToolBoxPalette::togglePageHidden(QWidget *w)
+void KoToolBoxPalette::togglePageHidden(TQWidget *w)
{
- if (m_hiddenPages.find(w) != m_hiddenPages.end()) {
- int i = *m_hiddenPages.find(w);
+ if (m_hiddenPages.tqfind(w) != m_hiddenPages.end()) {
+ int i = *m_hiddenPages.tqfind(w);
m_page->insertItem(i, w, w->caption());
show();
}
@@ -107,9 +107,9 @@ void KoToolBoxPalette::togglePageHidden(QWidget *w)
}
-void KoToolBoxPalette::hidePage( QWidget * w)
+void KoToolBoxPalette::hidePage( TQWidget * w)
{
- if (m_hiddenPages.find(w) != m_hiddenPages.end()) return;
+ if (m_hiddenPages.tqfind(w) != m_hiddenPages.end()) return;
int i = m_page->indexOf(w);
m_page->removeItem(w);
m_hiddenPages[w] = i;