mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
* cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23477 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cafaf075e5
commit
d749ce138d
@ -248,7 +248,7 @@ public:
|
|||||||
: QAbstractItemDelegate(parent) {}
|
: QAbstractItemDelegate(parent) {}
|
||||||
|
|
||||||
///
|
///
|
||||||
void paint(QPainter * painter, const QStyleOptionViewItem & option,
|
void paint(QPainter * painter, QStyleOptionViewItem const & option,
|
||||||
const QModelIndex &index) const {
|
const QModelIndex &index) const {
|
||||||
QComboBox * combo = static_cast<QComboBox const *>(parent());
|
QComboBox * combo = static_cast<QComboBox const *>(parent());
|
||||||
|
|
||||||
@ -284,8 +284,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
QSize sizeHint(const QStyleOptionViewItem &option,
|
QSize sizeHint(QStyleOptionViewItem const & option,
|
||||||
const QModelIndex &index) const {
|
QModelIndex const & index) const {
|
||||||
QComboBox * combo = static_cast<QComboBox const *>(parent());
|
QComboBox * combo = static_cast<QComboBox const *>(parent());
|
||||||
|
|
||||||
QStyleOptionMenuItem opt = getStyleOption(option, index);
|
QStyleOptionMenuItem opt = getStyleOption(option, index);
|
||||||
@ -325,8 +325,8 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
QStyleOptionMenuItem getStyleOption(const QStyleOptionViewItem &option,
|
QStyleOptionMenuItem getStyleOption(QStyleOptionViewItem const & option,
|
||||||
const QModelIndex &index) const
|
QModelIndex const & index) const
|
||||||
{
|
{
|
||||||
QComboBox * combo = static_cast<QComboBox const *>(parent());
|
QComboBox * combo = static_cast<QComboBox const *>(parent());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user