summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")
{