From ec4cfb44347fe2148d2896ea7d85b811bac82577 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 8 Aug 2023 12:20:31 +0900 Subject: [PATCH] Drop TQT_TQ*_OBJECT defines Signed-off-by: Michele Calgaro --- styles/phase/phasestyle.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/styles/phase/phasestyle.cpp b/styles/phase/phasestyle.cpp index 4379e6ac..0e713362 100644 --- a/styles/phase/phasestyle.cpp +++ b/styles/phase/phasestyle.cpp @@ -2291,7 +2291,7 @@ bool PhaseStyle::objectEventHandler( const TQStyleControlElementData &ceData, Co parent = ::tqqt_cast(parent->parent()); } if (!parent) return false; - TQT_TQRECT_OBJECT(ceData.rect).rect(&x, &y, &w, &h); + ceData.rect.rect(&x, &y, &w, &h); TQRect prect = parent->rect(); toolbar = ::tqqt_cast(parent); @@ -2322,7 +2322,7 @@ bool PhaseStyle::objectEventHandler( const TQStyleControlElementData &ceData, Co if (0 == (widget = ::tqqt_cast(object))) return false; horiz = (toolbar->orientation() == Qt::Horizontal); TQPainter painter(widget); - TQT_TQRECT_OBJECT(ceData.rect).rect(&x, &y, &w, &h); + ceData.rect.rect(&x, &y, &w, &h); // draw the extension drawPhaseGradient(&painter, ceData.rect, toolbar->colorGroup().background(), @@ -2356,7 +2356,7 @@ bool PhaseStyle::objectEventHandler( const TQStyleControlElementData &ceData, Co case TQFrame::VLine: { // NOTE: assuming lines have no content TQPainter painter(frame); - TQT_TQRECT_OBJECT(frame->rect()).rect(&x, &y, &w, &h); + frame->rect().rect(&x, &y, &w, &h); painter.setPen(frame->colorGroup().dark()); if (shape == TQFrame::HLine) { painter.drawLine(0, h/2, w, h/2);