looper/backends/ui/qt/main.cpp

20 lines
476 B
C++
Raw Normal View History

2024-11-20 08:15:45 -08:00
#include "main.h"
#include "main_window.h"
#include <QMainWindow>
#include <QWindow>
#include <QGuiApplication>
#include <QApplication>
std::string QtUIBackend::get_id() {
return "qt";
}
std::string QtUIBackend::get_name() {
return "QT";
}
int QtUIBackend::run(std::vector<std::string> args, int argc, char **argv) {
UIBackend::run(args, argc, argv);
QApplication app(argc, argv);
LooperWindow window(this->playback);
window.show();
return app.exec();
}