Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Accessibility
KMouseTool
Commits
13bfd767
Commit
13bfd767
authored
Oct 23, 2020
by
Alexander Lohnau
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indentation and unused variable
parent
3e2ce52c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
26 deletions
+25
-26
kmousetool/kmousetool.cpp
kmousetool/kmousetool.cpp
+25
-26
No files found.
kmousetool/kmousetool.cpp
View file @
13bfd767
...
...
@@ -157,32 +157,32 @@ void KMouseTool::timerEvent( QTimerEvent * )
tick_count
++
;
// If the mouse has paused ...
if
(
tick_count
==
dwell_time
)
{
int
strokeType
=
stroke
.
getStrokeType
();
getMouseButtons
();
// if we're dragging the mouse, ignore stroke type
if
(
mouse_is_down
)
{
normalClick
();
return
;
}
if
(
!
strokesEnabled
)
{
normalClick
();
return
;
}
if
(
strokeType
==
MTStroke
::
DontClick
)
return
;
if
(
strokeType
==
MTStroke
::
bumped_mouse
)
return
;
if
(
strokeType
==
MTStroke
::
RightClick
||
strokeType
==
MTStroke
::
UpperRightStroke
)
RightClick
();
else
if
(
strokeType
==
MTStroke
::
DoubleClick
||
strokeType
==
MTStroke
::
LowerLeftStroke
)
DoubleClick
();
else
normalClick
();
if
(
tick_count
==
dwell_time
)
{
int
strokeType
=
stroke
.
getStrokeType
();
getMouseButtons
();
// if we're dragging the mouse, ignore stroke type
if
(
mouse_is_down
)
{
normalClick
();
return
;
}
if
(
!
strokesEnabled
)
{
normalClick
();
return
;
}
if
(
strokeType
==
MTStroke
::
DontClick
)
return
;
if
(
strokeType
==
MTStroke
::
bumped_mouse
)
return
;
if
(
strokeType
==
MTStroke
::
RightClick
||
strokeType
==
MTStroke
::
UpperRightStroke
)
RightClick
();
else
if
(
strokeType
==
MTStroke
::
DoubleClick
||
strokeType
==
MTStroke
::
LowerLeftStroke
)
DoubleClick
();
else
normalClick
();
}
}
void
KMouseTool
::
normalClick
()
...
...
@@ -374,7 +374,6 @@ void KMouseTool::setAutostart (bool start)
QString
sym
=
autostartdirname
;
sym
+=
QLatin1String
(
"kmousetool"
);
// sym is now full path to symlink
QFileInfo
fi
(
sym
);
QString
cmd
;
if
(
start
)
{
if
(
!
fi
.
exists
())
// if it doesn't exist, make it
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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