Qt6 port:
* QApplication::setFallbackSessionManagementEnabled has been removed * QString::medRef() has been removed. Use QString::mid() again. * QTextStream::setCodec has been removed * Use operator QVariant of the QFont class to make code Qt5 and Qt6 compatible * Signature of QTreeWidget::mimeData() has changed in Qt6. Remove TreeWidget::mimeData() because it doesn't change the implementation * QLayout::setMargin() is deprecated in Qt5 and has been removed in Qt6. Use QLayout::setContentsMargins() * QDateTime::toTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::toSecsSinceEpoch() * QDesktopWidget is deprecated in Qt5 and has been removed in Qt6. Use QScreen
This commit is contained in:
@@ -268,9 +268,7 @@ namespace Gui {
|
||||
Document* doc = Application::Instance->activeDocument();
|
||||
QFont font;
|
||||
font.setBold(doc==&d);
|
||||
QVariant variant;
|
||||
variant.setValue<QFont>(font);
|
||||
return variant;
|
||||
return static_cast<QVariant>(font);
|
||||
}
|
||||
|
||||
return QVariant();
|
||||
@@ -325,9 +323,7 @@ namespace Gui {
|
||||
App::DocumentObject* act = obj->getDocument()->getActiveObject();
|
||||
QFont font;
|
||||
font.setBold(obj==act);
|
||||
QVariant variant;
|
||||
variant.setValue<QFont>(font);
|
||||
return variant;
|
||||
return static_cast<QVariant>(font);
|
||||
}
|
||||
|
||||
return QVariant();
|
||||
|
||||
Reference in New Issue
Block a user