mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Fix all compilation issues after enabling QT_DISABLE_DEPRECATED_UP_TO
This commit is contained in:
@ -19,10 +19,6 @@ target_compile_definitions(YACReaderLibraryServer PRIVATE
|
||||
YACREADER_LIBRARY
|
||||
)
|
||||
|
||||
# Resources
|
||||
qt_add_resources(yacreaderlibraryserver_images_rcc "${CMAKE_CURRENT_SOURCE_DIR}/images.qrc")
|
||||
target_sources(YACReaderLibraryServer PRIVATE ${yacreaderlibraryserver_images_rcc})
|
||||
|
||||
# Translations
|
||||
qt_add_translations(YACReaderLibraryServer
|
||||
TS_FILES
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>../images/f_overlayed.png</file>
|
||||
<file>../images/f_overlayed_retina.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
@ -4,6 +4,8 @@
|
||||
#include "yacreader_global.h"
|
||||
#include "yacreader_libraries.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
LibrariesUpdater::LibrariesUpdater()
|
||||
{
|
||||
}
|
||||
@ -14,7 +16,7 @@ void LibrariesUpdater::updateIfNeeded()
|
||||
|
||||
libraries.load();
|
||||
|
||||
foreach (QString name, libraries.getNames()) {
|
||||
for (const QString &name : libraries.getNames()) {
|
||||
QString libraryPath = libraries.getPath(name);
|
||||
QString libraryDataPath = YACReader::LibraryPaths::libraryDataPath(libraryPath);
|
||||
QString databasePath = YACReader::LibraryPaths::libraryDatabasePath(libraryPath);
|
||||
|
||||
Reference in New Issue
Block a user