diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-12 18:41:53 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-14 10:21:02 +0900 |
commit | 6afb076f2e560d1c79e66a234be383b5540fc8f7 (patch) | |
tree | 4f070be93fa56b80d24d71f6a1831dd0eeeaeeab /apps | |
parent | 22521a5d98abf03cf740ccdd940e682e76b529d7 (diff) | |
download | ktorrent-6afb076f2e560d1c79e66a234be383b5540fc8f7.tar.gz ktorrent-6afb076f2e560d1c79e66a234be383b5540fc8f7.zip |
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/ktorrent/newui/ddockwindow.cpp | 4 | ||||
-rw-r--r-- | apps/ktorrent/newui/dmainwindow.cpp | 2 |
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)) { |