From 779105b2adf8cea6a2ae847911e1642740fdda21 Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Fri, 25 Oct 2024 17:47:43 +0200 Subject: [PATCH] Fix enums --- ScreenPlayWorkshop/src/steamworkshop.cpp | 4 ++-- ScreenPlayWorkshop/src/steamworkshop.h | 16 ++++++++-------- ScreenPlayWorkshop/src/steamworkshopitem.cpp | 8 ++++---- ScreenPlayWorkshop/src/uploadlistmodel.h | 6 +++--- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/ScreenPlayWorkshop/src/steamworkshop.cpp b/ScreenPlayWorkshop/src/steamworkshop.cpp index c07c4408..0654f898 100644 --- a/ScreenPlayWorkshop/src/steamworkshop.cpp +++ b/ScreenPlayWorkshop/src/steamworkshop.cpp @@ -208,7 +208,7 @@ void SteamWorkshop::subscribeItem(const QVariant publishedFileID) m_steamAccount->loadAmountSubscribedItems(); } -bool SteamWorkshop::searchWorkshop(const ScreenPlay::Steam::EUGCQuery enumEUGCQuery) +bool SteamWorkshop::searchWorkshop(const ScreenPlayWorkshop::Steam::EUGCQuery enumEUGCQuery) { qInfo() << "searchWorkshop"; @@ -339,7 +339,7 @@ bool SteamWorkshop::queryWorkshopItemFromHandle(SteamWorkshopListModel* listMode return true; } -void SteamWorkshop::searchWorkshopByText(const QString text, const ScreenPlay::Steam::EUGCQuery rankedBy) +void SteamWorkshop::searchWorkshopByText(const QString text, const ScreenPlayWorkshop::Steam::EUGCQuery rankedBy) { qInfo() << "searchWorkshopByText" << text; diff --git a/ScreenPlayWorkshop/src/steamworkshop.h b/ScreenPlayWorkshop/src/steamworkshop.h index 18da9baf..51d8fd90 100644 --- a/ScreenPlayWorkshop/src/steamworkshop.h +++ b/ScreenPlayWorkshop/src/steamworkshop.h @@ -185,14 +185,14 @@ signals: void steamAccountChanged(SteamAccount* steamAccount); void requestItemDetailReturned(const QString& title, - const QStringList& tags, - const qulonglong steamIDOwner, - const QString& description, - const quint64 votesUp, - const quint64 votesDown, - const QString& url, - const QVariant fileSize, - const QVariant publishedFileId); + const QStringList& tags, + const qulonglong steamIDOwner, + const QString& description, + const quint64 votesUp, + const quint64 votesDown, + const QString& url, + const QVariant fileSize, + const QVariant publishedFileId); void workshopProfileListModelChanged(SteamWorkshopListModel*); diff --git a/ScreenPlayWorkshop/src/steamworkshopitem.cpp b/ScreenPlayWorkshop/src/steamworkshopitem.cpp index d7530333..cecf8fcb 100644 --- a/ScreenPlayWorkshop/src/steamworkshopitem.cpp +++ b/ScreenPlayWorkshop/src/steamworkshopitem.cpp @@ -107,8 +107,8 @@ void SteamWorkshopItem::uploadItemToWorkshop(CreateItemResult_t* pCallback, bool qInfo() << previewGifFile.size(); if (previewGifFile.exists() && previewGifFile.size() <= (1000 * 1000)) SteamUGC()->AddItemPreviewFile(m_UGCUpdateHandle, - QByteArray(QString { absoluteContentPath + "/" + previewGIF }.toUtf8()).data(), - EItemPreviewType::k_EItemPreviewType_Image); + QByteArray(QString { absoluteContentPath + "/" + previewGIF }.toUtf8()).data(), + EItemPreviewType::k_EItemPreviewType_Image); } if (absoluteContentdir.exists("previewWEBM")) { @@ -117,8 +117,8 @@ void SteamWorkshopItem::uploadItemToWorkshop(CreateItemResult_t* pCallback, bool qInfo() << previewWEBMFile.size(); if (previewWEBMFile.exists() && previewWEBMFile.size() <= (1000 * 1000)) SteamUGC()->AddItemPreviewFile(m_UGCUpdateHandle, - QByteArray(QString { absoluteContentPath + "/preview.webm" }.toUtf8()).data(), - EItemPreviewType::k_EItemPreviewType_Image); + QByteArray(QString { absoluteContentPath + "/preview.webm" }.toUtf8()).data(), + EItemPreviewType::k_EItemPreviewType_Image); } QStringList tags; diff --git a/ScreenPlayWorkshop/src/uploadlistmodel.h b/ScreenPlayWorkshop/src/uploadlistmodel.h index 4a7a92e1..ec3c984e 100644 --- a/ScreenPlayWorkshop/src/uploadlistmodel.h +++ b/ScreenPlayWorkshop/src/uploadlistmodel.h @@ -96,9 +96,9 @@ public slots: auto item = std::make_unique(name, path, appID); const auto roles = QVector { static_cast(UploadListModelRole::UploadProgressRole), - static_cast(UploadListModelRole::NameRole), - static_cast(UploadListModelRole::AbsolutePreviewImagePath), - static_cast(UploadListModelRole::Status) }; + static_cast(UploadListModelRole::NameRole), + static_cast(UploadListModelRole::AbsolutePreviewImagePath), + static_cast(UploadListModelRole::Status) }; const auto onDataChanged = [&]() { emit this->dataChanged(index(0, 0), index(rowCount() - 1, 0), roles); };