1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-21 18:22:29 +01:00

Fix enums

This commit is contained in:
Elias Steurer 2024-10-25 17:47:43 +02:00
parent 7cba81c60c
commit 779105b2ad
4 changed files with 17 additions and 17 deletions

View File

@ -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;

View File

@ -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*);

View File

@ -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;

View File

@ -96,9 +96,9 @@ public slots:
auto item = std::make_unique<SteamWorkshopItem>(name, path, appID);
const auto roles = QVector<int> { static_cast<int>(UploadListModelRole::UploadProgressRole),
static_cast<int>(UploadListModelRole::NameRole),
static_cast<int>(UploadListModelRole::AbsolutePreviewImagePath),
static_cast<int>(UploadListModelRole::Status) };
static_cast<int>(UploadListModelRole::NameRole),
static_cast<int>(UploadListModelRole::AbsolutePreviewImagePath),
static_cast<int>(UploadListModelRole::Status) };
const auto onDataChanged = [&]() { emit this->dataChanged(index(0, 0), index(rowCount() - 1, 0), roles); };