summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Feck <cfeck@kde.org>2016-11-02 02:59:57 (GMT)
committerChristoph Feck <cfeck@kde.org>2016-11-02 02:59:57 (GMT)
commit07e2e47700e542f57980eb901c4aff7717157693 (patch)
tree8bd3fd4029423e34415b1eccf962574689f3abdb
parentb75387777e29378d27d60193d9e736aabcd41aa6 (diff)
Replace obsolete QStyleOption subclass
-rw-r--r--src/calculator/calculator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/calculator/calculator.cpp b/src/calculator/calculator.cpp
index 0ed065c..383cd6a 100644
--- a/src/calculator/calculator.cpp
+++ b/src/calculator/calculator.cpp
@@ -35,7 +35,7 @@ calculator::calculator(QWidget *parent) : KDialog(parent)
ui.setupUi(mainWidget());
int maxTextWidth = 0;
- QStyleOptionViewItemV4 option;
+ QStyleOptionViewItem option;
option.initFrom(ui.tree);
for (int i = 0; i < ui.tree->topLevelItemCount(); ++i) {
maxTextWidth = qMax(maxTextWidth, ui.tree->itemDelegate()->sizeHint(option, ui.tree->model()->index(i, 0)).width());