diff options
author | Timothy Pearson <[email protected]> | 2011-10-06 13:29:55 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-10-06 13:29:55 -0500 |
commit | d71a83ef0d306b8e23b2be5baa3e347116ba8253 (patch) | |
tree | 7e97f8f0eaf491f1700e537a9c87b03863e2a8fa /src/dialogs/qfontdialog.cpp | |
parent | b1444fa097ab72348e6b86526d2d7d7ab673529e (diff) | |
download | qt3-d71a83ef0d306b8e23b2be5baa3e347116ba8253.tar.gz qt3-d71a83ef0d306b8e23b2be5baa3e347116ba8253.zip |
Apply qtkdeintegration patches to Qt3v3.5.13
This partially resolves Bug #528
Diffstat (limited to 'src/dialogs/qfontdialog.cpp')
-rw-r--r-- | src/dialogs/qfontdialog.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dialogs/qfontdialog.cpp b/src/dialogs/qfontdialog.cpp index 1deec00..d1c31fa 100644 --- a/src/dialogs/qfontdialog.cpp +++ b/src/dialogs/qfontdialog.cpp @@ -59,6 +59,10 @@ #include <private/qfontdata_p.h> #include <qvalidator.h> +#ifdef Q_WS_X11 +#include "private/qtkdeintegration_x11_p.h" +#endif + /*! \class QFontDialog qfontdialog.h \ingroup dialogs @@ -387,9 +391,15 @@ QFont QFontDialog::getFont( bool *ok, QWidget *parent,const char* name) return getFont( ok, 0, parent, name ); } +extern bool qt_use_native_dialogs; + QFont QFontDialog::getFont( bool *ok, const QFont *def, QWidget *parent, const char* name) { +#if defined(Q_WS_X11) + if ( qt_use_native_dialogs && QKDEIntegration::enabled()) + return QKDEIntegration::getFont( ok, def, parent, name ); +#endif QFont result; if ( def ) result = *def; |