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
Unmaintained
KDE Pim
Commits
ceedfb8a
Commit
ceedfb8a
authored
Feb 10, 2012
by
Sergio Martins
Browse files
Scroll the agenda when using the wheel on the timelabels.
BUG: 292210 (cherry picked from commit
8c0a0f75
)
parent
16512ef8
Changes
1
Hide whitespace changes
Inline
Side-by-side
calendarviews/eventviews/agenda/timelabelszone.cpp
View file @
ceedfb8a
...
...
@@ -99,8 +99,12 @@ void TimeLabelsZone::addTimeLabels( const KDateTime::Spec &spec )
void
TimeLabelsZone
::
setupTimeLabel
(
QScrollArea
*
area
)
{
if
(
mAgenda
&&
mAgenda
->
verticalScrollBar
()
)
{
// Scrolling the agenda will scroll the timelabel
connect
(
mAgenda
->
verticalScrollBar
(),
SIGNAL
(
valueChanged
(
int
)),
area
->
verticalScrollBar
(),
SLOT
(
setValue
(
int
))
);
// and vice-versa. ( this won't loop )
connect
(
area
->
verticalScrollBar
(),
SIGNAL
(
valueChanged
(
int
)),
mAgenda
->
verticalScrollBar
(),
SLOT
(
setValue
(
int
))
);
area
->
verticalScrollBar
()
->
setValue
(
mAgenda
->
verticalScrollBar
()
->
value
()
);
...
...
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