From 3dee8e9d38361a53804526b8296fc3fdb035bd5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Pereira?= Date: Tue, 7 May 2024 17:29:47 +0100 Subject: [PATCH] Drop QVariant obsolete methods --- src/tabwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabwidget.cpp b/src/tabwidget.cpp index 213df2ed..11373d33 100644 --- a/src/tabwidget.cpp +++ b/src/tabwidget.cpp @@ -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 index = prop.toInt(); removeTab(index);