Skip to content

Commit 23426cf

Browse files
committed
Astyle: dont use INDENT-OFF in sources
1 parent 143f034 commit 23426cf

File tree

2 files changed

+139
-34
lines changed

2 files changed

+139
-34
lines changed

addons/include/addons-actions.h

Lines changed: 104 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,110 @@ public slots:
3939
void loadIcons();
4040

4141
public:
42-
// *INDENT-OFF*
43-
QAction *bhc() {return m_bhc;}
44-
QAction *blockSkipDecrement() {return m_blockSkipDecrement;}
45-
QAction *blockSkipIncrement() {return m_blockSkipIncrement;}
46-
QAction *blockSkipRemove() {return m_blockSkipRemove;}
47-
QAction *chamfer() {return m_chamfer;}
48-
QAction *cleanUp() {return m_cleanUp;}
49-
QAction *paraComment() {return m_paraComment;}
50-
QAction *semiComment() {return m_semiComment;}
51-
QAction *compileMacro() {return m_compileMacro;}
52-
QAction *dot() {return m_dot;}
53-
QAction *insertEmptyLines() {return m_insertEmptyLines;}
54-
QAction *removeEmptyLines() {return m_removeEmptyLines;}
55-
QAction *feeds() {return m_feeds;}
56-
QAction *i2m() {return m_i2m;}
57-
QAction *i2mProg() {return m_i2mProg;}
58-
QAction *renumber() {return m_renumber;}
59-
QAction *insertSpaces() {return m_insertSpaces;}
60-
QAction *removeSpaces() {return m_removeSpaces;}
61-
QAction *splitProgramms() {return m_splitProgramms;}
62-
QAction *swapAxes() {return m_swapAxes;}
63-
QAction *triangle() {return m_triangle;}
64-
// *INDENT-ON*
42+
QAction* bhc()
43+
{
44+
return m_bhc;
45+
}
46+
47+
QAction* blockSkipDecrement()
48+
{
49+
return m_blockSkipDecrement;
50+
}
51+
52+
QAction* blockSkipIncrement()
53+
{
54+
return m_blockSkipIncrement;
55+
}
56+
57+
QAction* blockSkipRemove()
58+
{
59+
return m_blockSkipRemove;
60+
}
61+
62+
QAction* chamfer()
63+
{
64+
return m_chamfer;
65+
}
66+
67+
QAction* cleanUp()
68+
{
69+
return m_cleanUp;
70+
}
71+
72+
QAction* paraComment()
73+
{
74+
return m_paraComment;
75+
}
76+
77+
QAction* semiComment()
78+
{
79+
return m_semiComment;
80+
}
81+
82+
QAction* compileMacro()
83+
{
84+
return m_compileMacro;
85+
}
86+
87+
QAction* dot()
88+
{
89+
return m_dot;
90+
}
91+
92+
QAction* insertEmptyLines()
93+
{
94+
return m_insertEmptyLines;
95+
}
96+
97+
QAction* removeEmptyLines()
98+
{
99+
return m_removeEmptyLines;
100+
}
101+
102+
QAction* feeds()
103+
{
104+
return m_feeds;
105+
}
106+
107+
QAction* i2m()
108+
{
109+
return m_i2m;
110+
}
111+
112+
QAction* i2mProg()
113+
{
114+
return m_i2mProg;
115+
}
116+
117+
QAction* renumber()
118+
{
119+
return m_renumber;
120+
}
121+
122+
QAction* insertSpaces()
123+
{
124+
return m_insertSpaces;
125+
}
126+
127+
QAction* removeSpaces()
128+
{
129+
return m_removeSpaces;
130+
}
131+
132+
QAction* splitProgramms()
133+
{
134+
return m_splitProgramms;
135+
}
136+
137+
QAction* swapAxes()
138+
{
139+
return m_swapAxes;
140+
}
141+
142+
QAction* triangle()
143+
{
144+
return m_triangle;
145+
}
65146

66147
protected:
67148
QAction* m_bhc;

addons/src/addons-context.h

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,41 @@ class Context
4141
ALL
4242
};
4343

44-
// *INDENT-OFF*
45-
bool pull(int mode);
46-
QString &text() {return m_text;}
47-
int fragmentStart() {return m_fragmentStart;}
48-
int fragmentEnd() {return m_fragmentEnd;}
49-
void setSelectionStart(int pos) {m_selectionStart = pos;}
50-
void setSelectionEnd(int pos) {m_selectionEnd = pos;}
51-
void push(const QString &text);
52-
void push();
53-
QPlainTextEdit *textEdit() {return m_edit;}
54-
// *INDENT-ON*
44+
bool pull(int mode);
45+
46+
QString& text()
47+
{
48+
return m_text;
49+
}
50+
51+
int fragmentStart()
52+
{
53+
return m_fragmentStart;
54+
}
55+
56+
int fragmentEnd()
57+
{
58+
return m_fragmentEnd;
59+
}
60+
61+
void setSelectionStart(int pos)
62+
{
63+
m_selectionStart = pos;
64+
}
65+
66+
void setSelectionEnd(int pos)
67+
{
68+
m_selectionEnd = pos;
69+
}
70+
71+
void push(const QString& text);
72+
73+
void push();
74+
75+
QPlainTextEdit* textEdit()
76+
{
77+
return m_edit;
78+
}
5579

5680
protected:
5781
int m_mode;

0 commit comments

Comments
 (0)