diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:06:29 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-05 20:47:54 +0200 |
commit | 43c58f1620463166675d45199b37ce2979d5215e (patch) | |
tree | 67558a5bd6213761dbde4a620e497b644ffe8c08 /src/modules/objects/class_groupbox.cpp | |
parent | e21c70f0573896c6503317f4684f2f421a57fd11 (diff) | |
download | kvirc-43c58f1620463166675d45199b37ce2979d5215e.tar.gz kvirc-43c58f1620463166675d45199b37ce2979d5215e.zip |
Rename obsolete tq methods to standard names
(cherry picked from commit 2dd6d32bd821b303aa7b25edda76d1ef7c14b2bf)
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 a1f5c11f..7c011403 100644 --- a/src/modules/objects/class_groupbox.cpp +++ b/src/modules/objects/class_groupbox.cpp @@ -60,8 +60,8 @@ const int align_cod[] = { @description: This widget can be used to display a groupbox. It will be usually a parent for other child controls. - You can either use a child tqlayout to manage the children geometries - or use $setColumnLayout to manage the tqlayout automatically. + You can either use a child layout to manage the children geometries + or use $setColumnLayout to manage the layout automatically. @functions: !fn: $setTitle(<text:String>) Sets the group box title to <text>. @@ -96,7 +96,7 @@ const int align_cod[] = { !fn: $setOrientation<orientation:string> Sets the group box's orientation. Valid values are:Qt::Horizontal,Qt::Vertical. !fn: $setColumnLayout(<columns:integer>,<orientation:string>) - Enables the automatic tqlayout management. The children are arranged in n columns with the specified orientation.[br] + Enables the automatic layout management. The children are arranged in n columns with the specified orientation.[br] Valid values for <orientation> are:Qt::Horizontal,Qt::Vertical. @examples: [example] @@ -120,16 +120,16 @@ const int align_cod[] = { %inputpass->$setechomode("password")[br] [br] #now lets' layouting the groupbox's element's.[br] - %layoutgb=$new(tqlayout,%gb)[br] + %layoutgb=$new(layout,%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] + # now we create a fake widget and managing the two buttons layout.[br] %fakewidget=$new(widget,%widget)[br] - %layoutbtn=$new(tqlayout,%fakewidget)[br] + %layoutbtn=$new(layout,%fakewidget)[br] %btnok=$new(button,%fakewidget)[br] %btnok->$settext("OK")[br] %btncancel=$new(button,%fakewidget)[br] @@ -137,13 +137,13 @@ const int align_cod[] = { %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 "children")[br] + #And finally we create a main layout with the groupbox (and its "children")[br] #and fakewiget (with its buttons children). - %maintqlayout=$new(tqlayout,%widget)[br] - %maintqlayout->$setspacing(10)[br] - %maintqlayout->$setmargin(10)[br] - %maintqlayout->$addwidget(%gb,0,0)[br] - %maintqlayout->$addwidget(%fakewidget,1,0)[br] + %mainlayout=$new(layout,%widget)[br] + %mainlayout->$setspacing(10)[br] + %mainlayout->$setmargin(10)[br] + %mainlayout->$addwidget(%gb,0,0)[br] + %mainlayout->$addwidget(%fakewidget,1,0)[br] [br] #Let's show our nice login request =D ! [br] %widget->$show()[br] |