Add NonDefaultQPushButton to set autoDefault of buttons to false

This commit is contained in:
Martin
2022-03-08 08:51:29 +01:00
parent 9af9e791f6
commit a4d031cfda
23 changed files with 111 additions and 60 deletions

View File

@ -0,0 +1,15 @@
// Copyright 2022 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <QPushButton>
// A custom QPushButton that sets the autoDefault option to false
// This makes sure random buttons are not highlighted anymore by default
class NonDefaultQPushButton : public QPushButton
{
public:
explicit NonDefaultQPushButton(const QString& text = {}, QWidget* parent = nullptr);
};