qVariantValue() is obsolete in Qt4. Replace it with equivalent QVariant::value<T>(value).
This change is Qt4/Qt5 neutral.
This commit is contained in:
parent
62ccb845bc
commit
c2a31fe04b
|
@ -643,7 +643,7 @@ void CallTipsList::callTipItemActivated(QListWidgetItem *item)
|
|||
cursor.insertText( text );
|
||||
|
||||
// get CallTip from item's UserRole-data
|
||||
const CallTip &callTip = qVariantValue<CallTip>( item->data(Qt::UserRole) );
|
||||
const CallTip &callTip = item->data(Qt::UserRole).value<CallTip>();
|
||||
|
||||
// if call completion enabled and we've something callable (method or class constructor) ...
|
||||
if (this->doCallCompletion
|
||||
|
|
|
@ -80,7 +80,7 @@ void CommandIconView::startDrag ( Qt::DropActions supportedActions )
|
|||
dataStream << items.count();
|
||||
for (QList<QListWidgetItem*>::ConstIterator it = items.begin(); it != items.end(); ++it) {
|
||||
if (it == items.begin())
|
||||
pixmap = qVariantValue<QPixmap>((*it)->data(Qt::UserRole));
|
||||
pixmap = ((*it)->data(Qt::UserRole)).value<QPixmap>();
|
||||
dataStream << (*it)->text();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user