Drop TQT_BASE_OBJECT* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 6afb076f2e)
r14.1.x
Michele Calgaro 1 year ago
parent 694b657302
commit 0c7012a798
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -294,7 +294,7 @@ void DDockWindow::selectWidget(Ideal::Button *button)
void DDockWindow::selectWidget() void DDockWindow::selectWidget()
{ {
selectWidget((Ideal::Button*)TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))); selectWidget((Ideal::Button*)sender());
} }
void DDockWindow::hideWidget(TQWidget *widget) void DDockWindow::hideWidget(TQWidget *widget)
@ -375,7 +375,7 @@ void DDockWindow::selectPrevWidget()
void DDockWindow::contextMenu(TQPopupMenu * menu) 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(); menu->insertSeparator();

@ -306,7 +306,7 @@ DDockWindow::Position DMainWindow::dockWidgetPosition(TQWidget *view)
void DMainWindow::widgetDestroyed() 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)) if (m_docks.contains(w))
{ {

Loading…
Cancel
Save