summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-12 18:41:12 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-15 20:26:14 +0900
commit24f8d7e717318249dc3eb4ea5592e0bbf5014759 (patch)
treeda7d987c27a67ffd7a9f9908bf7f478cafd924d9
parent09a41f75b02825bba28f5629d6fce68741acefff (diff)
downloaddigikam-24f8d7e717318249dc3eb4ea5592e0bbf5014759.tar.gz
digikam-24f8d7e717318249dc3eb4ea5592e0bbf5014759.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--digikam/digikam/digikamapp.cpp2
-rw-r--r--digikam/digikam/kdateedit.cpp2
-rw-r--r--digikam/libs/widgets/common/sidebar.cpp2
-rw-r--r--digikam/showfoto/showfoto.cpp2
-rw-r--r--digikam/utilities/imageeditor/tools/imageresize.cpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/digikam/digikam/digikamapp.cpp b/digikam/digikam/digikamapp.cpp
index 6d5e5837..eabccf60 100644
--- a/digikam/digikam/digikamapp.cpp
+++ b/digikam/digikam/digikamapp.cpp
@@ -1505,7 +1505,7 @@ void DigikamApp::slotDownloadImages()
void DigikamApp::slotCameraConnect()
{
- CameraType* ctype = d->cameraList->find(TQString::fromUtf8(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name()));
+ CameraType* ctype = d->cameraList->find(TQString::fromUtf8(TQT_TQOBJECT(sender())->name()));
if (ctype)
{
diff --git a/digikam/digikam/kdateedit.cpp b/digikam/digikam/kdateedit.cpp
index 486841de..d0730b4e 100644
--- a/digikam/digikam/kdateedit.cpp
+++ b/digikam/digikam/kdateedit.cpp
@@ -261,7 +261,7 @@ TQDate KDateEdit::parseDate( bool *replaced ) const
bool KDateEdit::eventFilter( TQObject *object, TQEvent *event )
{
- if ( TQT_BASE_OBJECT(object) == TQT_BASE_OBJECT(lineEdit()) ) {
+ if ( object == lineEdit() ) {
// We only process the focus out event if the text has changed
// since we got focus
if ( (event->type() == TQEvent::FocusOut) && mTextChanged ) {
diff --git a/digikam/libs/widgets/common/sidebar.cpp b/digikam/libs/widgets/common/sidebar.cpp
index 57dd5023..f4b10696 100644
--- a/digikam/libs/widgets/common/sidebar.cpp
+++ b/digikam/libs/widgets/common/sidebar.cpp
@@ -312,7 +312,7 @@ bool Sidebar::eventFilter(TQObject *obj, TQEvent *ev)
for (TQPtrListIterator<KMultiTabBarTab> it(*pTabs); it.current(); ++it)
{
- if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(*it) )
+ if ( obj == *it )
{
if ( ev->type() == TQEvent::DragEnter)
{
diff --git a/digikam/showfoto/showfoto.cpp b/digikam/showfoto/showfoto.cpp
index f3b61f25..3b6bc4d6 100644
--- a/digikam/showfoto/showfoto.cpp
+++ b/digikam/showfoto/showfoto.cpp
@@ -674,7 +674,7 @@ void ShowFoto::slotChangeBCG()
{
TQString name;
if (sender())
- name = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name();
+ name = TQT_TQOBJECT(sender())->name();
if (name == "gamma_plus")
{
diff --git a/digikam/utilities/imageeditor/tools/imageresize.cpp b/digikam/utilities/imageeditor/tools/imageresize.cpp
index a29efca7..37f2b240 100644
--- a/digikam/utilities/imageeditor/tools/imageresize.cpp
+++ b/digikam/utilities/imageeditor/tools/imageresize.cpp
@@ -403,7 +403,7 @@ void ImageResize::slotValuesChanged()
d->wpInput->blockSignals(true);
d->hpInput->blockSignals(true);
- TQString s(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name());
+ TQString s(TQT_TQOBJECT(sender())->name());
if (s == "d->wInput")
{