Drop TQT_TQ*_OBJECT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit ca88704c3e)
r14.1.x
Michele Calgaro 1 year ago
parent c9fc87afcc
commit 64574118b7
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -101,7 +101,7 @@ void KisToolText::buttonRelease(KisButtonReleaseEvent *e)
}
TQFontMetrics metrics(m_font);
TQRect boundingRect = TQT_TQRECT_OBJECT(metrics.boundingRect(text)).normalize();
TQRect boundingRect = metrics.boundingRect(text).normalize();
int xB = - boundingRect.x();
int yB = - boundingRect.y();

@ -403,7 +403,7 @@ void KoBirdEyePanel::handleMouseMove(TQPoint p)
break;
default:
case DragHandleNone:
if (TQT_TQRECT_OBJECT(m_thumbnail.rect()).contains(p)) {
if (m_thumbnail.rect().contains(p)) {
cursor = TQt::PointingHandCursor;
} else {
cursor = TQt::arrowCursor;
@ -462,7 +462,7 @@ void KoBirdEyePanel::handleMousePress(TQPoint p)
enumDragHandle dragHandle = dragHandleAt(p);
if (dragHandle == DragHandleNone) {
if (TQT_TQRECT_OBJECT(m_thumbnail.rect()).contains(p)) {
if (m_thumbnail.rect().contains(p)) {
// Snap visible area centre to p and begin a centre drag.

@ -1613,7 +1613,7 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter,
} else {
// just store a rectangle if NOT in 3-D bar mode
region = new KDChartDataRegion( dataset, value, chart,
TQT_TQRECT_OBJECT(pointArrayList->first().boundingRect()) );
pointArrayList->first().boundingRect() );
delete pointArrayList;
}
/*tqDebug("KDChartDataRegion stored! x: %i y: %i w: %i h: %i",

@ -235,7 +235,7 @@ bool KoGuides::mouseReleaseEvent( TQMouseEvent *e )
if ( m_guideLines[GL_SELECTED].count() == 1 )
{
int x1, y1, x2, y2;
TQT_TQRECT_OBJECT(m_view->canvas()->rect()).coords( &x1, &y1, &x2, &y2 );
m_view->canvas()->rect().coords( &x1, &y1, &x2, &y2 );
TQPoint gp( m_view->canvas()->mapFromGlobal( e->globalPos() ) );
if ( m_guideLines[GL_SELECTED].first()->orientation == Qt::Vertical )
{

@ -239,7 +239,7 @@ void GroupContainer::setContents( TQWidget* contents )
bool GroupContainer::event( TQEvent * e ) {
if (e->type()==TQEvent::MouseButtonPress) {
TQMouseEvent* me = TQT_TQMOUSEEVENT(e);
if (me->button() == Qt::LeftButton && d->contents && TQT_TQRECT_OBJECT(d->groupWidget->rect()).contains(me->pos())) {
if (me->button() == Qt::LeftButton && d->contents && d->groupWidget->rect().contains(me->pos())) {
d->groupWidget->setOpen(!d->groupWidget->isOpen());
if (d->groupWidget->isOpen())
d->contents->show();

Loading…
Cancel
Save