Path: blob/master/src/duckstation-qt/achievementsettingswidget.h
4246 views
// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <[email protected]>1// SPDX-License-Identifier: CC-BY-NC-ND-4.023#pragma once4#include <QtWidgets/QWidget>5#include "ui_achievementsettingswidget.h"67class SettingsWindow;89class AchievementSettingsWidget : public QWidget10{11Q_OBJECT1213public:14explicit AchievementSettingsWidget(SettingsWindow* dialog, QWidget* parent);15~AchievementSettingsWidget();1617private Q_SLOTS:18void updateEnableState();19void onHardcoreModeStateChanged();20void onAchievementsNotificationDurationSliderChanged();21void onLeaderboardsNotificationDurationSliderChanged();22void onLoginLogoutPressed();23void onViewProfilePressed();24void onAchievementsRefreshed(quint32 id, const QString& game_info_string);2526private:27void updateLoginState();2829Ui::AchievementSettingsWidget m_ui;3031SettingsWindow* m_dialog;32};333435