diff options
Diffstat (limited to 'kicker/kicker/core/containerarealayout.cpp')
-rw-r--r-- | kicker/kicker/core/containerarealayout.cpp | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/kicker/kicker/core/containerarealayout.cpp b/kicker/kicker/core/containerarealayout.cpp index 4ae63077e..feed4b59f 100644 --- a/kicker/kicker/core/containerarealayout.cpp +++ b/kicker/kicker/core/containerarealayout.cpp @@ -58,11 +58,11 @@ class ContainerAreaLayoutIterator : public QGLayoutIterator ContainerAreaLayout::ItemList::iterator b = m_list->at(m_idx); if (b != m_list->end()) { - ContainerAreaLayoutItem* layoutItem = *b; - item = layoutItem->item; - layoutItem->item = 0; + ContainerAreaLayoutItem* tqlayoutItem = *b; + item = tqlayoutItem->item; + tqlayoutItem->item = 0; m_list->erase(b); - delete layoutItem; + delete tqlayoutItem; } return item; } @@ -82,7 +82,7 @@ int ContainerAreaLayoutItem::heightForWidth(int w) const } else { - return item->sizeHint().height(); + return item->tqsizeHint().height(); } } @@ -95,7 +95,7 @@ int ContainerAreaLayoutItem::widthForHeight(int h) const } else { - return item->sizeHint().width(); + return item->tqsizeHint().width(); } } @@ -125,17 +125,17 @@ void ContainerAreaLayoutItem::setFreeSpaceRatio(double ratio) Qt::Orientation ContainerAreaLayoutItem::orientation() const { - return m_layout->orientation(); + return m_tqlayout->orientation(); } -TQRect ContainerAreaLayoutItem::geometryR() const +TQRect ContainerAreaLayoutItem::tqgeometryR() const { - return m_layout->transform(geometry()); + return m_tqlayout->transform(tqgeometry()); } void ContainerAreaLayoutItem::setGeometryR(const TQRect& r) { - setGeometry(m_layout->transform(r)); + setGeometry(m_tqlayout->transform(r)); } int ContainerAreaLayoutItem::widthForHeightR(int h) const @@ -154,11 +154,11 @@ int ContainerAreaLayoutItem::widthR() const { if (orientation() == Horizontal) { - return geometry().width(); + return tqgeometry().width(); } else { - return geometry().height(); + return tqgeometry().height(); } } @@ -166,11 +166,11 @@ int ContainerAreaLayoutItem::heightR() const { if (orientation() == Horizontal) { - return geometry().height(); + return tqgeometry().height(); } else { - return geometry().width(); + return tqgeometry().width(); } } @@ -179,13 +179,13 @@ int ContainerAreaLayoutItem::leftR() const if (orientation() == Horizontal) { if (TQApplication::reverseLayout()) - return m_layout->geometry().right() - geometry().right(); + return m_tqlayout->tqgeometry().right() - tqgeometry().right(); else - return geometry().left(); + return tqgeometry().left(); } else { - return geometry().top(); + return tqgeometry().top(); } } @@ -194,13 +194,13 @@ int ContainerAreaLayoutItem::rightR() const if (orientation() == Horizontal) { if (TQApplication::reverseLayout()) - return m_layout->geometry().right() - geometry().left(); + return m_tqlayout->tqgeometry().right() - tqgeometry().left(); else - return geometry().right(); + return tqgeometry().right(); } else { - return geometry().bottom(); + return tqgeometry().bottom(); } } @@ -311,10 +311,10 @@ void ContainerAreaLayout::insertIntoFreeSpace(TQWidget* widget, TQPoint insertio } } - TQRect geom = item->geometryR(); + TQRect geom = item->tqgeometryR(); geom.moveLeft(insPos); item->setGeometryR(geom); - widget->setGeometry(transform(geom)); // widget isn't shown, layout not active yet + widget->setGeometry(transform(geom)); // widget isn't shown, tqlayout not active yet if (current) { @@ -384,7 +384,7 @@ TQWidget* ContainerAreaLayout::widgetAt(int index) const return m_items[index]->item->widget(); } -TQSize ContainerAreaLayout::sizeHint() const +TQSize ContainerAreaLayout::tqsizeHint() const { const int size = KickerLib::sizeValue(KPanelExtension::SizeSmall); @@ -398,7 +398,7 @@ TQSize ContainerAreaLayout::sizeHint() const } } -TQSize ContainerAreaLayout::minimumSize() const +TQSize ContainerAreaLayout::tqminimumSize() const { const int size = KickerLib::sizeValue(KPanelExtension::SizeTiny); @@ -566,7 +566,7 @@ void ContainerAreaLayout::moveContainerSwitch(TQWidget* container, int distance) break; // Move 'next' to the other side of 'moving'. - TQRect geom = next->geometryR(); + TQRect geom = next->tqgeometryR(); if (forward) geom.moveLeft(geom.left() - moving->widthR()); else @@ -630,7 +630,7 @@ void ContainerAreaLayout::moveContainerSwitch(TQWidget* container, int distance) } // Move the container to its new position and prevent it from moving outside the panel. - TQRect geom = moving->geometryR(); + TQRect geom = moving->tqgeometryR(); distance = kClamp(newPos, 0, widthR() - moving->widthR()); geom.moveLeft(distance); moving->setGeometryR(geom); @@ -645,7 +645,7 @@ void ContainerAreaLayout::moveContainerSwitch(TQWidget* container, int distance) if(AppletContainer* applet = dynamic_cast<AppletContainer*>(container)) if( applet->info().desktopFile() == "menuapplet.desktop" ) { - TQRect geom = (*it)->geometryR(); + TQRect geom = (*it)->tqgeometryR(); if( prev != m_items.constEnd()) geom.moveLeft( (*prev)->rightR() + 1 ); else @@ -662,7 +662,7 @@ int ContainerAreaLayout::moveContainerPush(TQWidget* a, int distance) const bool horizontal = orientation() == Horizontal; const bool reverseLayout = TQApplication::reverseLayout(); - // Get the iterator 'it' pointing to the layoutitem representing 'a'. + // Get the iterator 'it' pointing to the tqlayoutitem representing 'a'. ItemList::const_iterator it = m_items.constBegin(); while (it != m_items.constEnd() && (*it)->item->widget() != a) { @@ -721,7 +721,7 @@ int ContainerAreaLayout::moveContainerPushRecursive(ItemList::const_iterator it, moved = forward ? kMin(distance, available) : kMax(distance, available); - TQRect geom = cur->geometryR(); + TQRect geom = cur->tqgeometryR(); geom.moveLeft(geom.left() + moved); cur->setGeometryR(geom); @@ -735,7 +735,7 @@ TQRect ContainerAreaLayout::transform(const TQRect& r) const if (TQApplication::reverseLayout()) { TQRect t = r; - t.moveLeft(geometry().right() - r.right()); + t.moveLeft(tqgeometry().right() - r.right()); return t; } else @@ -765,11 +765,11 @@ int ContainerAreaLayout::widthR() const { if (orientation() == Horizontal) { - return geometry().width(); + return tqgeometry().width(); } else { - return geometry().height(); + return tqgeometry().height(); } } @@ -777,27 +777,27 @@ int ContainerAreaLayout::heightR() const { if (orientation() == Horizontal) { - return geometry().height(); + return tqgeometry().height(); } else { - return geometry().width(); + return tqgeometry().width(); } } int ContainerAreaLayout::leftR() const { if (orientation() == Horizontal) - return geometry().left(); + return tqgeometry().left(); else - return geometry().top(); + return tqgeometry().top(); } int ContainerAreaLayout::rightR() const { if (orientation() == Horizontal) - return geometry().right(); + return tqgeometry().right(); else - return geometry().bottom(); + return tqgeometry().bottom(); } |