26 lines
732 B
C++
26 lines
732 B
C++
#include "main_window/MainWindow.h"
|
|
#include "app/AppStyle.h"
|
|
|
|
#include "core/image/ImageDecodeConfig.h"
|
|
#include "core/large_image/VipsBackend.h"
|
|
|
|
#include <QApplication>
|
|
#include <QStyleFactory>
|
|
|
|
int main(int argc, char* argv[]) {
|
|
QApplication app(argc, argv);
|
|
app.setApplicationName(QStringLiteral("landscape tool"));
|
|
app.setStyle(QStyleFactory::create(QStringLiteral("Fusion")));
|
|
app.setStyleSheet(gui::appStyleSheet());
|
|
|
|
core::image_decode::prepareLargeImageReader();
|
|
const char* av0 = (argc > 0 && argv[0]) ? argv[0] : "landscape_tool";
|
|
core::VipsBackend::init(av0);
|
|
qAddPostRoutine([]() { core::VipsBackend::shutdown(); });
|
|
|
|
MainWindow window;
|
|
window.show();
|
|
|
|
return app.exec();
|
|
}
|