Sounds language pack choice

This commit is contained in:
elecpower
2022-09-06 09:29:41 +10:00
committed by Peter Feerick
parent 316ab766fa
commit 1d9f0d7d76
9 changed files with 284 additions and 30 deletions
+17 -1
View File
@@ -23,6 +23,8 @@
#include "updateinterface.h"
#include <QStandardItemModel>
class UpdateSounds : public UpdateInterface
{
Q_DECLARE_TR_FUNCTIONS(UpdateSounds)
@@ -30,6 +32,20 @@ class UpdateSounds : public UpdateInterface
public:
explicit UpdateSounds(QWidget * parent);
virtual ~UpdateSounds() {}
virtual ~UpdateSounds();
protected:
virtual bool flagAssets() override;
private:
enum ItemModelDataRoles {
IMDR_Language = Qt::UserRole,
IMDR_Name,
IMDR_Directory,
};
Q_ENUM(ItemModelDataRoles)
QStandardItemModel *langPacks;
bool flagLanguageAsset(QString lang);
};