Commit ceedfb8a authored by Sergio Martins's avatar Sergio Martins
Browse files

Scroll the agenda when using the wheel on the timelabels.

BUG: 292210
(cherry picked from commit 8c0a0f75)
parent 16512ef8
......@@ -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() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment