Commit 99b98f28 authored by hjk's avatar hjk

Bookmarks: Remove use of deprecated typedef in delegate

Change-Id: Ic05690ce0fec53ccdfeda2fa428445b021765ebe
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 67ca818e
......@@ -77,7 +77,7 @@ BookmarkDelegate::BookmarkDelegate(QObject *parent)
QSize BookmarkDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
{
QStyleOptionViewItemV4 opt = option;
QStyleOptionViewItem opt = option;
initStyleOption(&opt, index);
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
{
QStyleOptionViewItemV4 opt = option;
QStyleOptionViewItem opt = option;
initStyleOption(&opt, index);
painter->save();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment