mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-11 16:31:09 +00:00
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:
parent
dae2d41417
commit
32a3ce2546
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user