summaryrefslogtreecommitdiff
path: root/x11/qt4-libs/patches/patch-cg
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2011-03-03 05:50:03 +0000
committeradam <adam@pkgsrc.org>2011-03-03 05:50:03 +0000
commit8ba4414cb82fd68577ce4eccabaa9609d79cfcd3 (patch)
tree387f15f8d5b42a6bbad64cfa0ffcff282752c037 /x11/qt4-libs/patches/patch-cg
parent6c1eb839470fde509d842f2059f076aa2360ef29 (diff)
downloadpkgsrc-8ba4414cb82fd68577ce4eccabaa9609d79cfcd3.tar.gz
Changes 4.7.2:
This is a maintenance release which contains bug-fixes based on feedback and contributions since the Qt 4.7.1 release back in November. It also marks the official release of Qt Quick. Qt Quick is a new feature within Qt that makes it easy to create light-weight apps and UIs. It contains the new QML language, the Qt Declarative module, and new tooling in Qt Creator to easily build apps. PkgSrc: now builds with Clang.
Diffstat (limited to 'x11/qt4-libs/patches/patch-cg')
-rw-r--r--x11/qt4-libs/patches/patch-cg15
1 files changed, 15 insertions, 0 deletions
diff --git a/x11/qt4-libs/patches/patch-cg b/x11/qt4-libs/patches/patch-cg
new file mode 100644
index 00000000000..a9868928676
--- /dev/null
+++ b/x11/qt4-libs/patches/patch-cg
@@ -0,0 +1,15 @@
+$NetBSD: patch-cg,v 1.1 2011/03/03 05:50:04 adam Exp $
+
+Avoid error when compiling with Clang.
+
+--- src/gui/dialogs/qfontdialog_mac.mm.orig 2011-01-12 10:16:56.000000000 +0000
++++ src/gui/dialogs/qfontdialog_mac.mm
+@@ -509,7 +509,7 @@ void QFontDialogPrivate::setFont(void *d
+
+ #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
+ if (qstrcmp(fe->name(), "CoreText") == 0) {
+- nsFont = reinterpret_cast<const NSFont *>(static_cast<QCoreTextFontEngineMulti *>(fe)->ctfont);
++ nsFont = (NSFont *)reinterpret_cast<const NSFont *>(static_cast<QCoreTextFontEngineMulti *>(fe)->ctfont);
+ } else
+ #endif
+ {