mirror of
https://github.com/tnodir/fort
synced 2024-11-15 04:55:48 +00:00
UI: TrayIcon::processMouseClick: Fix SonarCloud warning
"Argument with garbage value"
This commit is contained in:
parent
4e9ebc85bc
commit
41a5cbbe88
@ -903,11 +903,9 @@ QAction *TrayIcon::clickActionByType(TrayIcon::ActionType actionType) const
|
|||||||
|
|
||||||
void TrayIcon::processMouseClick(Qt::MouseButton button, Qt::KeyboardModifiers modifiers)
|
void TrayIcon::processMouseClick(Qt::MouseButton button, Qt::KeyboardModifiers modifiers)
|
||||||
{
|
{
|
||||||
ClickType clickType;
|
ClickType clickType = SingleClick;
|
||||||
switch (button) {
|
switch (button) {
|
||||||
case Qt::LeftButton: {
|
case Qt::LeftButton: {
|
||||||
clickType = SingleClick;
|
|
||||||
|
|
||||||
if (modifiers & Qt::ControlModifier) {
|
if (modifiers & Qt::ControlModifier) {
|
||||||
clickType = CtrlSingleClick;
|
clickType = CtrlSingleClick;
|
||||||
} else if (modifiers & Qt::AltModifier) {
|
} else if (modifiers & Qt::AltModifier) {
|
||||||
|
Loading…
Reference in New Issue
Block a user