7776889
--- a/qtgui/guiutils.cpp
7776889
+++ b/qtgui/guiutils.cpp
7776889
@@ -30,7 +30,9 @@
7776889
 
7776889
 #include <QSettings>
7776889
 #include <QStringList>
7776889
+#ifdef BUILDING_RECOLLGUI
7776889
 #include <QFont>
7776889
+#endif
7776889
 
7776889
 RclDynConf *g_dynconf;
7776889
 AdvSearchHist *g_advshistory;
7776889
@@ -200,9 +202,15 @@ void rwSettings(bool writing)
7776889
 
7776889
     SETTING_RW(prefs.reslistfontfamily, "/Recoll/prefs/reslist/fontFamily", 
7776889
                String, "");
7776889
-    SETTING_RW(prefs.reslistfontsize, "/Recoll/prefs/reslist/fontSize", Int, 
7776889
-               QFont().pointSize());
7776889
 
7776889
+    // While building the kio, we don't really care about QT Gui
7776889
+    // defaults and referencing QFont introduces a useless dependency
7776889
+#ifdef BUILDING_RECOLLGUI
7776889
+    SETTING_RW(prefs.reslistfontsize, "/Recoll/prefs/reslist/fontSize", Int, QFont().pointSize());
7776889
+#else
7776889
+    SETTING_RW(prefs.reslistfontsize, "/Recoll/prefs/reslist/fontSize", Int, 12);
7776889
+#endif
7776889
+    
7776889
     QString rlfDflt = QString::fromUtf8(prefs.dfltResListFormat);
7776889
     if (writing) {
7776889
         if (prefs.reslistformat.compare(rlfDflt)) {
7776889
--- a/qtgui/recoll.pro.in
7776889
+++ b/qtgui/recoll.pro.in
7776889
@@ -3,6 +3,7 @@ LANGUAGE        = C++
7776889
 
7776889
 VPATH = @srcdir@
7776889
 DEFINES += BUILDING_RECOLL
7776889
+DEFINES += BUILDING_RECOLLGUI
7776889
 
7776889
 @QMAKE_ENABLE_WEBKIT@ QT += webkit
7776889
 @QMAKE_ENABLE_WEBKIT@ DEFINES += USING_WEBKIT
7776889