mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
line 117: #define _WIN64 1 must be removed in ./compressed_archive/libp7zip/CPP/myWindows/StdAfx.h "cannot find -lpulse" compiling under Qt 5.0.2 can be fixed creating a symbolic link from libpulse.so.0 to libpulse.so (further research is needed)
52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
#include <QApplication>
|
|
#include <QPixmap>
|
|
#include <QLabel>
|
|
//#include <QMetaObject>
|
|
#include <QPushButton>
|
|
#include <QMainWindow>
|
|
#include <QtCore>
|
|
#include <QThread>
|
|
#include <QFile>
|
|
#include <QDataStream>
|
|
#include <QTranslator>
|
|
#include "main_window_viewer.h"
|
|
#include "configuration.h"
|
|
#include "exit_check.h"
|
|
|
|
|
|
#if defined(WIN32) && defined(_DEBUG)
|
|
#define _CRTDBG_MAP_ALLOC
|
|
#include <stdlib.h>
|
|
#include <crtdbg.h>
|
|
#define DEBUG_NEW new( _NORMAL_BLOCK, __FILE__, __LINE__ )
|
|
#define new DEBUG_NEW
|
|
#endif
|
|
|
|
int main(int argc, char * argv[])
|
|
{
|
|
#if defined(_MSC_VER) && defined(_DEBUG)
|
|
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
|
|
#endif
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
app.setApplicationName("YACReader");
|
|
app.setOrganizationName("YACReader");
|
|
|
|
QTranslator translator;
|
|
QString sufix = QLocale::system().name();
|
|
translator.load(QCoreApplication::applicationDirPath()+"/languages/yacreader_"+sufix);
|
|
app.installTranslator(&translator);
|
|
|
|
MainWindowViewer * mwv = new MainWindowViewer();
|
|
mwv->show();
|
|
|
|
int ret = app.exec();
|
|
|
|
//Configuration::getConfiguration().save();
|
|
|
|
YACReader::exitCheck(ret);
|
|
|
|
return ret;
|
|
}
|