diff options
Diffstat (limited to 'src/modules/objects/class_tabwidget.cpp')
-rw-r--r-- | src/modules/objects/class_tabwidget.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/objects/class_tabwidget.cpp b/src/modules/objects/class_tabwidget.cpp index 57e30a18..d30a6b67 100644 --- a/src/modules/objects/class_tabwidget.cpp +++ b/src/modules/objects/class_tabwidget.cpp @@ -94,7 +94,7 @@ %secondtab=$new(widget,%Tabwidget) # Now we'll create the item to put in to tab's pages. - %tqlayoutfirsttab=$new(tqlayout,%firsttab) + %layoutfirsttab=$new(tqlayout,%firsttab) %labelbt=$new(label,%firsttab) %labelbt->$settext(Botton Tab) %labeltt=$new(label,%firsttab) @@ -106,10 +106,10 @@ # Now we'll give a tqlayout to all items. # This also allows to use privateimpl without making buttons global variables - %tqlayoutfirsttab->$addwidget(%labelbt,0,0) - %tqlayoutfirsttab->$addwidget(%labeltt,0,1) - %tqlayoutfirsttab->$addwidget(%buttontb,1,0) - %tqlayoutfirsttab->$addwidget(%buttontt,1,1) + %layoutfirsttab->$addwidget(%labelbt,0,0) + %layoutfirsttab->$addwidget(%labeltt,0,1) + %layoutfirsttab->$addwidget(%buttontb,1,0) + %layoutfirsttab->$addwidget(%buttontt,1,1) # Add the page to the main tab. %Tabwidget->$addTab(%firsttab,Top&Button,33) @@ -125,15 +125,15 @@ } # We do the same work with the second tab's page. - %tqlayoutsecondtab=$new(tqlayout,%secondtab) + %layoutsecondtab=$new(tqlayout,%secondtab) %labelwp=$new(label,%secondtab) %labelwp->$settext("Enjoy the new Class provided by") - %tqlayoutsecondtab->$addwidget(%labelwp,0,0) + %layoutsecondtab->$addwidget(%labelwp,0,0) %labelwp->$settqalignment("Center") %labelgen=$new(label,%secondtab) %labelgen->$settext(Grifisx \& Noldor) %labelgen->$settqalignment("Center") - %tqlayoutsecondtab->$addwidget(%labelgen,1,0) + %layoutsecondtab->$addwidget(%labelgen,1,0) %Tabwidget->$addTab(%secondtab,&About,50) # Let's show our example. @@ -182,7 +182,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_tabwidget) bool KviKvsObject_tabwidget::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams) { - setObject(TQT_TQOBJECT(new TQTabWidget(tqparentScriptWidget(), name())), true); + setObject(TQT_TQOBJECT(new TQTabWidget(parentScriptWidget(), name())), true); connect(widget(),TQT_SIGNAL(currentChanged(int)),this,TQT_SLOT(slotcurrentChanged(int))); return true; } |