summaryrefslogtreecommitdiffstats
path: root/lib/kopalette/kotabpalette.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kopalette/kotabpalette.cc')
-rw-r--r--lib/kopalette/kotabpalette.cc42
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/kopalette/kotabpalette.cc b/lib/kopalette/kotabpalette.cc
index 3da34e58..972a8144 100644
--- a/lib/kopalette/kotabpalette.cc
+++ b/lib/kopalette/kotabpalette.cc
@@ -16,7 +16,7 @@
*/
-#include <qdockwindow.h>
+#include <tqdockwindow.h>
#include <ktabwidget.h>
#include <kdebug.h>
@@ -27,12 +27,12 @@
#include <kotabpalette.h>
#include "kopalettemanager.h"
-KoTabPalette::KoTabPalette(QWidget * parent, const char * name)
- : KoPalette(parent, name)
+KoTabPalette::KoTabPalette(TQWidget * tqparent, const char * name)
+ : KoPalette(tqparent, name)
{
m_page = new KTabWidget(this);
- m_page->setTabShape(QTabWidget::Triangular);
- m_page->setFocusPolicy(QWidget::TabFocus);
+ m_page->setTabShape(TQTabWidget::Triangular);
+ m_page->setFocusPolicy(TQ_TabFocus);
//m_page->setFont(m_font);
m_page->setMargin(1);
//m_page->setTabReorderingEnabled(true);
@@ -44,11 +44,11 @@ KoTabPalette::~KoTabPalette()
{
}
-void KoTabPalette::plug(QWidget * w, const QString & /*name*/, int position)
+void KoTabPalette::plug(TQWidget * w, const TQString & /*name*/, int position)
{
if (!w) return;
- w -> unsetFont(); // Use the parent font
+ w -> unsetFont(); // Use the tqparent font
m_page -> insertTab(w, w -> caption(), position);
show();
@@ -60,19 +60,19 @@ void KoTabPalette::resetFont()
m_page->unsetFont();
}
-void KoTabPalette::unplug(const QWidget * w)
+void KoTabPalette::unplug(const TQWidget * w)
{
- m_page->removePage(const_cast<QWidget *>(w));
+ m_page->removePage(const_cast<TQWidget *>(w));
if (m_page->count() == 0)
hide();
}
-void KoTabPalette::showPage(QWidget *w)
+void KoTabPalette::showPage(TQWidget *w)
{
m_page->showPage(w);
- if (m_hiddenPages.find(w) == m_hiddenPages.end()) return;
+ if (m_hiddenPages.tqfind(w) == m_hiddenPages.end()) return;
- int i = *m_hiddenPages.find(w);
+ int i = *m_hiddenPages.tqfind(w);
m_page->insertTab(w, w->caption(), i);
m_hiddenPages.erase(w);
show();
@@ -87,9 +87,9 @@ void KoTabPalette::makeVisible(bool v)
hide();
}
-int KoTabPalette::indexOf(QWidget *w)
+int KoTabPalette::indexOf(TQWidget *w)
{
- if (m_hiddenPages.find(w) != m_hiddenPages.end()) {
+ if (m_hiddenPages.tqfind(w) != m_hiddenPages.end()) {
int i = m_page->indexOf(w);
return -i;
}
@@ -98,14 +98,14 @@ int KoTabPalette::indexOf(QWidget *w)
}
}
-bool KoTabPalette::isHidden(QWidget * w)
+bool KoTabPalette::isHidden(TQWidget * w)
{
- return (m_hiddenPages.find(w) != m_hiddenPages.end());
+ return (m_hiddenPages.tqfind(w) != m_hiddenPages.end());
}
-void KoTabPalette::hidePage( QWidget *w)
+void KoTabPalette::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->removePage(w);
@@ -115,10 +115,10 @@ void KoTabPalette::hidePage( QWidget *w)
}
}
-void KoTabPalette::togglePageHidden(QWidget *w)
+void KoTabPalette::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->insertTab(w, w->caption(), i);
m_hiddenPages.erase(w);
show();