summaryrefslogtreecommitdiff
path: root/src/gui/styles
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2012-07-19 11:27:33 +0100
committerQt by Nokia <qt-info@nokia.com>2012-07-27 18:07:01 +0200
commit34303994dbc8ed58a9fa00e8ad9b75e01e629d46 (patch)
tree5014cdcb3d1a117456f10af36570ac40131dc584 /src/gui/styles
parentfc5174ccce1906c787b7a5ab2f389a1ef439bc2b (diff)
downloadqt4-tools-34303994dbc8ed58a9fa00e8ad9b75e01e629d46.tar.gz
Use improved QLibrary search heuristics for libgtk
Change-Id: Id9bdb0199f926d1a518a94080285f96f0810cf92 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/styles')
-rw-r--r--src/gui/styles/qgtkstyle_p.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/styles/qgtkstyle_p.cpp b/src/gui/styles/qgtkstyle_p.cpp
index ce09502f05..777b5a3449 100644
--- a/src/gui/styles/qgtkstyle_p.cpp
+++ b/src/gui/styles/qgtkstyle_p.cpp
@@ -313,6 +313,7 @@ void QGtkStylePrivate::resolveGtk() const
{
// enforce the "0" suffix, so we'll open libgtk-x11-2.0.so.0
QLibrary libgtk(QLS("gtk-x11-2.0"), 0, 0);
+ libgtk.setLoadHints(QLibrary::ImprovedSearchHeuristics);
gtk_init = (Ptr_gtk_init)libgtk.resolve("gtk_init");
gtk_window_new = (Ptr_gtk_window_new)libgtk.resolve("gtk_window_new");