mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
upgrade to 6.2,linux compile
This commit is contained in:
parent
6b01cba709
commit
fb2eac9b5e
|
@ -32,7 +32,7 @@
|
|||
#include <QWebEngineContextMenuData>
|
||||
#endif
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtCore5Compat>
|
||||
#include <QtCore5Compat/QRegExp>
|
||||
#include <QWebEngineContextMenuRequest>
|
||||
#include <QWebEngineFindTextResult>
|
||||
#endif
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include "globalbroadcaster.h"
|
||||
#include "article_inspect.h"
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtCore5Compat>
|
||||
#include <QtCore5Compat/QRegExp>
|
||||
#endif
|
||||
|
||||
class ResourceToSaveHandler;
|
||||
|
|
5
bgl.cc
5
bgl.cc
|
@ -31,9 +31,10 @@
|
|||
#include <QAtomicInt>
|
||||
#include <QDebug>
|
||||
|
||||
#include <QRegExp>
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtCore5Compat>
|
||||
#include <QtCore5Compat/QRegExp>
|
||||
#else
|
||||
#include <QRegExp>
|
||||
#endif
|
||||
|
||||
#include <QRegularExpression>
|
||||
|
|
|
@ -8,8 +8,12 @@
|
|||
#ifdef HAVE_X11
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/extensions/record.h>
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtGui/private/qtx11extras_p.h>
|
||||
#else
|
||||
#include <QX11Info>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
bool isRECORDBroken()
|
||||
{
|
||||
|
|
|
@ -10,7 +10,11 @@
|
|||
#include <zlib.h>
|
||||
#include "dictionary.hh"
|
||||
#include "iconv.hh"
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtCore5Compat/QTextCodec>
|
||||
#else
|
||||
#include <QTextCodec>
|
||||
#endif
|
||||
#include <QByteArray>
|
||||
#include "utf8.hh"
|
||||
|
||||
|
|
|
@ -12,7 +12,11 @@
|
|||
#include "mutex.hh"
|
||||
|
||||
#include <QString>
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtCore5Compat/QTextCodec>
|
||||
#else
|
||||
#include <QTextCodec>
|
||||
#endif
|
||||
#include <QMap>
|
||||
#include <QVector>
|
||||
#include <vector>
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
#define __FTSHELPERS_HH_INCLUDED__
|
||||
|
||||
#include <QString>
|
||||
#include <QRegExp>
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtCore5Compat>
|
||||
#include <QtCore5Compat/QRegExp>
|
||||
#else
|
||||
#include <QRegExp>
|
||||
#endif
|
||||
#include <QRunnable>
|
||||
#include <QSemaphore>
|
||||
|
|
|
@ -3,9 +3,10 @@
|
|||
|
||||
#include <QSemaphore>
|
||||
#include <QStringList>
|
||||
#include <QRegExp>
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtCore5Compat>
|
||||
#include <QtCore5Compat/QRegExp>
|
||||
#else
|
||||
#include <QRegExp>
|
||||
#endif
|
||||
#include <QAbstractListModel>
|
||||
#include <QList>
|
||||
|
|
6
gls.cc
6
gls.cc
|
@ -32,7 +32,11 @@
|
|||
#include <QBuffer>
|
||||
|
||||
#include <QRegularExpression>
|
||||
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtCore5Compat/QTextCodec>
|
||||
#else
|
||||
#include <QTextCodec>
|
||||
#endif
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include <map>
|
||||
|
|
|
@ -28,7 +28,7 @@ QT += core \
|
|||
printsupport \
|
||||
help
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 6): QT += webenginecore core5compat
|
||||
greaterThan(QT_MAJOR_VERSION, 5): QT += webenginecore core5compat
|
||||
|
||||
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050F00
|
||||
|
||||
|
@ -122,7 +122,8 @@ unix:!mac {
|
|||
QMAKE_CXXFLAGS += -rdynamic
|
||||
QMAKE_LFLAGS += -rdynamic
|
||||
|
||||
QT += x11extras
|
||||
lessThan(QT_MAJOR_VERSION, 6): QT += x11extras
|
||||
greaterThan(QT_MAJOR_VERSION, 5): QT += gui-private
|
||||
|
||||
CONFIG += link_pkgconfig
|
||||
PKGCONFIG += vorbisfile \
|
||||
|
|
|
@ -9,7 +9,11 @@
|
|||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/extensions/record.h>
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtGui/private/qtx11extras_p.h>
|
||||
#else
|
||||
#include <QX11Info>
|
||||
#endif
|
||||
#include <X11/Xlibint.h>
|
||||
|
||||
#undef Bool
|
||||
|
|
|
@ -13,9 +13,10 @@
|
|||
#include <QRunnable>
|
||||
#include <QThreadPool>
|
||||
#include <QSemaphore>
|
||||
#include <QRegExp>
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtCore5Compat>
|
||||
#include <QtCore5Compat/QRegExp>
|
||||
#else
|
||||
#include <QRegExp>
|
||||
#endif
|
||||
#include <QDir>
|
||||
#include <QCoreApplication>
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
#ifdef Q_OS_WIN32
|
||||
#include <windows.h>
|
||||
#elif defined(HAVE_X11)
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtGui/private/qtx11extras_p.h>
|
||||
#else
|
||||
#include <QX11Info>
|
||||
#endif
|
||||
#include <X11/X.h>
|
||||
#include <X11/XKBlib.h>
|
||||
#elif defined Q_OS_MAC
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <stub_msvc.h>
|
||||
#endif
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtCore5Compat>
|
||||
#include <QtCore5Compat/QRegExp>
|
||||
#endif
|
||||
#include <cctype>
|
||||
#include <QLocale>
|
||||
|
|
|
@ -62,7 +62,11 @@
|
|||
#endif
|
||||
|
||||
#ifdef HAVE_X11
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtGui/private/qtx11extras_p.h>
|
||||
#else
|
||||
#include <QX11Info>
|
||||
#endif
|
||||
#include <X11/Xlib.h>
|
||||
#include <fixx11h.h>
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#include <QCursor>
|
||||
#include <QDesktopWidget>
|
||||
|
||||
#include "scanflag.hh"
|
||||
#include "ui_scanflag.h"
|
||||
|
|
|
@ -8,9 +8,7 @@
|
|||
#include <QBitmap>
|
||||
#include <QMenu>
|
||||
#include <QMouseEvent>
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtCore5Compat>
|
||||
#else
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(6,0,0))
|
||||
#include <QDesktopWidget>
|
||||
#endif
|
||||
#include "gddebug.hh"
|
||||
|
|
|
@ -39,9 +39,10 @@
|
|||
#include <QThreadPool>
|
||||
#include <QAtomicInt>
|
||||
#include <QDebug>
|
||||
#include <QRegExp>
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtCore5Compat>
|
||||
#include <QtCore5Compat/QRegExp>
|
||||
#else
|
||||
#include <QRegExp>
|
||||
#endif
|
||||
#include <QStringList>
|
||||
#include <QDomDocument>
|
||||
|
|
|
@ -56,9 +56,6 @@ static PProcessIdToSessionId pProcessIdToSessionId = 0;
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
#include <QtCore5Compat>
|
||||
#endif
|
||||
#include <QRegularExpression>
|
||||
|
||||
namespace QtLP_Private {
|
||||
|
@ -113,8 +110,6 @@ QtLocalPeer::QtLocalPeer(QObject* parent, const QString &appId)
|
|||
lockFile.open(QIODevice::ReadWrite);
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool QtLocalPeer::isClient()
|
||||
{
|
||||
if (lockFile.isLocked())
|
||||
|
@ -137,7 +132,6 @@ bool QtLocalPeer::isClient()
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool QtLocalPeer::sendMessage(const QString &message, int timeout)
|
||||
{
|
||||
if (!isClient())
|
||||
|
@ -174,7 +168,6 @@ bool QtLocalPeer::sendMessage(const QString &message, int timeout)
|
|||
return res;
|
||||
}
|
||||
|
||||
|
||||
void QtLocalPeer::receiveConnection()
|
||||
{
|
||||
QLocalSocket* socket = server->nextPendingConnection();
|
||||
|
|
Loading…
Reference in a new issue