Skip to content

Commit

Permalink
Drop QVariant obsolete methods
Browse files Browse the repository at this point in the history
  • Loading branch information
luis-pereira committed May 7, 2024
1 parent 9873ea0 commit 3dee8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tabwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ void TabWidget::removeFinished()
{
QObject* term = sender();
QVariant prop = term->property(TAB_INDEX_PROPERTY);
if(prop.isValid() && prop.canConvert(QVariant::Int))
if(prop.isValid() && prop.canConvert<int>())
{
int index = prop.toInt();
removeTab(index);
Expand Down

0 comments on commit 3dee8e9

Please sign in to comment.