summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/QtUtils/NonDefaultQPushButton.h
blob: 1e365a8a3d64102891b2fce0aa3a1b72ea4c1ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
};