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
10
namespace
zrythm::test_helpers
11
{
19
class
ScopedQCoreApplication
20
{
21
public
:
22
ScopedQCoreApplication ()
23
{
24
int
argc = 0;
25
char
** argv =
nullptr
;
26
app_ = std::make_unique<QCoreApplication> (argc, argv);
27
}
28
29
private
:
30
std::unique_ptr<QCoreApplication> app_;
31
};
32
}
tests
helpers
scoped_qcoreapplication.h
Generated by
1.15.0