Skip to content

Commit

Permalink
Fixed a couple of Qt6 compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfug committed Mar 1, 2024
1 parent 3fb9468 commit 0cab6cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions FugioApp/contextview.cpp
Expand Up @@ -473,7 +473,7 @@ void ContextView::loadContext( QSettings &pSettings, bool pPartial )
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QVariant::Type SrcType = PntSrc.type();
#else
QMetaType::Type SrcType = PntSrc.typeId();
QMetaType::Type SrcType = static_cast<QMetaType::Type>( PntSrc.typeId() );
#endif

if( SrcType == QMetaType::QPointF )
Expand Down Expand Up @@ -673,7 +673,7 @@ void ContextView::loadContext( QSettings &pSettings, bool pPartial )
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QVariant::Type PosType = pSettings.value( "position" ).type();
#else
QMetaType::Type PosType = pSettings.value( "position" ).typeId();
QMetaType::Type PosType = static_cast<QMetaType::Type>( pSettings.value( "position" ).typeId() );
#endif

if( PosType == QMetaType::QPointF )
Expand Down
2 changes: 1 addition & 1 deletion include/fugio/app_helper.h
Expand Up @@ -164,7 +164,7 @@ class AppHelper
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
const QString TranslationsPath = QLibraryInfo::location( QLibraryInfo::TranslationsPath );
#else
const QString TranslationsPath = QLibraryInfo::path( QLibraryInfo::TranslationsPath ) );
const QString TranslationsPath = QLibraryInfo::path( QLibraryInfo::TranslationsPath );
#endif

if( QFileInfo::exists( TranslationsPath ) )
Expand Down

0 comments on commit 0cab6cf

Please sign in to comment.