Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
eb9779b2
Commit
eb9779b2
authored
Apr 26, 2021
by
Kevin Funk
☕
Browse files
statusbarlabel: Only allow to toggle via LMB
Doesn't make sense to allow it using the right mouse button
parent
e30cdaa1
Pipeline
#59810
passed with stage
in 39 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messagecomposer/src/statusbarwidget/statusbarlabeltoggledstate.cpp
View file @
eb9779b2
...
...
@@ -6,6 +6,7 @@
#include "statusbarlabeltoggledstate.h"
#include "messagecomposer_debug.h"
#include <QMouseEvent>
using
namespace
MessageComposer
;
StatusBarLabelToggledState
::
StatusBarLabelToggledState
(
QWidget
*
parent
)
:
QLabel
(
parent
)
...
...
@@ -53,5 +54,7 @@ void StatusBarLabelToggledState::updateLabel()
void
StatusBarLabelToggledState
::
mousePressEvent
(
QMouseEvent
*
ev
)
{
Q_UNUSED
(
ev
)
setToggleMode
(
!
mToggleMode
);
if
(
ev
->
button
()
==
Qt
::
LeftButton
)
{
setToggleMode
(
!
mToggleMode
);
}
}
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