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:58:54 +0900 |
| commit | 185ed081e216488c0e5dc3e64219cbaac6a5b471 (patch) | |
| tree | 959c25b171b9eb8783ef7c1159eee67b21ca7e17 /styles/phase/phasestyle.cpp | |
| parent | b371ec89eb49b1a15fb97fef46c0ab1e88af9b01 (diff) | |
| download | tdeartwork-185ed081e216488c0e5dc3e64219cbaac6a5b471.tar.gz tdeartwork-185ed081e216488c0e5dc3e64219cbaac6a5b471.zip | |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 96f53316c2d7b72477825b53206998efc9bfd315)
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 |
