Qt6 port:
* Explicitly include some missing headers * Use 'static const char*' for XPM icon * Skip template parameters for qMakePair * Constructor of QFileInfo is marked as 'explicit' now * QString::fromLatin1() also accepts a QByteArray * QDateTime::fromTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::fromSecsSinceEpoch() * QDateTime::toTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::toSecsSinceEpoch() * QApplication::globalStrut() is deprecated. Don't use it any more. * QWidget::isTopLevel() is deprecated, use QWidget::isWindow()
This commit is contained in:
@@ -91,7 +91,7 @@ void SceneModel::setNode(SoNode* node)
|
||||
|
||||
void SceneModel::setNode(QModelIndex index, SoNode* node)
|
||||
{
|
||||
this->setData(index, QVariant(QString::fromLatin1(node->getTypeId().getName())));
|
||||
this->setData(index, QVariant(QString::fromLatin1(QByteArray(node->getTypeId().getName()))));
|
||||
if (node->getTypeId().isDerivedFrom(SoGroup::getClassTypeId())) {
|
||||
auto group = static_cast<SoGroup*>(node);
|
||||
// insert SoGroup icon
|
||||
|
||||
Reference in New Issue
Block a user