diff options
Diffstat (limited to 'src/yuzu/debugger/profiler.cpp')
| -rw-r--r-- | src/yuzu/debugger/profiler.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/yuzu/debugger/profiler.cpp b/src/yuzu/debugger/profiler.cpp index 493ee0b178..55d4298fa6 100644 --- a/src/yuzu/debugger/profiler.cpp +++ b/src/yuzu/debugger/profiler.cpp @@ -1,6 +1,11 @@ +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + // SPDX-FileCopyrightText: 2015 Citra Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later +#if MICROPROFILE_ENABLED + #include <QAction> #include <QLayout> #include <QMouseEvent> @@ -14,7 +19,7 @@ // Include the implementation of the UI in this file. This isn't in microprofile.cpp because the // non-Qt frontends don't need it (and don't implement the UI drawing hooks either). -#if MICROPROFILE_ENABLED + #define MICROPROFILEUI_IMPL 1 #include "common/microprofileui.h" @@ -43,8 +48,6 @@ private: qreal x_scale = 1.0, y_scale = 1.0; }; -#endif - MicroProfileDialog::MicroProfileDialog(QWidget* parent) : QWidget(parent, Qt::Dialog) { setObjectName(QStringLiteral("MicroProfile")); setWindowTitle(tr("&MicroProfile")); @@ -52,8 +55,6 @@ MicroProfileDialog::MicroProfileDialog(QWidget* parent) : QWidget(parent, Qt::Di // Enable the maximize button setWindowFlags(windowFlags() | Qt::WindowMaximizeButtonHint); -#if MICROPROFILE_ENABLED - MicroProfileWidget* widget = new MicroProfileWidget(this); QLayout* layout = new QVBoxLayout(this); @@ -66,7 +67,6 @@ MicroProfileDialog::MicroProfileDialog(QWidget* parent) : QWidget(parent, Qt::Di setFocusProxy(widget); widget->setFocusPolicy(Qt::StrongFocus); widget->setFocus(); -#endif } QAction* MicroProfileDialog::toggleViewAction() { @@ -94,8 +94,6 @@ void MicroProfileDialog::hideEvent(QHideEvent* ev) { QWidget::hideEvent(ev); } -#if MICROPROFILE_ENABLED - /// There's no way to pass a user pointer to MicroProfile, so this variable is used to make the /// QPainter available inside the drawing callbacks. static QPainter* mp_painter = nullptr; |
