Promoting inside code.
-
If you want to write code, how about using your sub-class which is inherited from QLineEdit. This is lot better.
-
You write an new class and inherit from QLineEdit. You add the new functionality to new class or modify the existing functionality.
@class mylineedit : public QLineEdit {
}@
I'm confident you are aware of this.
-
What "promote" feature actually does is replacing the name of the original class with the promoted one, so if you want it in code the equivalent is find/replace. There's really not much more to it.