Added the photo viewer application to the application module
[photoenhancer] / src / app / viewer / photoviewer.cpp
1 #include "photoviewer.h"
2 #include <QCoreApplication>
3
4 #include "workspace.h"
5 PhotoViewer::PhotoViewer(QWidget *parent) :
6     QMainWindow(parent)
7 {
8     mWorkspace=new Workspace();
9     setCentralWidget(mWorkspace);
10     processCommandLineArgs();
11
12 }
13 //temporary implementaion
14 void PhotoViewer::processCommandLineArgs()
15 {
16     mWorkspace->loadImage(qApp->arguments()[1]);
17 }
18