Commit 07e2e477 authored by Christoph Feck's avatar Christoph Feck
Browse files

Replace obsolete QStyleOption subclass

parent b7538777
......@@ -35,7 +35,7 @@ calculator::calculator(QWidget *parent) : KDialog(parent)
int maxTextWidth = 0;
QStyleOptionViewItemV4 option;
QStyleOptionViewItem option;
for (int i = 0; i < ui.tree->topLevelItemCount(); ++i) {
maxTextWidth = qMax(maxTextWidth, ui.tree->itemDelegate()->sizeHint(option, ui.tree->model()->index(i, 0)).width());
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