| 1 | // Copyright 2023 Dolphin Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #include "DolphinQt/Config/ToolTipControls/ToolTipPushButton.h" |
| 5 | |
| 6 | ToolTipPushButton::ToolTipPushButton(const QString& text, QWidget* parent) |
| 7 | : ToolTipWidget(text, parent) |
| 8 | { |
| 9 | } |
| 10 | |
| 11 | QPoint ToolTipPushButton::GetToolTipPosition() const |
| 12 | { |
| 13 | return pos() + QPoint(width() / 2, height() / 2); |
| 14 | } |