Skip to content

Commit 43a9c1c

Browse files
committed
Use QGuiApplication in tests
1 parent 8fa2220 commit 43a9c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include <QCoreApplication>
3+
#include <QGuiApplication>
44
#include <gtest/gtest.h>
55
#include <filesystem>
66
#include <fstream>
@@ -20,7 +20,7 @@ std::string readFileStr(const std::string &fileName)
2020

2121
int main(int argc, char **argv)
2222
{
23-
QCoreApplication a(argc, argv);
23+
QGuiApplication a(argc, argv);
2424
std::filesystem::current_path(DATA_DIR);
2525
::testing::InitGoogleTest(&argc, argv);
2626
return RUN_ALL_TESTS();

0 commit comments

Comments
 (0)