added Common namespace. cli: use settings instead of env for db path

This commit is contained in:
2020-05-23 22:52:42 +02:00
szülő 2161c21e4d
commit bb4824764c
5 fájl változott, egészen pontosan 84 új sor hozzáadva és 60 régi sor törölve

8
shared/common.cpp Normal file
Fájl megtekintése

@ -0,0 +1,8 @@
#include "common.h"
void Common::setupAppInfo()
{
QCoreApplication::setOrganizationName("quitesimple.org");
QCoreApplication::setOrganizationDomain("quitesimple.org");
QCoreApplication::setApplicationName("qss");
}

9
shared/common.h Normal file
Fájl megtekintése

@ -0,0 +1,9 @@
#ifndef COMMON_H
#define COMMON_H
#include <QCoreApplication>
namespace Common
{
void setupAppInfo();
}
#endif

Fájl megtekintése

@ -26,14 +26,16 @@ DEFINES += QT_DEPRECATED_WARNINGS
SOURCES += sqlitesearch.cpp \
qssgeneralexception.cpp \
qssquery.cpp
qssquery.cpp \
common.cpp
HEADERS += sqlitesearch.h \
filedata.h \
searchresult.h \
qssgeneralexception.h \
token.h \
qssquery.h
qssquery.h \
common.h
unix {
target.path = /usr/lib
INSTALLS += target