summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2018-05-18 08:32:14 +0200
committerWerner Lemberg <wl@gnu.org>2018-05-18 08:33:11 +0200
commit2777a93a1766193da2403e94fd146dd1f21ba1bc (patch)
tree5274ac6c3885c6bed5e2a366568377949aa7f22a
parentc919fc42da8d63468b37aa1335581acd8974a2fa (diff)
[tutorial] Make `example4' compile with Qt5.
-rw-r--r--freetype2/docs/tutorial/example4.cpp4
-rw-r--r--freetype2/docs/tutorial/example4.pro2
2 files changed, 3 insertions, 3 deletions
diff --git a/freetype2/docs/tutorial/example4.cpp b/freetype2/docs/tutorial/example4.cpp
index 1b70f8d..35cb5c1 100644
--- a/freetype2/docs/tutorial/example4.cpp
+++ b/freetype2/docs/tutorial/example4.cpp
@@ -18,7 +18,7 @@
// whether all paths are fine, then say `qmake example4.pro' followed by
// `make'.
//
-// It has been tested with Qt version 4.7.0.
+// It has been tested with Qt versions 4.8.6 and 5.6.2.
#include <QtGui/QApplication>
#include <QWidget>
@@ -64,7 +64,7 @@ public:
if (!error)
{
error = FT_New_Face(m_library,
- fileName.toAscii().constData(),
+ fileName.toLatin1().constData(),
0,
&m_face);
if (!error)
diff --git a/freetype2/docs/tutorial/example4.pro b/freetype2/docs/tutorial/example4.pro
index 84fb112..5e4baa0 100644
--- a/freetype2/docs/tutorial/example4.pro
+++ b/freetype2/docs/tutorial/example4.pro
@@ -1,6 +1,6 @@
# example4.pro
-QT += core gui
+QT += core gui widgets
TARGET = example4
TEMPLATE = app
SOURCES += example4.cpp