mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-03 11:32:43 +01:00
GeneralPane: Add BalloonTip to discord presence checkbox
This commit is contained in:
parent
ce0ab58dc9
commit
809b8a683f
@ -25,6 +25,7 @@
|
|||||||
#include "Core/System.h"
|
#include "Core/System.h"
|
||||||
|
|
||||||
#include "DolphinQt/Config/ConfigControls/ConfigBool.h"
|
#include "DolphinQt/Config/ConfigControls/ConfigBool.h"
|
||||||
|
#include "DolphinQt/Config/ToolTipControls/ToolTipCheckBox.h"
|
||||||
#include "DolphinQt/QtUtils/ModalMessageBox.h"
|
#include "DolphinQt/QtUtils/ModalMessageBox.h"
|
||||||
#include "DolphinQt/QtUtils/NonDefaultQPushButton.h"
|
#include "DolphinQt/QtUtils/NonDefaultQPushButton.h"
|
||||||
#include "DolphinQt/QtUtils/SetWindowDecorations.h"
|
#include "DolphinQt/QtUtils/SetWindowDecorations.h"
|
||||||
@ -154,7 +155,7 @@ void GeneralPane::CreateBasic()
|
|||||||
basic_group_layout->addWidget(m_checkbox_auto_disc_change);
|
basic_group_layout->addWidget(m_checkbox_auto_disc_change);
|
||||||
|
|
||||||
#ifdef USE_DISCORD_PRESENCE
|
#ifdef USE_DISCORD_PRESENCE
|
||||||
m_checkbox_discord_presence = new QCheckBox(tr("Show Current Game on Discord"));
|
m_checkbox_discord_presence = new ToolTipCheckBox(tr("Show Current Game on Discord"));
|
||||||
basic_group_layout->addWidget(m_checkbox_discord_presence);
|
basic_group_layout->addWidget(m_checkbox_discord_presence);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -394,6 +395,13 @@ void GeneralPane::AddDescriptions()
|
|||||||
"provided."
|
"provided."
|
||||||
"<br>- By launching an M3U file with File > Open or the command line interface."
|
"<br>- By launching an M3U file with File > Open or the command line interface."
|
||||||
"<br><br><dolphin_emphasis>If unsure, leave this unchecked.</dolphin_emphasis>");
|
"<br><br><dolphin_emphasis>If unsure, leave this unchecked.</dolphin_emphasis>");
|
||||||
|
#ifdef USE_DISCORD_PRESENCE
|
||||||
|
static constexpr char TR_DISCORD_PRESENCE_DESCRIPTION[] =
|
||||||
|
QT_TR_NOOP("Shows which game is active and the duration of your current play session in your "
|
||||||
|
"Discord status."
|
||||||
|
"<br><br>This setting cannot be changed while emulation is active."
|
||||||
|
"<br><br><dolphin_emphasis>If unsure, leave this checked.</dolphin_emphasis>");
|
||||||
|
#endif
|
||||||
|
|
||||||
m_checkbox_dualcore->SetDescription(tr(TR_DUALCORE_DESCRIPTION));
|
m_checkbox_dualcore->SetDescription(tr(TR_DUALCORE_DESCRIPTION));
|
||||||
|
|
||||||
@ -402,4 +410,8 @@ void GeneralPane::AddDescriptions()
|
|||||||
m_checkbox_override_region_settings->SetDescription(tr(TR_OVERRIDE_REGION_SETTINGS_DESCRIPTION));
|
m_checkbox_override_region_settings->SetDescription(tr(TR_OVERRIDE_REGION_SETTINGS_DESCRIPTION));
|
||||||
|
|
||||||
m_checkbox_auto_disc_change->SetDescription(tr(TR_AUTO_DISC_CHANGE_DESCRIPTION));
|
m_checkbox_auto_disc_change->SetDescription(tr(TR_AUTO_DISC_CHANGE_DESCRIPTION));
|
||||||
|
|
||||||
|
#ifdef USE_DISCORD_PRESENCE
|
||||||
|
m_checkbox_discord_presence->SetDescription(tr(TR_DISCORD_PRESENCE_DESCRIPTION));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ class QPushButton;
|
|||||||
class QRadioButton;
|
class QRadioButton;
|
||||||
class QSlider;
|
class QSlider;
|
||||||
class QVBoxLayout;
|
class QVBoxLayout;
|
||||||
|
class ToolTipCheckBox;
|
||||||
|
|
||||||
namespace Core
|
namespace Core
|
||||||
{
|
{
|
||||||
@ -47,7 +48,7 @@ private:
|
|||||||
ConfigBool* m_checkbox_override_region_settings;
|
ConfigBool* m_checkbox_override_region_settings;
|
||||||
ConfigBool* m_checkbox_auto_disc_change;
|
ConfigBool* m_checkbox_auto_disc_change;
|
||||||
#ifdef USE_DISCORD_PRESENCE
|
#ifdef USE_DISCORD_PRESENCE
|
||||||
QCheckBox* m_checkbox_discord_presence;
|
ToolTipCheckBox* m_checkbox_discord_presence;
|
||||||
#endif
|
#endif
|
||||||
QLabel* m_label_speedlimit;
|
QLabel* m_label_speedlimit;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user