Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
846c5bb8
Commit
846c5bb8
authored
Jan 19, 2021
by
Alexander Lohnau
💬
Browse files
Manual indentation, exclude more parts from formatting
parent
3922389a
Changes
6
Hide whitespace changes
Inline
Side-by-side
applets/kimpanel/backend/ibus/ibus15/gtkaccelparse_p.c
View file @
846c5bb8
...
...
@@ -25,72 +25,85 @@
static
inline
gboolean
is_alt
(
const
gchar
*
string
)
{
return
((
string
[
0
]
==
'<'
)
&&
// clang-format off
return
((
string
[
0
]
==
'<'
)
&&
(
string
[
1
]
==
'a'
||
string
[
1
]
==
'A'
)
&&
(
string
[
2
]
==
'l'
||
string
[
2
]
==
'L'
)
&&
(
string
[
3
]
==
't'
||
string
[
3
]
==
'T'
)
&&
(
string
[
4
]
==
'>'
));
// clang-format on
}
static
inline
gboolean
is_ctl
(
const
gchar
*
string
)
{
return
((
string
[
0
]
==
'<'
)
&&
// clang-format off
return
((
string
[
0
]
==
'<'
)
&&
(
string
[
1
]
==
'c'
||
string
[
1
]
==
'C'
)
&&
(
string
[
2
]
==
't'
||
string
[
2
]
==
'T'
)
&&
(
string
[
3
]
==
'l'
||
string
[
3
]
==
'L'
)
&&
(
string
[
4
]
==
'>'
));
// clang-format on
}
static
inline
gboolean
is_modx
(
const
gchar
*
string
)
{
return
((
string
[
0
]
==
'<'
)
&&
// clang-format off
return
((
string
[
0
]
==
'<'
)
&&
(
string
[
1
]
==
'm'
||
string
[
1
]
==
'M'
)
&&
(
string
[
2
]
==
'o'
||
string
[
2
]
==
'O'
)
&&
(
string
[
3
]
==
'd'
||
string
[
3
]
==
'D'
)
&&
(
string
[
4
]
>=
'1'
&&
string
[
4
]
<=
'5'
)
&&
(
string
[
5
]
==
'>'
));
// clang-format on
}
static
inline
gboolean
is_ctrl
(
const
gchar
*
string
)
{
return
((
string
[
0
]
==
'<'
)
&&
// clang-format off
return
((
string
[
0
]
==
'<'
)
&&
(
string
[
1
]
==
'c'
||
string
[
1
]
==
'C'
)
&&
(
string
[
2
]
==
't'
||
string
[
2
]
==
'T'
)
&&
(
string
[
3
]
==
'r'
||
string
[
3
]
==
'R'
)
&&
(
string
[
4
]
==
'l'
||
string
[
4
]
==
'L'
)
&&
(
string
[
5
]
==
'>'
));
// clang-format on
}
static
inline
gboolean
is_shft
(
const
gchar
*
string
)
{
// clang-format off
return
((
string
[
0
]
==
'<'
)
&&
(
string
[
1
]
==
's'
||
string
[
1
]
==
'S'
)
&&
(
string
[
2
]
==
'h'
||
string
[
2
]
==
'H'
)
&&
(
string
[
3
]
==
'f'
||
string
[
3
]
==
'F'
)
&&
(
string
[
4
]
==
't'
||
string
[
4
]
==
'T'
)
&&
(
string
[
5
]
==
'>'
));
// clang-format on
}
static
inline
gboolean
is_shift
(
const
gchar
*
string
)
{
return
((
string
[
0
]
==
'<'
)
&&
// clang-format off
return
((
string
[
0
]
==
'<'
)
&&
(
string
[
1
]
==
's'
||
string
[
1
]
==
'S'
)
&&
(
string
[
2
]
==
'h'
||
string
[
2
]
==
'H'
)
&&
(
string
[
3
]
==
'i'
||
string
[
3
]
==
'I'
)
&&
(
string
[
4
]
==
'f'
||
string
[
4
]
==
'F'
)
&&
(
string
[
5
]
==
't'
||
string
[
5
]
==
'T'
)
&&
(
string
[
6
]
==
'>'
));
// clang-format on
}
static
inline
gboolean
is_control
(
const
gchar
*
string
)
{
return
((
string
[
0
]
==
'<'
)
&&
// clang-format off
return
((
string
[
0
]
==
'<'
)
&&
(
string
[
1
]
==
'c'
||
string
[
1
]
==
'C'
)
&&
(
string
[
2
]
==
'o'
||
string
[
2
]
==
'O'
)
&&
(
string
[
3
]
==
'n'
||
string
[
3
]
==
'N'
)
&&
...
...
@@ -99,12 +112,14 @@ is_control (const gchar *string)
(
string
[
6
]
==
'o'
||
string
[
6
]
==
'O'
)
&&
(
string
[
7
]
==
'l'
||
string
[
7
]
==
'L'
)
&&
(
string
[
8
]
==
'>'
));
// clang-format on
}
static
inline
gboolean
is_release
(
const
gchar
*
string
)
{
return
((
string
[
0
]
==
'<'
)
&&
// clang-format off
return
((
string
[
0
]
==
'<'
)
&&
(
string
[
1
]
==
'r'
||
string
[
1
]
==
'R'
)
&&
(
string
[
2
]
==
'e'
||
string
[
2
]
==
'E'
)
&&
(
string
[
3
]
==
'l'
||
string
[
3
]
==
'L'
)
&&
...
...
@@ -113,50 +128,59 @@ is_release (const gchar *string)
(
string
[
6
]
==
's'
||
string
[
6
]
==
'S'
)
&&
(
string
[
7
]
==
'e'
||
string
[
7
]
==
'E'
)
&&
(
string
[
8
]
==
'>'
));
// clang-format on
}
static
inline
gboolean
is_meta
(
const
gchar
*
string
)
{
return
((
string
[
0
]
==
'<'
)
&&
// clang-format off
return
((
string
[
0
]
==
'<'
)
&&
(
string
[
1
]
==
'm'
||
string
[
1
]
==
'M'
)
&&
(
string
[
2
]
==
'e'
||
string
[
2
]
==
'E'
)
&&
(
string
[
3
]
==
't'
||
string
[
3
]
==
'T'
)
&&
(
string
[
4
]
==
'a'
||
string
[
4
]
==
'A'
)
&&
(
string
[
5
]
==
'>'
));
// clang-format on
}
static
inline
gboolean
is_super
(
const
gchar
*
string
)
{
return
((
string
[
0
]
==
'<'
)
&&
// clang-format off
return
((
string
[
0
]
==
'<'
)
&&
(
string
[
1
]
==
's'
||
string
[
1
]
==
'S'
)
&&
(
string
[
2
]
==
'u'
||
string
[
2
]
==
'U'
)
&&
(
string
[
3
]
==
'p'
||
string
[
3
]
==
'P'
)
&&
(
string
[
4
]
==
'e'
||
string
[
4
]
==
'E'
)
&&
(
string
[
5
]
==
'r'
||
string
[
5
]
==
'R'
)
&&
(
string
[
6
]
==
'>'
));
// clang-format on
}
static
inline
gboolean
is_hyper
(
const
gchar
*
string
)
{
return
((
string
[
0
]
==
'<'
)
&&
// clang-format off
return
((
string
[
0
]
==
'<'
)
&&
(
string
[
1
]
==
'h'
||
string
[
1
]
==
'H'
)
&&
(
string
[
2
]
==
'y'
||
string
[
2
]
==
'Y'
)
&&
(
string
[
3
]
==
'p'
||
string
[
3
]
==
'P'
)
&&
(
string
[
4
]
==
'e'
||
string
[
4
]
==
'E'
)
&&
(
string
[
5
]
==
'r'
||
string
[
5
]
==
'R'
)
&&
(
string
[
6
]
==
'>'
));
// clang-format on
}
static
inline
gboolean
is_keycode
(
const
gchar
*
string
)
{
return
(
string
[
0
]
==
'0'
&&
// clang-format off
return
(
string
[
0
]
==
'0'
&&
string
[
1
]
==
'x'
&&
g_ascii_isxdigit
(
string
[
2
])
&&
g_ascii_isxdigit
(
string
[
3
]));
// clang-format on
}
void
...
...
applets/kimpanel/backend/ibus/ibus15/keyname-table.h
View file @
846c5bb8
...
...
@@ -21,6 +21,7 @@
*
* Do not edit.
*/
// clang-format off
static
const
char
keynames
[]
=
"space
\0
"
"exclam
\0
"
...
...
@@ -4033,3 +4034,4 @@ NC_("keyboard label", "XF86WakeUp")
NC_("keyboard label", "XF86Suspend")
#endif
// clang-format on
\ No newline at end of file
applets/kimpanel/backend/ibus/ibus15/panel.cpp
View file @
846c5bb8
...
...
@@ -992,6 +992,7 @@ ibus_panel_impanel_class_init (IBusPanelImpanelClass *klass)
{
GObjectClass
*
object_class
=
G_OBJECT_CLASS
(
klass
);
// clang-format off
IBUS_OBJECT_CLASS
(
object_class
)
->
destroy
=
(
IBusObjectDestroyFunc
)
ibus_panel_impanel_destroy
;
IBUS_PANEL_SERVICE_CLASS
(
object_class
)
->
focus_in
=
ibus_panel_impanel_focus_in
;
IBUS_PANEL_SERVICE_CLASS
(
object_class
)
->
focus_out
=
ibus_panel_impanel_focus_out
;
...
...
@@ -1016,6 +1017,7 @@ ibus_panel_impanel_class_init (IBusPanelImpanelClass *klass)
IBUS_PANEL_SERVICE_CLASS
(
object_class
)
->
show_preedit_text
=
ibus_panel_impanel_show_preedit_text
;
IBUS_PANEL_SERVICE_CLASS
(
object_class
)
->
start_setup
=
ibus_panel_impanel_start_setup
;
IBUS_PANEL_SERVICE_CLASS
(
object_class
)
->
state_changed
=
ibus_panel_impanel_state_changed
;
// clang-format on
}
static
void
...
...
kcms/activities/PrivacyTab.cpp
View file @
846c5bb8
...
...
@@ -129,12 +129,12 @@ void PrivacyTab::load()
void
PrivacyTab
::
save
()
{
d
->
blacklistedApplicationsModel
->
save
();
// clang-format off
const
auto
whatToRemember
=
d
->
radioRememberSpecificApplications
->
isChecked
()
?
SpecificApplications
:
d
->
radioDontRememberApplications
->
isChecked
()
?
NoApplications
:
/* otherwise */
AllApplications
;
// clang-format on
d
->
mainConfig
->
setResourceScoringEnabled
(
whatToRemember
!=
NoApplications
);
d
->
mainConfig
->
save
();
}
...
...
kcms/touchpad/backends/kwin_wayland/kwinwaylandtouchpad.cpp
View file @
846c5bb8
...
...
@@ -192,6 +192,7 @@ bool KWinWaylandTouchpad::applyConfig()
bool
KWinWaylandTouchpad
::
isChangedConfig
()
const
{
// clang-format off
return
m_enabled
.
changed
()
||
m_leftHanded
.
changed
()
||
m_pointerAcceleration
.
changed
()
||
...
...
@@ -211,6 +212,7 @@ bool KWinWaylandTouchpad::isChangedConfig() const
m_scrollButton
.
changed
()
||
m_clickMethodAreas
.
changed
()
||
m_clickMethodClickfinger
.
changed
();
// clang-format on
}
template
<
typename
T
>
...
...
kcms/touchpad/backends/x11/libinputtouchpad.cpp
View file @
846c5bb8
...
...
@@ -340,7 +340,7 @@ bool LibinputTouchpad::getDefaultConfig()
bool
LibinputTouchpad
::
isChangedConfig
()
{
// clang-format off
bool
changed
=
m_enabled
.
changed
()
||
m_tapToClick
.
changed
()
||
m_lrmTapButtonMap
.
changed
()
||
...
...
@@ -362,6 +362,7 @@ bool LibinputTouchpad::isChangedConfig()
m_scrollButton
.
changed
()
||
m_clickMethodAreas
.
changed
()
||
m_clickMethodClickfinger
.
changed
();
// clang-format on
return
changed
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment