mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-14 08:12:16 +00:00
Fix a Qt warning (#1249)
This commit is contained in:
parent
2b8c2ce423
commit
1dabea7514
2 changed files with 2 additions and 2 deletions
|
@ -352,7 +352,7 @@ void SettingsDialog::updateNoteTextEdit(const QString& elementName) {
|
||||||
ui->descriptionText->setText(text.replace("\\n", "\n"));
|
ui->descriptionText->setText(text.replace("\\n", "\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SettingsDialog::eventFilter(QObject* obj, QEvent* event) {
|
bool SettingsDialog::override(QObject* obj, QEvent* event) {
|
||||||
if (event->type() == QEvent::Enter || event->type() == QEvent::Leave) {
|
if (event->type() == QEvent::Enter || event->type() == QEvent::Leave) {
|
||||||
if (qobject_cast<QWidget*>(obj)) {
|
if (qobject_cast<QWidget*>(obj)) {
|
||||||
bool hovered = (event->type() == QEvent::Enter);
|
bool hovered = (event->type() == QEvent::Enter);
|
||||||
|
|
|
@ -21,7 +21,7 @@ public:
|
||||||
explicit SettingsDialog(std::span<const QString> physical_devices, QWidget* parent = nullptr);
|
explicit SettingsDialog(std::span<const QString> physical_devices, QWidget* parent = nullptr);
|
||||||
~SettingsDialog();
|
~SettingsDialog();
|
||||||
|
|
||||||
bool eventFilter(QObject* obj, QEvent* event);
|
bool override(QObject* obj, QEvent* event);
|
||||||
void updateNoteTextEdit(const QString& groupName);
|
void updateNoteTextEdit(const QString& groupName);
|
||||||
|
|
||||||
int exec() override;
|
int exec() override;
|
||||||
|
|
Loading…
Add table
Reference in a new issue