summaryrefslogtreecommitdiffstats
path: root/languages/cpp/cppnewclassdlg.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-07-12 11:39:51 +0900
committerMichele Calgaro <[email protected]>2023-07-13 20:55:05 +0900
commit14334c54280493270f175de52c28170cf14f50a3 (patch)
tree776cb15e2cb1c8171dd8bc56a204eb3b57653056 /languages/cpp/cppnewclassdlg.cpp
parentd45e5727ef2f1eb5abeb42b6e97cf0911703b001 (diff)
downloadtdevelop-14334c54280493270f175de52c28170cf14f50a3.tar.gz
tdevelop-14334c54280493270f175de52c28170cf14f50a3.zip
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit b8cc513c5e875739c6790da651f6a3f47ed8f657)
Diffstat (limited to 'languages/cpp/cppnewclassdlg.cpp')
-rw-r--r--languages/cpp/cppnewclassdlg.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/languages/cpp/cppnewclassdlg.cpp b/languages/cpp/cppnewclassdlg.cpp
index dda53df7..e0655d99 100644
--- a/languages/cpp/cppnewclassdlg.cpp
+++ b/languages/cpp/cppnewclassdlg.cpp
@@ -374,7 +374,7 @@ void CppNewClassDialog::checkTQWidgetInheritance( int val )
if ( baseclasses_view->childCount() == 0 )
{
addBaseClass();
- basename_edit->setText( TQWIDGET_OBJECT_NAME_STRING );
+ basename_edit->setText( "TQWidget" );
}
/* constructors_cpp_edit->append(classname_edit->text() + "::" + classname_edit->text() +
"(TQWidget *parent, const char *name):\n TQWidget(parent, name)\n{\n}\n");
@@ -396,7 +396,7 @@ void CppNewClassDialog::qobject_box_stateChanged( int val )
if ( baseclasses_view->childCount() == 0 )
{
addBaseClass();
- basename_edit->setText( TQOBJECT_OBJECT_NAME_STRING );
+ basename_edit->setText( "TQObject" );
}
@@ -1437,7 +1437,7 @@ void CppNewClassDialog::ClassGenerator::common_text()
headeronly = dlg.headeronly_box->isChecked();
if ( ( dlg.baseclasses_view->childCount() == 0 ) && childClass )
- new TQListViewItem( dlg.baseclasses_view, TQWIDGET_OBJECT_NAME_STRING, "public" );
+ new TQListViewItem( dlg.baseclasses_view, "TQWidget", "public" );
if ( objc && ( dlg.baseclasses_view->childCount() == 0 ) )
new TQListViewItem( dlg.baseclasses_view, "NSObject", "public" );
@@ -1962,7 +1962,7 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
{
if ( !it.current() ->text( 0 ).isEmpty() )
if ( !it.current() ->text( 3 ).isEmpty() )
- // if ((!childClass) || (it.current()->text(0) != TQWIDGET_OBJECT_NAME_STRING))
+ // if ((!childClass) || (it.current()->text(0) != "TQWidget"))
includeBaseHeader += ( includeBaseHeader.isEmpty() ? TQString( "" ) : TQString( "\n" ) ) + TQString::fromLatin1( "#include " ) +
( it.current() ->text( 2 ).toInt() == 0 ? TQString( "<" ) : TQString( "\"" ) )
+ it.current() ->text( 3 )