summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-08-12 18:43:06 +0900
committerMichele Calgaro <[email protected]>2023-08-14 19:00:50 +0900
commitb065e535fad460086a17ff0a0fa13db3a0dd6774 (patch)
treecc5956a8e3759f457b531139d6d7b5ec80deb478
parentda8cf2c4b269dfb76e66cba765b995bd367c67e6 (diff)
downloadkmplayer-b065e535fad460086a17ff0a0fa13db3a0dd6774.tar.gz
kmplayer-b065e535fad460086a17ff0a0fa13db3a0dd6774.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit e524a45ee7cd6285ef3fa48ac8a1ac056293149a)
-rw-r--r--src/kmplayerapp.cpp3
-rw-r--r--src/kmplayerview.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/kmplayerapp.cpp b/src/kmplayerapp.cpp
index 1b61320..04fc980 100644
--- a/src/kmplayerapp.cpp
+++ b/src/kmplayerapp.cpp
@@ -1501,8 +1501,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotStatusMsg (const TQString &text) {
}
KDE_NO_EXPORT void KMPlayerApp::fullScreen () {
-// if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender ()))->metaObject ()->inherits ("TDEAction"))
- if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender ()))->inherits ("TDEAction"))
+ if (sender()->inherits("TDEAction"))
m_view->fullScreen();
#if KDE_IS_VERSION(3,1,90)
viewFullscreen->setChecked (m_view->isFullScreen ());
diff --git a/src/kmplayerview.cpp b/src/kmplayerview.cpp
index 3379c4b..46f4d8e 100644
--- a/src/kmplayerview.cpp
+++ b/src/kmplayerview.cpp
@@ -228,7 +228,7 @@ KDE_NO_EXPORT void View::init (TDEActionCollection * action_collection) {
KDE_NO_CDTOR_EXPORT View::~View () {
delete m_image;
- if (TQT_BASE_OBJECT(m_view_area->parent ()) != TQT_BASE_OBJECT(this))
+ if (m_view_area->parent() != this)
delete m_view_area;
}