forked from qt-creator/qt-creator
Analyzer: Fix scrolling
Broken by qtbase commit 934f06220391eb0e0ebf66a2eb037f48adb4c43c Change-Id: Ib58aa6ff31b7ce81bfa26e1ccf1bbf209618b307 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -492,6 +492,19 @@ QString MemcheckErrorView::defaultSuppressionFile() const
|
||||
return m_defaultSuppFile;
|
||||
}
|
||||
|
||||
void MemcheckErrorView::updateGeometries()
|
||||
{
|
||||
if (model()) {
|
||||
QModelIndex index = model()->index(0, modelColumn(), rootIndex());
|
||||
QStyleOptionViewItem option = viewOptions();
|
||||
// delegate for row / column
|
||||
QSize step = itemDelegate()->sizeHint(option, index);
|
||||
horizontalScrollBar()->setSingleStep(step.width() + spacing());
|
||||
verticalScrollBar()->setSingleStep(step.height() + spacing());
|
||||
}
|
||||
QListView::updateGeometries();
|
||||
}
|
||||
|
||||
// slot, can (for now) be invoked either when the settings were modified *or* when the active
|
||||
// settings object has changed.
|
||||
void MemcheckErrorView::settingsChanged(ValgrindBaseSettings *settings)
|
||||
|
||||
Reference in New Issue
Block a user