Drop TQT_BASE_OBJECT* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/7/head
Michele Calgaro 1 year ago
parent 22521a5d98
commit 6afb076f2e
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