mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
opt: disable Qt≤6.7 deprecated features and disable Qt deprecation warnings
This commit is contained in:
parent
c864a9a897
commit
02143921f4
|
@ -192,6 +192,12 @@ endif ()
|
||||||
|
|
||||||
#### Compile definitions
|
#### Compile definitions
|
||||||
|
|
||||||
|
# Disable deprecated staffs for Qt<=6.7 (Bump this if ever consider bump Qt version)
|
||||||
|
target_compile_definitions(${GOLDENDICT} PRIVATE
|
||||||
|
QT_DISABLE_DEPRECATED_UP_TO=0x060700
|
||||||
|
QT_NO_DEPRECATED_WARNINGS
|
||||||
|
)
|
||||||
|
|
||||||
target_compile_definitions(${GOLDENDICT} PUBLIC
|
target_compile_definitions(${GOLDENDICT} PUBLIC
|
||||||
CMAKE_USED_HACK # temporal hack to avoid breaking qmake build
|
CMAKE_USED_HACK # temporal hack to avoid breaking qmake build
|
||||||
MAKE_QTMULTIMEDIA_PLAYER
|
MAKE_QTMULTIMEDIA_PLAYER
|
||||||
|
|
|
@ -88,8 +88,8 @@ QString MacMouseOver::CFStringRefToQString( CFStringRef str )
|
||||||
|
|
||||||
UniChar *chars = new UniChar[ length ];
|
UniChar *chars = new UniChar[ length ];
|
||||||
CFStringGetCharacters( str, CFRangeMake( 0, length ), chars );
|
CFStringGetCharacters( str, CFRangeMake( 0, length ), chars );
|
||||||
|
|
||||||
QString result = QString::fromUtf16( chars, length );
|
QString result = QString::fromUtf16( (char16_t*)chars, length );
|
||||||
|
|
||||||
delete[] chars;
|
delete[] chars;
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -31,7 +31,7 @@ Requires Windows 10 (1809 or later).
|
||||||
* For ArchLinux, pre-built binary is available from [archlinuxcn's repo](https://github.com/archlinuxcn/repo/tree/master/archlinuxcn/goldendict-ng-git).
|
* For ArchLinux, pre-built binary is available from [archlinuxcn's repo](https://github.com/archlinuxcn/repo/tree/master/archlinuxcn/goldendict-ng-git).
|
||||||
* [Gentoo package from PG_Overlay](https://gitlab.com/Perfect_Gentleman/PG_Overlay/-/tree/master/app-text/goldendict-ng)
|
* [Gentoo package from PG_Overlay](https://gitlab.com/Perfect_Gentleman/PG_Overlay/-/tree/master/app-text/goldendict-ng)
|
||||||
|
|
||||||
Minimum supported "Linux" versions is supposedly the current Ubuntu LTS or Debian's old stable or Qt6.4.
|
Minimum supported "Linux" version is supposedly the current Ubuntu LTS and Debian's oldstable.
|
||||||
|
|
||||||
## macOS
|
## macOS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue