forked from qt-creator/qt-creator
Bookmarks: Remove use of deprecated typedef in delegate
Change-Id: Ic05690ce0fec53ccdfeda2fa428445b021765ebe Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -77,7 +77,7 @@ BookmarkDelegate::BookmarkDelegate(QObject *parent)
|
|||||||
|
|
||||||
QSize BookmarkDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
|
QSize BookmarkDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||||
{
|
{
|
||||||
QStyleOptionViewItemV4 opt = option;
|
QStyleOptionViewItem opt = option;
|
||||||
initStyleOption(&opt, index);
|
initStyleOption(&opt, index);
|
||||||
|
|
||||||
QFontMetrics fm(option.font);
|
QFontMetrics fm(option.font);
|
||||||
@@ -116,7 +116,7 @@ void BookmarkDelegate::generateGradientPixmap(int width, int height, const QColo
|
|||||||
|
|
||||||
void BookmarkDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
void BookmarkDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||||
{
|
{
|
||||||
QStyleOptionViewItemV4 opt = option;
|
QStyleOptionViewItem opt = option;
|
||||||
initStyleOption(&opt, index);
|
initStyleOption(&opt, index);
|
||||||
painter->save();
|
painter->save();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user