mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-21 18:42:38 +00:00
This widget displays a header on the AchievementsWindow dialog above the tabs that shows the currently logged in user (if there is one) and the game they are playing (if there is one).
30 lines
603 B
C++
30 lines
603 B
C++
// Copyright 2023 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
|
#include <QDialog>
|
|
|
|
class AchievementHeaderWidget;
|
|
class QTabWidget;
|
|
class QDialogButtonBox;
|
|
|
|
class AchievementsWindow : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit AchievementsWindow(QWidget* parent);
|
|
void UpdateData();
|
|
|
|
private:
|
|
void CreateMainLayout();
|
|
void showEvent(QShowEvent* event);
|
|
void ConnectWidgets();
|
|
|
|
AchievementHeaderWidget* m_header_widget;
|
|
QTabWidget* m_tab_widget;
|
|
QDialogButtonBox* m_button_box;
|
|
};
|
|
|
|
#endif // USE_RETRO_ACHIEVEMENTS
|