fix settings descriptions

they were broken, but this is the correct way to fix the qt warning
This commit is contained in:
fireph 2024-10-06 01:39:49 -07:00
parent 2fd4861d3e
commit 6acebb06e4
2 changed files with 2 additions and 2 deletions

View file

@ -352,7 +352,7 @@ void SettingsDialog::updateNoteTextEdit(const QString& elementName) {
ui->descriptionText->setText(text.replace("\\n", "\n"));
}
bool SettingsDialog::override(QObject* obj, QEvent* event) {
bool SettingsDialog::eventFilter(QObject* obj, QEvent* event) {
if (event->type() == QEvent::Enter || event->type() == QEvent::Leave) {
if (qobject_cast<QWidget*>(obj)) {
bool hovered = (event->type() == QEvent::Enter);

View file

@ -21,7 +21,7 @@ public:
explicit SettingsDialog(std::span<const QString> physical_devices, QWidget* parent = nullptr);
~SettingsDialog();
bool override(QObject* obj, QEvent* event);
bool eventFilter(QObject* obj, QEvent* event) override;
void updateNoteTextEdit(const QString& groupName);
int exec() override;