| 1 | // Copyright 2022 Dolphin Emulator Project |
| 2 | // Licensed under GPLv2+ |
| 3 | // Refer to the license.txt file included. |
| 4 | |
| 5 | #pragma once |
| 6 | |
| 7 | #include <QPushButton> |
| 8 | |
| 9 | // A custom QPushButton that sets the autoDefault option to false |
| 10 | // This makes sure random buttons are not highlighted anymore by default |
| 11 | class NonDefaultQPushButton : public QPushButton |
| 12 | { |
| 13 | public: |
| 14 | explicit NonDefaultQPushButton(const QString& text = {}, QWidget* parent = nullptr); |
| 15 | }; |