-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.cpp
More file actions
47 lines (37 loc) · 1023 Bytes
/
Copy pathmain.cpp
File metadata and controls
47 lines (37 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include <QObject>
#include <QWidget>
#include <QApplication>
#include <QMainWindow>
#include <QToolBar>
#include <QAction>
#include <QMenuBar>
#include <QThread>
#include <QDebug>
#include "ui/management/tabbedwindow.h"
void testOnlyFlirImg()
{
#include <flirimg/flirimg.h>
QString currPath = QDir::currentPath();
QString imgPath = currPath + "/nabtdimgs/FLIR1097.jpg";
flirImg *fimg;
fimg = new flirImg();
fimg->processImage(imgPath.toStdString());
qDebug() << "testOnlyFlirImg -- Done";
}
void load_tabs(tabbedWindow &w)
{
QString currPath = QDir::currentPath();
QString imgPath1 = "/home/eicossa/Data/nabtd/new/20160512_011655_303_R.JPG";
w.addAnotherTab(imgPath1);
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// when only need to debug the flirImg shizz
// testOnlyFlirImg();
// Create tabbed views
tabbedWindow w;
load_tabs(w);
w.showMaximized();
return a.exec();
}