ShapeShiftme
18th May 2011, 14:38
Ok i dont know how to best put this but this is what i want to do.
I would like to write a bunch of connect singnals and insert them into a file aor something of the sort then reference them in my code again.
For example i have multiple functions that create the following connects
connect(this, SIGNAL(setwebview(QString)), child, SLOT(reloadme(QString)));
connect(this, SIGNAL(backpressed()), child, SLOT(backispressed()));
connect(child, SIGNAL(openInvoice(QString,QString)),this, SLOT(openInvoice(QString,QString))); connect(child, SIGNAL(setBackStack(QString)), this, SLOT(setstack(QString)));
Now lets say i would like to do a change in that code i currently have to change the connects in about 45 places. So what im hoping to di is write the connects someplace once then whenever i need the code i can just refernce the file of sorts
in coldfusion i would use
<cfinclude template="code.cfm">
Or something of that sort.
So is it possible.
Regards
I would like to write a bunch of connect singnals and insert them into a file aor something of the sort then reference them in my code again.
For example i have multiple functions that create the following connects
connect(this, SIGNAL(setwebview(QString)), child, SLOT(reloadme(QString)));
connect(this, SIGNAL(backpressed()), child, SLOT(backispressed()));
connect(child, SIGNAL(openInvoice(QString,QString)),this, SLOT(openInvoice(QString,QString))); connect(child, SIGNAL(setBackStack(QString)), this, SLOT(setstack(QString)));
Now lets say i would like to do a change in that code i currently have to change the connects in about 45 places. So what im hoping to di is write the connects someplace once then whenever i need the code i can just refernce the file of sorts
in coldfusion i would use
<cfinclude template="code.cfm">
Or something of that sort.
So is it possible.
Regards