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:57:33 +0900
commit92234290cab04a0dc9e25b63707fa52e03d567f1 (patch)
treeb1df0a7d17104ad90ece4a42d03092f82219f7e1
parentbcffd86ea250ba078a939fc35234692ed8758fb3 (diff)
downloaddigikam-92234290.tar.gz
digikam-92234290.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 24f8d7e717318249dc3eb4ea5592e0bbf5014759)
-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 6d5e583..eabccf6 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 486841d..d0730b4 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 57dd502..f4b1069 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 f3b61f2..3b6bc4d 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 a29efca..37f2b24 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")
{