dolphin/Source/Core/DolphinQt/Config/ToolTipControls/ToolTipPushButton.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
377 B
C++
Raw Normal View History

2023-08-12 13:33:43 -06:00
// Copyright 2023 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include "DolphinQt/Config/ToolTipControls/ToolTipPushButton.h"
ToolTipPushButton::ToolTipPushButton(const QString& text, QWidget* parent)
: ToolTipWidget(text, parent)
{
}
QPoint ToolTipPushButton::GetToolTipPosition() const
{
return pos() + QPoint(width() / 2, height() / 2);
}