GuiToolbar.cpp: compile fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23492 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2008-03-05 22:41:56 +00:00
parent dae2d41417
commit 32a3ce2546

View File

@ -250,7 +250,7 @@ public:
///
void paint(QPainter * painter, QStyleOptionViewItem const & option,
QModelIndex const & index) const {
QComboBox * combo = static_cast<QComboBox const *>(parent());
QComboBox * combo = static_cast<QComboBox *>(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<QComboBox const *>(parent());
QComboBox * combo = static_cast<QComboBox *>(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<QComboBox const *>(parent());
QComboBox * combo = static_cast<QComboBox *>(parent());
// create the options for a menu item
QStyleOptionMenuItem menuOption;