summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-08-12 18:41:53 +0900
committerMichele Calgaro <[email protected]>2023-08-14 16:29:32 +0900
commit0c7012a798d0cae71056bf066ec863318134f25f (patch)
treeb6e75a8ab417bd4d052273885b1d740bcb00cce3
parent694b657302a73bcdc1c98d928df81a62cee94d1d (diff)
downloadktorrent-0c7012a798d0cae71056bf066ec863318134f25f.tar.gz
ktorrent-0c7012a798d0cae71056bf066ec863318134f25f.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 6afb076f2e560d1c79e66a234be383b5540fc8f7)
-rw-r--r--apps/ktorrent/newui/ddockwindow.cpp4
-rw-r--r--apps/ktorrent/newui/dmainwindow.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/ktorrent/newui/ddockwindow.cpp b/apps/ktorrent/newui/ddockwindow.cpp
index 7234038..dd875b4 100644
--- a/apps/ktorrent/newui/ddockwindow.cpp
+++ b/apps/ktorrent/newui/ddockwindow.cpp
@@ -294,7 +294,7 @@ void DDockWindow::selectWidget(Ideal::Button *button)
void DDockWindow::selectWidget()
{
- selectWidget((Ideal::Button*)TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
+ selectWidget((Ideal::Button*)sender());
}
void DDockWindow::hideWidget(TQWidget *widget)
@@ -375,7 +375,7 @@ void DDockWindow::selectPrevWidget()
void DDockWindow::contextMenu(TQPopupMenu * menu)
{
- m_lastContextMenuButton = static_cast<Ideal::Button*>( TQT_TQWIDGET(const_cast<TQT_BASE_OBJECT_NAME*>(sender())) );
+ m_lastContextMenuButton = static_cast<Ideal::Button*>( const_cast<TQObject*>( sender() ) );
menu->insertSeparator();
diff --git a/apps/ktorrent/newui/dmainwindow.cpp b/apps/ktorrent/newui/dmainwindow.cpp
index 8f946b2..dd90345 100644
--- a/apps/ktorrent/newui/dmainwindow.cpp
+++ b/apps/ktorrent/newui/dmainwindow.cpp
@@ -306,7 +306,7 @@ DDockWindow::Position DMainWindow::dockWidgetPosition(TQWidget *view)
void DMainWindow::widgetDestroyed()
{
- TQWidget *w = TQT_TQWIDGET(const_cast<TQT_BASE_OBJECT_NAME*>(sender()));
+ TQWidget *w = TQT_TQWIDGET(const_cast<TQObject*>(sender()));
if (m_docks.contains(w))
{