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

このコミットが含まれているのは:
2020-05-23 22:52:42 +02:00
コミット 13fb901044
5個のファイルの変更32行の追加8行の削除

8
shared/common.cpp ノーマルファイル
ファイルの表示

@ -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 ノーマルファイル
ファイルの表示

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

ファイルの表示

@ -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