mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-05-16 08:40:23 -05:00
Yellow squiggly lines begone! Done automatically on .cpp files through `run-clang-tidy`, with manual corrections to the mistakes. If an import is directly used, but is technically unnecessary since it's recursively imported by something else, it is *not* removed. The tool doesn't touch .h files, so I did some of them by hand while fixing errors due to old recursive imports. Not everything is removed, but the cleanup should be substantial enough. Because this done on Linux, code that isn't used on it is mostly untouched. (Hopefully no open PR is depending on these imports...)
35 lines
684 B
C++
35 lines
684 B
C++
// Copyright 2024 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
|
#include <QGroupBox>
|
|
|
|
#include "rcheevos/include/rc_client.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, const rc_client_achievement_t* achievement);
|
|
void UpdateData();
|
|
void UpdateProgress();
|
|
|
|
private:
|
|
QLabel* m_badge;
|
|
QLabel* m_status;
|
|
QProgressBar* m_progress_bar;
|
|
QLabel* m_progress_label;
|
|
|
|
const rc_client_achievement_t* m_achievement;
|
|
};
|
|
|
|
#endif // USE_RETRO_ACHIEVEMENTS
|