summaryrefslogtreecommitdiffstats
path: root/umbrello
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-12 11:34:47 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-12 11:34:47 +0900
commit8dac8f1a52cf3a2983af451aff69ca268cfbd6d7 (patch)
tree0e635c9ea1f00598fe892d77e026cbeb96eff8ef /umbrello
parent3523578cf170d9e98e2c0c5b2f3b6f7de4318a03 (diff)
downloadtdesdk-8dac8f1a52cf3a2983af451aff69ca268cfbd6d7.tar.gz
tdesdk-8dac8f1a52cf3a2983af451aff69ca268cfbd6d7.zip
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'umbrello')
-rw-r--r--umbrello/umbrello/codegenerators/rubycodegenerator.cpp4
-rw-r--r--umbrello/umbrello/codegenerators/rubywriter.cpp4
-rw-r--r--umbrello/umbrello/umllistview.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/umbrello/umbrello/codegenerators/rubycodegenerator.cpp b/umbrello/umbrello/codegenerators/rubycodegenerator.cpp
index 05fe6482..0b6eb488 100644
--- a/umbrello/umbrello/codegenerators/rubycodegenerator.cpp
+++ b/umbrello/umbrello/codegenerators/rubycodegenerator.cpp
@@ -93,9 +93,9 @@ TQString RubyCodeGenerator::cppToRubyType(const TQString &typeStr) {
type.replace("const ", "");
type.replace(TQRegExp("[*&\\s]"), "");
type.replace(TQRegExp("[<>]"), "_");
- type.replace(TQSTRINGLIST_OBJECT_NAME_STRING, "Array");
+ type.replace("TQStringList", "Array");
type.replace(TQRegExp("^string$"),"String");
- type.replace(TQSTRING_OBJECT_NAME_STRING, "String");
+ type.replace("TQString", "String");
type.replace("bool", "true|false");
type.replace(TQRegExp("^(uint|int|ushort|short|ulong|long)$"), "Integer");
type.replace(TQRegExp("^(float|double)$"), "Float");
diff --git a/umbrello/umbrello/codegenerators/rubywriter.cpp b/umbrello/umbrello/codegenerators/rubywriter.cpp
index 9eedaba7..90d55eab 100644
--- a/umbrello/umbrello/codegenerators/rubywriter.cpp
+++ b/umbrello/umbrello/codegenerators/rubywriter.cpp
@@ -149,8 +149,8 @@ TQString RubyWriter::cppToRubyType(const TQString &typeStr) {
type.replace("const ", "");
type.replace(TQRegExp("[*&\\s]"), "");
type.replace(TQRegExp("[<>]"), "_");
- type.replace(TQSTRINGLIST_OBJECT_NAME_STRING, "Array");
- type.replace(TQSTRING_OBJECT_NAME_STRING, "String");
+ type.replace("TQStringList", "Array");
+ type.replace("TQString", "String");
type.replace("bool", "true|false");
type.replace(TQRegExp("^(uint|int|ushort|short|ulong|long)$"), "Integer");
type.replace(TQRegExp("^(float|double)$"), "Float");
diff --git a/umbrello/umbrello/umllistview.cpp b/umbrello/umbrello/umllistview.cpp
index 8e0279fe..6069800d 100644
--- a/umbrello/umbrello/umllistview.cpp
+++ b/umbrello/umbrello/umllistview.cpp
@@ -142,7 +142,7 @@ UMLListView::UMLListView(TQWidget *parent, const char *name)
UMLListView::~UMLListView() {}
bool UMLListView::eventFilter(TQObject *o, TQEvent *e) {
- if (e->type() != TQEvent::MouseButtonPress || !o->isA(TQHEADER_OBJECT_NAME_STRING))
+ if (e->type() != TQEvent::MouseButtonPress || !o->isA("TQHeader"))
return TQListView::eventFilter(o, e);
TQMouseEvent *me = TQT_TQMOUSEEVENT(e);
if (me->button() == Qt::RightButton) {