summaryrefslogtreecommitdiffstats
path: root/puic/form.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-10 10:12:24 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-11 09:56:53 +0900
commit947bc2dba5274c3a87dd0f3dc29972b5a7fde80f (patch)
tree8dece4fa4ebb9fa43f8660095f8084ea580ee2eb /puic/form.cpp
parentbb06ec358695c7621148fd6cf0c2af94fd29f799 (diff)
downloadlibtqt-perl-947bc2dba5274c3a87dd0f3dc29972b5a7fde80f.tar.gz
libtqt-perl-947bc2dba5274c3a87dd0f3dc29972b5a7fde80f.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 301b5380792b7a368488aa485d3bdb3df81e0808)
Diffstat (limited to 'puic/form.cpp')
-rw-r--r--puic/form.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/puic/form.cpp b/puic/form.cpp
index e1e74cc..473eda3 100644
--- a/puic/form.cpp
+++ b/puic/form.cpp
@@ -922,7 +922,7 @@ void Uic::createFormImpl( const TQDomElement &e )
receiver = "this";
out << indent << "TQt::Object::connect(" << sender
- << ", TQT_SIGNAL \"" << signal << "\", "<< receiver << ", TQT_SLOT \"" << slot << "\");" << endl;
+ << ", TQ_SIGNAL \"" << signal << "\", "<< receiver << ", TQ_SLOT \"" << slot << "\");" << endl;
}
} else if ( n.tagName() == "tabstops" ) {
// setup tab order
@@ -1166,7 +1166,7 @@ void Uic::createFormImpl( const TQDomElement &e )
if ( *it == "init()" || *it == "destroy()" )
continue;
int astart = (*it).find('(');
- TQRegExp r( "(\\nsub\\s+" + (*it).left(astart) + "(?:\\s*#\\s*SLOT:[^\\n]+|[ \t]+)?\\n\\{)(\\s*)(\\}\\n)" );
+ TQRegExp r( "(\\nsub\\s+" + (*it).left(astart) + "(?:\\s*#\\s*TQ_SLOT:[^\\n]+|[ \t]+)?\\n\\{)(\\s*)(\\}\\n)" );
r.setMinimal( true );
uiPmInclude.replace( r, "\\1\n" +
indent + "print \"" + nameOfClass + "->" + (*it) +