diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kopalette/kotabpalette.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kopalette/kotabpalette.cc')
-rw-r--r-- | lib/kopalette/kotabpalette.cc | 42 |
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(); |