Bookmarks: Remove use of deprecated typedef in delegate

Change-Id: Ic05690ce0fec53ccdfeda2fa428445b021765ebe
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
hjk
2016-01-11 08:26:03 +01:00
parent 67ca818e5b
commit 99b98f2834

View File

@@ -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();