Skip to content

Commit

Permalink
New coding style file (using QtCreator >=1.4.0).
Browse files Browse the repository at this point in the history
  • Loading branch information
strasdat committed Dec 15, 2011
1 parent 195c5fc commit e3a6459
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README
Expand Up @@ -358,7 +358,12 @@ comments have little boxes of stars around them too."
(All cites in "quotation marks" are from the google coding style guide.)

If you would like to use automatic indentation, I recommend you to use
the standard setting in QtCreator 1.3.1 (or newer), however with
"Tools/Options/Text Editor/Behavior/Indent size = 2" and a maximal number of
80 characters per line (i.e. mark
"Tools/Options/Text Editor/Display/Display right margin at column = 80").
the QtCreator (1.4.0 or newer) for code editing. You can import the ScaViSLAM
code style using "coding_style.xml":
* Open "ScaViSLAM" project in QtCreator.
* Click on "Projects". (Select "ScaViSLAM" tap in case several projects are
opwen.)
* Click on "Editor Settings".
* Select "Editor Settings: Custom"
* Click on "Coding Style Settings-->Import..." and select "coding_style.xml".

35 changes: 35 additions & 0 deletions coding_style.xml
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorCodeStyle>
<!-- Written by Qt Creator 2.4.0, 2011-12-15T13:08:10. -->
<qtcreator>
<data>
<variable>CodeStyleData</variable>
<valuemap type="QVariantMap">
<value type="bool" key="AlignAssignments">false</value>
<value type="bool" key="AutoSpacesForTabs">false</value>
<value type="bool" key="ExtraPaddingForConditionsIfConfusingAlign">true</value>
<value type="bool" key="IndentAccessSpecifiers">false</value>
<value type="bool" key="IndentBlockBody">true</value>
<value type="bool" key="IndentBlockBraces">false</value>
<value type="bool" key="IndentBlocksRelativeToSwitchLabels">false</value>
<value type="bool" key="IndentClassBraces">false</value>
<value type="bool" key="IndentControlFlowRelativeToSwitchLabels">true</value>
<value type="bool" key="IndentDeclarationsRelativeToAccessSpecifiers">true</value>
<value type="bool" key="IndentEnumBraces">false</value>
<value type="bool" key="IndentFunctionBody">true</value>
<value type="bool" key="IndentFunctionBraces">false</value>
<value type="bool" key="IndentNamespaceBody">false</value>
<value type="bool" key="IndentNamespaceBraces">false</value>
<value type="int" key="IndentSize">2</value>
<value type="bool" key="IndentStatementsRelativeToSwitchLabels">true</value>
<value type="bool" key="IndentSwitchLabels">false</value>
<value type="int" key="PaddingMode">1</value>
<value type="bool" key="SpacesForTabs">true</value>
<value type="int" key="TabSize">8</value>
</valuemap>
</data>
<data>
<variable>DisplayName</variable>
<value type="QString">ScaViSLAM</value>
</data>
</qtcreator>

0 comments on commit e3a6459

Please sign in to comment.