mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fix formatting
This commit is contained in:
parent
ad7944bb83
commit
7a8d85e023
@ -5,7 +5,7 @@ sudo apt-get update
|
||||
# Dependencies
|
||||
sudo apt-get install libboost-all-dev
|
||||
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
|
||||
sudo apt-get install qtbase5-dev
|
||||
sudo apt-get install qtbase5-dev
|
||||
sudo apt-get install ninja-build zlib1g-dev libavformat-dev libswscale-dev libtbb-dev libluajit-5.1-dev
|
||||
# Optional dependencies
|
||||
sudo apt-get install libminizip-dev libfuzzylite-dev qttools5-dev
|
||||
|
@ -329,12 +329,12 @@ endif()
|
||||
|
||||
if(ENABLE_LAUNCHER OR ENABLE_EDITOR)
|
||||
# Widgets finds its own dependencies (QtGui and QtCore).
|
||||
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets Network )
|
||||
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets Network )
|
||||
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets Network)
|
||||
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets Network)
|
||||
|
||||
find_package(QT NAMES Qt6 Qt5 COMPONENTS LinguistTools )
|
||||
find_package(QT NAMES Qt6 Qt5 COMPONENTS LinguistTools)
|
||||
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS LinguistTools)
|
||||
if(NOT Qt5LinguistTools_DIR)
|
||||
if(NOT Qt${QT_VERSION_MAJOR}LinguistTools_DIR)
|
||||
set(ENABLE_TRANSLATIONS OFF)
|
||||
endif()
|
||||
if(ENABLE_TRANSLATIONS)
|
||||
|
@ -118,7 +118,7 @@ void MainWindow::parseCommandLine(ExtractionOptions & extractionOptions)
|
||||
void MainWindow::loadTranslation()
|
||||
{
|
||||
#ifdef ENABLE_QT_TRANSLATIONS
|
||||
std::string translationFile = settings["general"]["language"].String()+ ".qm";
|
||||
std::string translationFile = settings["general"]["language"].String() + ".qm";
|
||||
|
||||
QVector<QString> searchPaths;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user