summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-08-12 18:41:53 +0900
committerMichele Calgaro <[email protected]>2023-08-14 10:21:02 +0900
commit6afb076f2e560d1c79e66a234be383b5540fc8f7 (patch)
tree4f070be93fa56b80d24d71f6a1831dd0eeeaeeab
parent22521a5d98abf03cf740ccdd940e682e76b529d7 (diff)
downloadktorrent-6afb076f2e560d1c79e66a234be383b5540fc8f7.tar.gz
ktorrent-6afb076f2e560d1c79e66a234be383b5540fc8f7.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <[email protected]>
-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))
{