Commit 35d5fe5a authored by René J.V. Bertin's avatar René J.V. Bertin

Make font DPI class variables available everywhere.

#f97930a8 activated the font DPI widgets
on all platforms but forgot to provide the corresponding variables when
X11 isn't available.
This commit fixes compilation without X11 and adds a tooltip to alert
users why the new controls don't appear to have any effect.
parent ad34f5fe
......@@ -681,6 +681,11 @@ KFonts::KFonts(QWidget *parent, const QVariantList &args)
" properly with real DPI value better fonts should be used or configuration"
" of font hinting should be checked.</p>");
#if !defined(HAVE_X11) || !HAVE_X11
QString nothere = i18n("This property has no effect on this platform");
connect(spinboxDpi, SIGNAL(valueChanged(int)), SLOT(changed()));
......@@ -142,11 +142,9 @@ private:
QPushButton *aaSettingsButton;
FontAASettings *aaSettings;
#if HAVE_X11
int dpi_original;
QCheckBox *checkboxForceDpi;
QSpinBox *spinboxDpi;
QList<FontUseItem *> fontUseList;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment