Updates to support Qt v5.13

Replacement of deprecated Qt functions and member functions.
This commit is contained in:
Bill Somerville
2019-07-08 01:37:04 +01:00
parent 0c49f6f872
commit 01aaa852e3
7 changed files with 13 additions and 13 deletions
+1 -2
View File
@@ -55,8 +55,7 @@ QSize ForeignKeyDelegate::sizeHint (QStyleOptionViewItem const& option, QModelIn
{
size_hint = size_hint.expandedTo (qApp->style ()->sizeFromContents (QStyle::CT_ComboBox
, &combo_box_option
, {metrics.width (candidate_key_filter_->data (candidate_key_filter_->index (row, 0)).toString ())
, metrics.height ()}));
, metrics.boundingRect (candidate_key_filter_->data (candidate_key_filter_->index (row, 0)).toString ()).size ()));
}
return size_hint;
}