Commit 2dad9927 authored by Sergio Martins's avatar Sergio Martins
Browse files

Only run this connect once.

Fixes resizeSplitters() being called N times.

Still doesn't fix the flickering completely.
parent 68d3eb94
......@@ -200,6 +200,9 @@ MultiAgendaView::MultiAgendaView( QWidget *parent )
d->mRightSplitter = new QSplitter( Qt::Vertical, topSideBox );
d->mRightSplitter->setOpaqueResize( KGlobalSettings::opaqueResize() );
connect( d->mLeftSplitter, SIGNAL(splitterMoved(int,int)), SLOT(resizeSplitters()) );
connect( d->mRightSplitter, SIGNAL(splitterMoved(int,int)), SLOT(resizeSplitters()) );
d->mRightDummyWidget = new QWidget( d->mRightSplitter );
d->mScrollBar = new QScrollBar( Qt::Vertical, d->mRightSplitter );
......@@ -261,8 +264,6 @@ void MultiAgendaView::recreateViews()
connect( d->mScrollBar, SIGNAL(valueChanged(int)),
timeLabel->verticalScrollBar(), SLOT(setValue(int)) );
connect( d->mLeftSplitter, SIGNAL(splitterMoved(int,int)), SLOT(resizeSplitters()) );
connect( d->mRightSplitter, SIGNAL(splitterMoved(int,int)), SLOT(resizeSplitters()) );
QTimer::singleShot( 0, this, SLOT(resizeSplitters()) );
QTimer::singleShot( 0, this, SLOT(setupScrollBar()) );
......
Supports Markdown
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