mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Created AchievementBox Qt object
AchievementBox is an extension of QGroupBox that contains the data for a single achievement, initialized with the achievement data and able to reference AchievementManager to update itself.
This commit is contained in:
32
Source/Core/DolphinQt/Achievements/AchievementBox.h
Normal file
32
Source/Core/DolphinQt/Achievements/AchievementBox.h
Normal file
@ -0,0 +1,32 @@
|
||||
// Copyright 2024 Dolphin Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef USE_RETRO_ACHIEVEMENTS
|
||||
#include <QGroupBox>
|
||||
|
||||
#include "Core/AchievementManager.h"
|
||||
|
||||
class QLabel;
|
||||
class QProgressBar;
|
||||
class QWidget;
|
||||
|
||||
struct rc_api_achievement_definition_t;
|
||||
|
||||
class AchievementBox final : public QGroupBox
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AchievementBox(QWidget* parent, rc_client_achievement_t* achievement);
|
||||
void UpdateData();
|
||||
|
||||
private:
|
||||
QLabel* m_badge;
|
||||
QLabel* m_status;
|
||||
QProgressBar* m_progress_bar;
|
||||
|
||||
rc_client_achievement_t* m_achievement;
|
||||
};
|
||||
|
||||
#endif // USE_RETRO_ACHIEVEMENTS
|
Reference in New Issue
Block a user