mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-11-15 03:36:53 -06:00
Safeguard for rework to support nested groups. Two things to change with rework: * Dropping onto a collapsed group appends instead of prepending * Group running state is not updated right away when there is a collapsed group above it for some reason
21 lines
535 B
C++
21 lines
535 B
C++
#define CATCH_CONFIG_RUNNER
|
|
#include "catch.hpp"
|
|
|
|
#include <QApplication>
|
|
|
|
#include <iostream>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
// The OBS Qt deps do not ship the offscreen platform plugin on all
|
|
// platforms, so it is only used as a fallback.
|
|
if (qEnvironmentVariableIsEmpty("QT_QPA_PLATFORM")) {
|
|
qputenv("QT_QPA_PLATFORM", "minimal;offscreen");
|
|
}
|
|
|
|
QApplication app(argc, argv);
|
|
std::cout << "Using Qt platform \""
|
|
<< QGuiApplication::platformName().toStdString() << "\"\n";
|
|
return Catch::Session().run(argc, argv);
|
|
}
|