diff options
Diffstat (limited to 'src/modules/objects/class_groupbox.cpp')
-rw-r--r-- | src/modules/objects/class_groupbox.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/modules/objects/class_groupbox.cpp b/src/modules/objects/class_groupbox.cpp index 023d1e25..f741f704 100644 --- a/src/modules/objects/class_groupbox.cpp +++ b/src/modules/objects/class_groupbox.cpp @@ -119,23 +119,23 @@ const int align_cod[] = { %inputpass=$new(lineedit,%gb)[br] %inputpass->$setechomode("password")[br] [br] - #now lets' tqlayouting the groupbox's element's.[br] - %tqlayoutgb=$new(tqlayout,%gb)[br] - %tqlayoutgb->$setmargin(20)[br] - %tqlayoutgb->$addwidget(%labeluser,0,0)[br] - %tqlayoutgb->$addwidget(%labelpass,1,0)[br] - %tqlayoutgb->$addwidget(%inputuser,0,1)[br] - %tqlayoutgb->$addwidget(%inputpass,1,1)[br] + #now lets' layouting the groupbox's element's.[br] + %layoutgb=$new(tqlayout,%gb)[br] + %layoutgb->$setmargin(20)[br] + %layoutgb->$addwidget(%labeluser,0,0)[br] + %layoutgb->$addwidget(%labelpass,1,0)[br] + %layoutgb->$addwidget(%inputuser,0,1)[br] + %layoutgb->$addwidget(%inputpass,1,1)[br] [br] # now we create a fake widget and managing the two buttons tqlayout.[br] %fakewidget=$new(widget,%widget)[br] - %tqlayoutbtn=$new(tqlayout,%fakewidget)[br] + %layoutbtn=$new(tqlayout,%fakewidget)[br] %btnok=$new(button,%fakewidget)[br] %btnok->$settext("OK")[br] %btncancel=$new(button,%fakewidget)[br] %btncancel->$settext("Cancel")[br] - %tqlayoutbtn->$addwidget(%btnok,0,0)[br] - %tqlayoutbtn->$addwidget(%btncancel,0,1)[br] + %layoutbtn->$addwidget(%btnok,0,0)[br] + %layoutbtn->$addwidget(%btncancel,0,1)[br] [br] #And finally we create a main tqlayout with the groupbox (and its "tqchildren")[br] #and fakewiget (with its buttons tqchildren). @@ -185,11 +185,11 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_groupbox) bool KviKvsObject_groupbox::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams) { #ifdef COMPILE_USE_QT4 - KviTalGroupBox *groupbox=new KviTalGroupBox(name(),tqparentScriptWidget()); + KviTalGroupBox *groupbox=new KviTalGroupBox(name(),parentScriptWidget()); groupbox->setObjectName(name()); setObject(groupbox,true); #else - setObject(TQT_TQOBJECT(new KviTalGroupBox(name(),tqparentScriptWidget())), true); + setObject(TQT_TQOBJECT(new KviTalGroupBox(name(),parentScriptWidget())), true); #endif return true; } |