diff options
| author | 2016-03-02 12:15:44 +0000 | |
|---|---|---|
| committer | 2016-03-14 04:57:12 +0000 | |
| commit | f138911b65dfce85c551f9e2e4bbeb595d6c6755 (patch) | |
| tree | 701d5eec803c30160be47f8762b5838e57bc44dd /src/modules/objects/KvsObject_tabWidget.cpp | |
| parent | cleanup: add or remove empty lines between documentation blocks & code (diff) | |
| download | KVIrc-f138911b65dfce85c551f9e2e4bbeb595d6c6755.tar.gz KVIrc-f138911b65dfce85c551f9e2e4bbeb595d6c6755.tar.bz2 KVIrc-f138911b65dfce85c551f9e2e4bbeb595d6c6755.zip | |
documentation: formatting/indentation + minor syntax fixes
+ Dont use double quotes to emphasise words in normal circumstances.
+ improve indenting + consistency (good for readability when editing source)
+ also replace single quotes
Diffstat (limited to 'src/modules/objects/KvsObject_tabWidget.cpp')
| -rw-r--r-- | src/modules/objects/KvsObject_tabWidget.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/modules/objects/KvsObject_tabWidget.cpp b/src/modules/objects/KvsObject_tabWidget.cpp index 4eef1a790..69a9ea652 100644 --- a/src/modules/objects/KvsObject_tabWidget.cpp +++ b/src/modules/objects/KvsObject_tabWidget.cpp @@ -94,16 +94,16 @@ See also [classfnc]$setTabsClosable[/classfnc](). @examples: [example] - [comment]// First we'll create the main tabWidget.[/comment] + [comment]# First we'll create the main tabWidget.[/comment] %Tabwidget=$new(tabWidget) %Tabwidget->$setToolTip("Example of TabWidget class") %Tabwidget->$setTabPosition(Top) %Tabwidget->$resize(300,200) - [comment]// Now we'll create the new widgets and put they in to the main tabWidget.[/comment] + [comment]# Now we'll create the new widgets and put they in to the main tabWidget.[/comment] %firsttab=$new(vbox) %secondtab=$new(vbox) - [comment]// Now we'll create the item to put in to tab's pages.[/comment] - [comment]// First tab[/comment] + [comment]# Now we'll create the item to put in to tab's pages.[/comment] + [comment]# First tab[/comment] %hbox=$new(hbox,%firsttab) %labelbt=$new(label,%hbox) %labelbt->$settext(Botton Tab) @@ -114,11 +114,13 @@ %buttontb->$settext("To &Botton") %buttontt=$new(button,%hbox) %buttontt->$settext("To &Top") - [comment]// Now we'll give a layout to all items.[/comment] - [comment]// This also allows to use privateimpl without making buttons global variables[/comment] - [comment]// Add the page to the main tab.[/comment] + [comment] + # Now we'll give a layout to all items. + # This also allows to use privateimpl without making buttons global variables + # Add the page to the main tab. + [/comment] %Tabwidget->$addTab(%firsttab,Top&Button,33) - [comment]// Implementing the action to do when the user click the buttons.[/comment] + [comment]# Implementing the action to do when the user click the buttons.[/comment] privateimpl(%buttontb,mousepressevent) { %Tabwidget->$setTabPosition(Bottom) @@ -127,7 +129,7 @@ { %Tabwidget->$setTabPosition(Top) } - [comment]// We do the same work with the second tab's page.[/comment] + [comment]# We do the same work with the second tab's page.[/comment] %labelwp=$new(label,%secondtab) %labelwp->$settext("Enjoy the new Class provided by") %labelwp->$setalignment("Center") @@ -135,7 +137,7 @@ %labelgen->$settext(Grifisx \& Noldor) %labelgen->$setalignment("Center") %Tabwidget->$addTab(%secondtab,&About,50) - [comment]// Let's show our example.[/comment] + [comment]# Let's show our example.[/comment] %Tabwidget->$show() [/example] @signals: |
