diff options
Diffstat (limited to 'quanta/utility/toolbartabwidget.cpp')
-rw-r--r-- | quanta/utility/toolbartabwidget.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/quanta/utility/toolbartabwidget.cpp b/quanta/utility/toolbartabwidget.cpp index cd3ac37e..90602623 100644 --- a/quanta/utility/toolbartabwidget.cpp +++ b/quanta/utility/toolbartabwidget.cpp @@ -65,9 +65,9 @@ ToolbarTabWidget::ToolbarTabWidget(TQWidget * tqparent, const char * name, WFlag void ToolbarTabWidget::insertTab(TQWidget *child, const TQString &label, const TQString &id) { - if (child->inherits("KToolBar") && child->tqparentWidget()) + if (child->inherits("KToolBar") && child->parentWidget()) { - TQTabWidget::insertTab(child->tqparentWidget(), label); + TQTabWidget::insertTab(child->parentWidget(), label); toolbarList.insert(id, child); } } @@ -78,7 +78,7 @@ TQWidget* ToolbarTabWidget::page(int index) for (TQMap<TQString, TQWidget*>::Iterator it = toolbarList.begin(); it != toolbarList.end(); ++it) { - if (it.data()->tqparentWidget() == w) + if (it.data()->parentWidget() == w) { w = *it; break; @@ -92,7 +92,7 @@ TQString ToolbarTabWidget::id(TQWidget *w) const TQString idStr; for (TQMap<TQString, TQWidget*>::ConstIterator it = toolbarList.constBegin(); it != toolbarList.constEnd(); ++it) { - if (it.data()->tqparentWidget() == w) + if (it.data()->parentWidget() == w) { idStr = it.key(); break; @@ -107,7 +107,7 @@ TQString ToolbarTabWidget::id(int index) const TQString idStr; for (TQMap<TQString, TQWidget*>::ConstIterator it = toolbarList.constBegin(); it != toolbarList.constEnd(); ++it) { - if (it.data()->tqparentWidget() == w) + if (it.data()->parentWidget() == w) { idStr = it.key(); break; @@ -124,7 +124,7 @@ TQWidget* ToolbarTabWidget::page(const TQString& id) void ToolbarTabWidget::removePage(TQWidget * w) { - TQWidget *tqparent = w->tqparentWidget(); + TQWidget *tqparent = w->parentWidget(); if (w->inherits("KToolBar") && tqparent) { TQTabWidget::removePage(tqparent); @@ -179,7 +179,7 @@ void ToolbarTabWidget::mousePressEvent ( TQMouseEvent * e ) pageW = currentPage(); for (TQMap<TQString, TQWidget*>::Iterator it = toolbarList.begin(); it != toolbarList.end(); ++it) { - if (it.data()->tqparentWidget() == pageW) + if (it.data()->parentWidget() == pageW) { tabUnderMouse = it.key(); break; @@ -227,7 +227,7 @@ QuantaToolBar::QuantaToolBar(TQWidget *tqparent, const char *name, bool honor_st :KToolBar (tqparent, name=0, honor_style, readConfig) { m_popupMenu = new KPopupMenu(this); - m_toolbarTab = dynamic_cast<ToolbarTabWidget*>(tqparent->tqparentWidget()); + m_toolbarTab = dynamic_cast<ToolbarTabWidget*>(tqparent->parentWidget()); currentActionName = ""; m_iconTextMenu = new KPopupMenu(this); m_iconTextMenu->setCheckable(true); @@ -311,7 +311,7 @@ void QuantaToolBar::mousePressEvent(TQMouseEvent *e) for (uint i = 0; i < tqchildrenList->count(); i++) { KToolBarButton *w = static_cast<KToolBarButton*>(TQT_TQWIDGET(tqchildrenList->at(i))); - TQPoint p1 = w->tqparentWidget()->mapToGlobal(w->pos()); + TQPoint p1 = w->parentWidget()->mapToGlobal(w->pos()); TQPoint p2 = TQPoint(p1.x() + w->width(), p1.y()+w->height()); if (TQRect(p1, p2).tqcontains(p)) { |