Restore compatibility with Qt 4
The test system is Slackware 14.2, which uses Qt 4.8.7. * WANT_WIN_QT4 is defined, and has the expected meaning. Qt 5 is still the default. * The QT_NO_SOUND macro now excludes all headers and declarations relating to sound; the multimedia package is not needed to build (on any Qt 4, 5 or 6). * A new function, nh_qsprintf, replaces QString::asprintf, for Qt older than 5.5. These versions do not have QString::asprintf. * DYNAMIC_STATUSLINES is disabled for Qt older than 5.9. These versions do not have QSplitter::replaceWidget.
This commit is contained in:
@@ -106,6 +106,11 @@ ifndef WANT_WIN_QT
|
||||
ifdef WANT_WIN_ALL
|
||||
WANT_WIN_QT=1
|
||||
endif
|
||||
ifdef WANT_WIN_QT4
|
||||
ifndef WANT_WIN_QT
|
||||
WANT_WIN_QT=1
|
||||
endif # not WANT_WIN_QT
|
||||
endif # WANT_WIN_QT4
|
||||
ifdef WANT_WIN_QT5
|
||||
ifndef WANT_WIN_QT
|
||||
WANT_WIN_QT=1
|
||||
@@ -120,11 +125,19 @@ endif # not def WANT_WIN_QT
|
||||
|
||||
ifdef WANT_WIN_QT
|
||||
# WANT_WIN_QT5 is the default
|
||||
ifndef WANT_WIN_QT4
|
||||
ifndef WANT_WIN_QT5
|
||||
ifndef WANT_WIN_QT6
|
||||
WANT_WIN_QT5=1
|
||||
endif # not WANT_WIN_QT6
|
||||
endif # not WANT_WIN_QT5
|
||||
endif # not WANT_WIN_QT4
|
||||
ifdef WANT_WIN_QT4
|
||||
#Slackware 14.2 puts Qt4 here
|
||||
#if your Qt4 is elsewhere, change this to match
|
||||
QT4DIR=/usr/lib64/qt
|
||||
QTDIR=$(QT4DIR)
|
||||
endif # WANT_WIN_QT4
|
||||
endif # WANT_WIN_QT
|
||||
|
||||
ifdef WANT_WIN_QT
|
||||
|
||||
Reference in New Issue
Block a user