Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
scoped_qcoreapplication.h
1// SPDX-FileCopyrightText: © 2025 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4#pragma once
5
6#include <memory>
7
8#include <QCoreApplication>
9
10namespace zrythm::test_helpers
11{
19class ScopedQCoreApplication
20{
21public:
22 ScopedQCoreApplication ()
23 {
24 int argc = 0;
25 char ** argv = nullptr;
26 app_ = std::make_unique<QCoreApplication> (argc, argv);
27 }
28
29private:
30 std::unique_ptr<QCoreApplication> app_;
31};
32}