Avoid introducing dependency on qt-widgets in the kio
This commit is contained in:
parent
46e16da971
commit
289e781d90
@ -30,7 +30,9 @@
|
|||||||
|
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
#ifdef BUILDING_RECOLLGUI
|
||||||
#include <QFont>
|
#include <QFont>
|
||||||
|
#endif
|
||||||
|
|
||||||
RclDynConf *g_dynconf;
|
RclDynConf *g_dynconf;
|
||||||
AdvSearchHist *g_advshistory;
|
AdvSearchHist *g_advshistory;
|
||||||
@ -200,8 +202,14 @@ void rwSettings(bool writing)
|
|||||||
|
|
||||||
SETTING_RW(prefs.reslistfontfamily, "/Recoll/prefs/reslist/fontFamily",
|
SETTING_RW(prefs.reslistfontfamily, "/Recoll/prefs/reslist/fontFamily",
|
||||||
String, "");
|
String, "");
|
||||||
SETTING_RW(prefs.reslistfontsize, "/Recoll/prefs/reslist/fontSize", Int,
|
|
||||||
QFont().pointSize());
|
// While building the kio, we don't really care about QT Gui
|
||||||
|
// defaults and referencing QFont introduces a useless dependency
|
||||||
|
#ifdef BUILDING_RECOLLGUI
|
||||||
|
SETTING_RW(prefs.reslistfontsize, "/Recoll/prefs/reslist/fontSize", Int, QFont().pointSize());
|
||||||
|
#else
|
||||||
|
SETTING_RW(prefs.reslistfontsize, "/Recoll/prefs/reslist/fontSize", Int, 12);
|
||||||
|
#endif
|
||||||
|
|
||||||
QString rlfDflt = QString::fromUtf8(prefs.dfltResListFormat);
|
QString rlfDflt = QString::fromUtf8(prefs.dfltResListFormat);
|
||||||
if (writing) {
|
if (writing) {
|
||||||
|
|||||||
@ -3,6 +3,7 @@ LANGUAGE = C++
|
|||||||
|
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
DEFINES += BUILDING_RECOLL
|
DEFINES += BUILDING_RECOLL
|
||||||
|
DEFINES += BUILDING_RECOLLGUI
|
||||||
|
|
||||||
@QMAKE_ENABLE_WEBKIT@ QT += webkit
|
@QMAKE_ENABLE_WEBKIT@ QT += webkit
|
||||||
@QMAKE_ENABLE_WEBKIT@ DEFINES += USING_WEBKIT
|
@QMAKE_ENABLE_WEBKIT@ DEFINES += USING_WEBKIT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user