Skip to content

Commit e537ee9

Browse files
committed
removed widgets dependency from align test
1 parent 99f5438 commit e537ee9

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

align/CMakeLists.txt

+1-8
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,9 @@ if (APPLE)
1414
endif()
1515

1616

17-
SET(HEADERS
18-
aligndialog.h
19-
aligninspector.h
20-
)
2117

2218
SET(SOURCES
2319
main.cpp
24-
aligndialog.cpp
25-
aligninspector.cpp
2620
)
2721

2822

@@ -38,8 +32,7 @@ target_link_libraries(
3832
${JPEG_LIBRARIES}
3933
${RELIGHT_QT}::Core
4034
${RELIGHT_QT}::Gui
41-
${RELIGHT_QT}::Widgets
42-
${RELIGHT_QT}::Concurrent)
35+
)
4336

4437
target_compile_definitions(align PUBLIC _USE_MATH_DEFINES NOMINMAX)
4538

align/main.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#include <QImage>
77
#include <QPoint>
88
#include <QDir>
9-
#include <QGuiApplication>
9+
//#include <QGuiApplication>
1010

11-
#include "aligndialog.h"
11+
//#include "aligndialog.h"
1212

1313
using namespace std;
1414

@@ -87,10 +87,11 @@ QPoint align(QImage a, QImage b, int max, double &best_info, double &initial) {
8787
int main(int argc, char *argv[]) {
8888

8989
if(argc == 1) {
90+
/* QGuiApplication app(argc, argv);
9091
auto dialog = new AlignDialog;
9192
dialog->show();
9293
int res = dialog->exec();
93-
return res;
94+
return res; */
9495
}
9596

9697
//dir max_offset crop

0 commit comments

Comments
 (0)