From b8cc513c5e875739c6790da651f6a3f47ed8f657 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 12 Jul 2023 11:39:51 +0900 Subject: Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3. Signed-off-by: Michele Calgaro --- src/simplemainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/simplemainwindow.cpp b/src/simplemainwindow.cpp index 6d74fb5d..c9ae3e08 100644 --- a/src/simplemainwindow.cpp +++ b/src/simplemainwindow.cpp @@ -588,7 +588,7 @@ void SimpleMainWindow::documentChangedState(const KURL &url, DocumentState state void SimpleMainWindow::closeTab() { // actionCollection()->action("file_close")->activate(); - if (TQT_TQOBJECT(const_cast(sender()))->isA(TQTOOLBUTTON_OBJECT_NAME_STRING) && TQT_TQOBJECT(const_cast(sender()))->parent()->isA("DTabWidget")) + if (TQT_TQOBJECT(const_cast(sender()))->isA("TQToolButton") && TQT_TQOBJECT(const_cast(sender()))->parent()->isA("DTabWidget")) { DTabWidget *tab = (DTabWidget*)TQT_TQWIDGET(const_cast(sender()))->parent(); if (tab && tab->currentPage()) -- cgit v1.2.1