diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/GuiToolbar.cpp index 66a76d5d9c..34500bc681 100644 --- a/src/frontends/qt4/GuiToolbar.cpp +++ b/src/frontends/qt4/GuiToolbar.cpp @@ -250,7 +250,7 @@ public: /// void paint(QPainter * painter, QStyleOptionViewItem const & option, QModelIndex const & index) const { - QComboBox * combo = static_cast(parent()); + QComboBox * combo = static_cast(parent()); QStyleOptionMenuItem opt = getStyleOption(option, index); // draw line with small text string for separator @@ -327,7 +327,7 @@ public: /// QSize sizeHint(QStyleOptionViewItem const & option, QModelIndex const & index) const { - QComboBox * combo = static_cast(parent()); + QComboBox * combo = static_cast(parent()); QStyleOptionMenuItem opt = getStyleOption(option, index); QSize size = combo->style()->sizeFromContents( @@ -372,7 +372,7 @@ private: QStyleOptionMenuItem getStyleOption(QStyleOptionViewItem const & option, QModelIndex const & index) const { - QComboBox * combo = static_cast(parent()); + QComboBox * combo = static_cast(parent()); // create the options for a menu item QStyleOptionMenuItem menuOption;