summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-08-08 12:12:19 +0900
committerMichele Calgaro <[email protected]>2023-08-08 17:42:12 +0900
commitbcffd86ea250ba078a939fc35234692ed8758fb3 (patch)
tree202f4ffec93f5cd86fc47802a70ddc51386ee105
parentfe8b4e8188e93ab87341d015364201e5f992ac9d (diff)
downloaddigikam-bcffd86ea250ba078a939fc35234692ed8758fb3.tar.gz
digikam-bcffd86ea250ba078a939fc35234692ed8758fb3.zip
Drop TQT_TQ*_OBJECT defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 9b20575304b1aead7bd9bda4bbb43b7bf55ec6bf)
-rw-r--r--digikam/digikam/albumiconviewfilter.cpp2
-rw-r--r--digikam/digikam/kdateedit.cpp2
-rw-r--r--digikam/libs/widgets/common/dcursortracker.cpp6
-rw-r--r--digikam/libs/widgets/common/statuszoombar.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/digikam/digikam/albumiconviewfilter.cpp b/digikam/digikam/albumiconviewfilter.cpp
index e45566be..6d14616f 100644
--- a/digikam/digikam/albumiconviewfilter.cpp
+++ b/digikam/digikam/albumiconviewfilter.cpp
@@ -191,7 +191,7 @@ bool AlbumIconViewFilter::eventFilter(TQObject *object, TQEvent *e)
if (e->type() == TQEvent::MouseButtonRelease)
{
TQMouseEvent* event = TQT_TQMOUSEEVENT(e);
- if ( TQT_TQRECT_OBJECT(widget->rect()).contains(event->pos()) && d->led->ledColor() != StatusLed::Gray)
+ if ( widget->rect().contains(event->pos()) && d->led->ledColor() != StatusLed::Gray)
{
// Reset all filters settings.
d->textFilter->setText(TQString());
diff --git a/digikam/digikam/kdateedit.cpp b/digikam/digikam/kdateedit.cpp
index 020f77dc..486841de 100644
--- a/digikam/digikam/kdateedit.cpp
+++ b/digikam/digikam/kdateedit.cpp
@@ -299,7 +299,7 @@ bool KDateEdit::eventFilter( TQObject *object, TQEvent *event )
case TQEvent::MouseButtonDblClick:
case TQEvent::MouseButtonPress: {
TQMouseEvent *mouseEvent = (TQMouseEvent*)event;
- if ( !TQT_TQRECT_OBJECT(mPopup->rect()).contains( mouseEvent->pos() ) ) {
+ if ( !mPopup->rect().contains( mouseEvent->pos() ) ) {
TQPoint globalPos = mPopup->mapToGlobal( mouseEvent->pos() );
if ( TQApplication::widgetAt( globalPos, true ) == this ) {
// The date picker is being closed by a click on the
diff --git a/digikam/libs/widgets/common/dcursortracker.cpp b/digikam/libs/widgets/common/dcursortracker.cpp
index 2e3ae53a..951439bf 100644
--- a/digikam/libs/widgets/common/dcursortracker.cpp
+++ b/digikam/libs/widgets/common/dcursortracker.cpp
@@ -65,8 +65,8 @@ bool DCursorTracker::eventFilter(TQObject *object, TQEvent *e)
case TQEvent::MouseMove:
{
TQMouseEvent *event = TQT_TQMOUSEEVENT(e);
- if (m_enable && (TQT_TQRECT_OBJECT(widget->rect()).contains(event->pos()) ||
- (event->stateAfter() & Qt::LeftButton)))
+ if (m_enable && (widget->rect().contains(event->pos()) ||
+ (event->stateAfter() & Qt::LeftButton)))
{
show();
TQPoint p = widget->mapToGlobal(TQPoint(widget->width()/2, 0));
@@ -82,7 +82,7 @@ bool DCursorTracker::eventFilter(TQObject *object, TQEvent *e)
case TQEvent::MouseButtonRelease:
{
TQMouseEvent* event = TQT_TQMOUSEEVENT(e);
- if ( !TQT_TQRECT_OBJECT(widget->rect()).contains(event->pos()) )
+ if ( !widget->rect().contains(event->pos()) )
{
hide();
}
diff --git a/digikam/libs/widgets/common/statuszoombar.cpp b/digikam/libs/widgets/common/statuszoombar.cpp
index 2bc4e06e..3fe5658a 100644
--- a/digikam/libs/widgets/common/statuszoombar.cpp
+++ b/digikam/libs/widgets/common/statuszoombar.cpp
@@ -56,7 +56,7 @@ TQSliderReverseWheel::~TQSliderReverseWheel()
void TQSliderReverseWheel::wheelEvent(TQWheelEvent * e)
{
- if ( e->orientation() != orientation() && !TQT_TQRECT_OBJECT(rect()).contains(e->pos()) )
+ if ( e->orientation() != orientation() && !rect().contains(e->pos()) )
return;
static float offset = 0;