diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-06 11:29:31 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-07 09:57:47 +0900 |
commit | 96f53316c2d7b72477825b53206998efc9bfd315 (patch) | |
tree | bccae9b5638d64deb8a0bdf749bf9a1597021fdb /styles/phase/phasestyle.cpp | |
parent | f0e925909a8e02822e322d87db8d4af43284d298 (diff) | |
download | tdeartwork-96f53316c2d7b72477825b53206998efc9bfd315.tar.gz tdeartwork-96f53316c2d7b72477825b53206998efc9bfd315.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'styles/phase/phasestyle.cpp')
-rw-r--r-- | styles/phase/phasestyle.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/styles/phase/phasestyle.cpp b/styles/phase/phasestyle.cpp index 6e75e953..1185048d 100644 --- a/styles/phase/phasestyle.cpp +++ b/styles/phase/phasestyle.cpp @@ -633,7 +633,7 @@ void PhaseStyle::drawPrimitive(PrimitiveElement element, widget =dynamic_cast<TQWidget*>(painter->device()); if (header) { - horiz = (header->orientation() ==Qt::Horizontal); + horiz = (header->orientation() ==TQt::Horizontal); } else { horiz = true; } @@ -1481,13 +1481,13 @@ void PhaseStyle::drawControl(TQ_ControlElement element, else if (mi->pixmap()) { // pixmap as label pixmap = *mi->pixmap(); if (pixmap.depth() == 1) - painter->setBackgroundMode(Qt::OpaqueMode); + painter->setBackgroundMode(TQt::OpaqueMode); dx = ((w - pixmap.width()) / 2) + ((w - pixmap.width()) % 2); painter->drawPixmap(x+dx, y+ITEMFRAME, pixmap); if (pixmap.depth() == 1) - painter->setBackgroundMode(Qt::TransparentMode); + painter->setBackgroundMode(TQt::TransparentMode); } } @@ -1874,7 +1874,7 @@ void PhaseStyle::drawComplexControl(TQ_ComplexControl control, if ((extension = ::tqqt_cast<TQWidget*>(btn->parent()))) { toolbar = ::tqqt_cast<TQToolBar*>(extension->parent()); if (toolbar) { - horiz = (toolbar->orientation() == Qt::Horizontal); + horiz = (toolbar->orientation() == TQt::Horizontal); if (normal) { // draw background drawPhaseGradient(painter, rect, group.background(), !horiz, 0, 0, toolbar->width()-3, @@ -2295,7 +2295,7 @@ bool PhaseStyle::objectEventHandler( const TQStyleControlElementData &ceData, Co TQRect prect = parent->rect(); toolbar = ::tqqt_cast<TQToolBar*>(parent); - horiz = (toolbar) ? (toolbar->orientation() == Qt::Horizontal) + horiz = (toolbar) ? (toolbar->orientation() == TQt::Horizontal) : (prect.height() < prect.width()); TQPainter painter(widget); if (flatToolbar(ceData, elementFlags, toolbar)) { @@ -2320,7 +2320,7 @@ bool PhaseStyle::objectEventHandler( const TQStyleControlElementData &ceData, Co else if (object && object->isWidgetType() && object->parent() && (toolbar = ::tqqt_cast<TQToolBar*>(object->parent()))) { if (0 == (widget = ::tqqt_cast<TQWidget*>(object))) return false; - horiz = (toolbar->orientation() == Qt::Horizontal); + horiz = (toolbar->orientation() == TQt::Horizontal); TQPainter painter(widget); ceData.rect.rect(&x, &y, &w, &h); // draw the extension |