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
KAlarm
Commits
32ea1d3f
Commit
32ea1d3f
authored
Jul 21, 2021
by
David Jarvie
Browse files
In right-to-left mode, select correct date for mouse click position
parent
265de2a8
Pipeline
#71341
failed with stage
in 4 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/daymatrix.cpp
View file @
32ea1d3f
...
...
@@ -283,8 +283,9 @@ int DayMatrix::getDayIndex(const QPoint& pt) const
const
int
y
=
pt
.
y
();
if
(
x
<
0
||
y
<
0
||
x
>
width
()
||
y
>
height
())
return
NO_SELECTION
;
const
int
xd
=
static_cast
<
int
>
(
x
/
mDaySize
.
width
());
const
int
i
=
7
*
int
(
y
/
mDaySize
.
height
())
+
int
(
(
QApplication
::
isRightToLeft
()
?
6
-
x
:
x
)
/
mDaySize
.
width
()
);
+
(
QApplication
::
isRightToLeft
()
?
6
-
x
d
:
x
d
);
if
(
i
<
mTodayIndex
||
i
>
NUMDAYS
-
1
)
return
NO_SELECTION
;
return
i
;
...
...
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