diff --git a/CMakeLists.txt b/CMakeLists.txt index f2f2811..e8c0bad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -176,7 +176,7 @@ else() res/gta5sync_ru.qm res/gta5sync_uk.qm res/gta5sync_zh_TW.qm - res/qt5/qtbase_en_GB.qm + res/qt${QT_VERSION_MAJOR}/qtbase_en_GB.qm ) endif() diff --git a/ImportDialog.cpp b/ImportDialog.cpp index 94d9763..1fb0d2f 100644 --- a/ImportDialog.cpp +++ b/ImportDialog.cpp @@ -332,7 +332,12 @@ void ImportDialog::processSettings(QString settingsProfile, bool setDefault) ui->cbUnlimited->setChecked(settings.value("UnlimitedBuffer", false).toBool()); ui->cbImportAsIs->setChecked(settings.value("ImportAsIs", false).toBool()); const QVariant data = settings.value("Resolution", SnapmaticPicture::getSnapmaticResolution()); - if (data.type() == QVariant::Size) { +#if QT_VERSION >= 0x060000 + if (data.typeId() == QMetaType::QSize) +#else + if (data.type() == QVariant::Size) +#endif + { int index = ui->cbResolution->findData(data); if (index != -1) { ui->cbResolution->setCurrentIndex(index); @@ -376,7 +381,12 @@ void ImportDialog::saveSettings(QString settingsProfile) #else const QVariant data = ui->cbResolution->itemData(ui->cbResolution->currentIndex()); #endif - if (data.type() == QVariant::Size) { +#if QT_VERSION >= 0x060000 + if (data.typeId() == QMetaType::QSize) +#else + if (data.type() == QVariant::Size) +#endif + { settings.setValue("Resolution", data); } else { @@ -905,7 +915,12 @@ void ImportDialog::on_cbResolution_currentIndexChanged(int index) #else const QVariant data = ui->cbResolution->itemData(ui->cbResolution->currentIndex()); #endif - if (data.type() == QVariant::Size) { +#if QT_VERSION >= 0x060000 + if (data.typeId() == QMetaType::QSize) +#else + if (data.type() == QVariant::Size) +#endif + { const QSize dataSize = data.toSize(); if (dataSize == SnapmaticPicture::getSnapmaticResolution()) { ui->cbAvatar->setEnabled(true); diff --git a/res/gta5sync.ts b/res/gta5sync.ts index f9609b1..789db1c 100644 --- a/res/gta5sync.ts +++ b/res/gta5sync.ts @@ -166,27 +166,27 @@ Pictures and Savegames ImageEditorDialog - + Overwrite Image... - + Apply changes - + &Overwrite - + Discard changes - + &Close @@ -247,8 +247,8 @@ Pictures and Savegames - - + + Background Colour: <span style="color: %1">%1</span> @@ -266,8 +266,8 @@ Pictures and Savegames - - + + Background Image: @@ -391,108 +391,108 @@ Pictures and Savegames - + Storage Background Image: Storage - + Crop Picture... - + &Crop - + Crop Picture - - + + Please import a new picture first - - + + Default Default as Default Profile - - - - - - + + + - - - - - - - - - - + + + + + + + + + - - + + + + + + Profile %1 Profile %1 as Profile 1 - - + + Load Settings... - - + + Save Settings... - - + + Snapmatic Avatar Zone - - + + Are you sure to use a square image outside of the Avatar Zone? When you want to use it as Avatar the image will be detached! - + Select Colour... - - + + Background Image: %1 - - + + Please select your settings profile - + File Background Image: File @@ -1314,8 +1314,8 @@ Press 1 for Default View - - + + @@ -1337,40 +1337,40 @@ Press 1 for Default View - - - - - - + + + + + + Import - - + + All image files (%1) - - + + All files (**) - - + + Can't import %1 because file can't be open - - + + Can't import %1 because file can't be parsed properly diff --git a/res/gta5sync_de.ts b/res/gta5sync_de.ts index d46e6f5..0498c97 100644 --- a/res/gta5sync_de.ts +++ b/res/gta5sync_de.ts @@ -184,27 +184,27 @@ Snapmatic Bilder und Spielständen Snapmatic Bild Editor - + Overwrite Image... Bild überschreiben... - + Apply changes Änderungen übernehmen - + &Overwrite &Überschreiben - + Discard changes Änderungen verwerfen - + &Close S&chließen @@ -257,8 +257,8 @@ Snapmatic Bilder und Spielständen - - + + Background Colour: <span style="color: %1">%1</span> Hintergrundfarbe: <span style="color: %1">%1</span> @@ -289,8 +289,8 @@ Snapmatic Bilder und Spielständen Importiere das Bild ohne Veränderungen, Snapmatic wird garantiert beschädigt wenn du nicht weißt was du tust - - + + Background Image: %1 Hintergrundbild: %1 @@ -367,8 +367,8 @@ Snapmatic Bilder und Spielständen - - + + Background Image: Hintergrundbild: @@ -407,103 +407,103 @@ Snapmatic Bilder und Spielständen Eigenes Bild - + Storage Background Image: Storage Speicher - + Crop Picture... Bild zuschneiden... - + &Crop Zu&schneiden - + Crop Picture Bild zuschneiden - - + + Please import a new picture first Bitte importiere ein neues Bild zuerst - - + + Default Default as Default Profile Standard - - - - - - + + + - - - - - - - - - - + + + + + + + + + - - + + + + + + Profile %1 Profile %1 as Profile 1 Profil %1 - - + + Load Settings... Einstellungen laden... - - + + Please select your settings profile Bitte wähle dein Einstellungsprofil aus - - + + Save Settings... Einstellungen speichern... - - + + Are you sure to use a square image outside of the Avatar Zone? When you want to use it as Avatar the image will be detached! Bist du sicher ein Quadrat Bild außerhalb der Avatar Zone zu verwenden? Wenn du es als Avatar verwenden möchtest wird es abgetrennt! - - + + Snapmatic Avatar Zone Snapmatic Avatar Zone - + Select Colour... Farbe auswählen... - + File Background Image: File Datei @@ -1345,8 +1345,8 @@ Drücke 1 für Standardmodus <h4>Folgende Snapmatic Bilder wurden repariert</h4>%1 - - + + @@ -1368,12 +1368,12 @@ Drücke 1 für Standardmodus Importieren... - - - - - - + + + + + + Import Importieren @@ -1395,15 +1395,15 @@ Drücke 1 für Standardmodus Importfähige Dateien (%1) - - + + All image files (%1) Alle Bilddateien (%1) - - + + All files (**) @@ -1437,15 +1437,15 @@ Drücke 1 für Standardmodus Fehler beim Lesen von Spielstanddatei - - + + Can't import %1 because file can't be open Kann %1 nicht importieren weil die Datei nicht geöffnet werden kann - - + + Can't import %1 because file can't be parsed properly Kann %1 nicht importieren weil die Datei nicht richtig gelesen werden kann diff --git a/res/gta5sync_en_US.ts b/res/gta5sync_en_US.ts index caee784..fa95a54 100644 --- a/res/gta5sync_en_US.ts +++ b/res/gta5sync_en_US.ts @@ -174,27 +174,27 @@ Pictures and Savegames - + Overwrite Image... - + Apply changes - + &Overwrite - + Discard changes - + &Close @@ -221,8 +221,8 @@ Pictures and Savegames - - + + Background Colour: <span style="color: %1">%1</span> Background Color: <span style="color: %1">%1</span> @@ -264,8 +264,8 @@ Pictures and Savegames - - + + Background Image: %1 @@ -357,8 +357,8 @@ Pictures and Savegames - - + + Background Image: @@ -397,102 +397,102 @@ Pictures and Savegames - + Storage Background Image: Storage - + Crop Picture... - + &Crop - + Crop Picture - - + + Please import a new picture first - - + + Default Default as Default Profile - - - - - - + + + - - - - - - - - - - + + + + + + + + + - - + + + + + + Profile %1 Profile %1 as Profile 1 - - + + Load Settings... - - + + Please select your settings profile - - + + Save Settings... - - + + Snapmatic Avatar Zone - - + + Are you sure to use a square image outside of the Avatar Zone? When you want to use it as Avatar the image will be detached! - + Select Colour... Select Color... - + File Background Image: File @@ -1334,8 +1334,8 @@ Press 1 for Default View - - + + @@ -1357,12 +1357,12 @@ Press 1 for Default View - - - - - - + + + + + + Import @@ -1390,15 +1390,15 @@ Press 1 for Default View - - + + All image files (%1) - - + + All files (**) @@ -1437,15 +1437,15 @@ Press 1 for Default View - - + + Can't import %1 because file can't be open - - + + Can't import %1 because file can't be parsed properly diff --git a/res/gta5sync_fr.ts b/res/gta5sync_fr.ts index ba36413..51b0f4e 100644 --- a/res/gta5sync_fr.ts +++ b/res/gta5sync_fr.ts @@ -184,27 +184,27 @@ et les fichiers de sauvegarde de Grand Theft Auto V Éditeur d'images Snapmatic - + Overwrite Image... Remplacer l'image... - + Apply changes Appliquer les modifications - + &Overwrite &Remplacer - + Discard changes Annuler les modifications - + &Close &Fermer @@ -257,8 +257,8 @@ et les fichiers de sauvegarde de Grand Theft Auto V - - + + Background Colour: <span style="color: %1">%1</span> Couleur de fond : <span style="color: %1">%1</span> @@ -284,8 +284,8 @@ et les fichiers de sauvegarde de Grand Theft Auto V Supprimer l'image de fond - - + + Background Image: %1 Image de fond : %1 @@ -367,8 +367,8 @@ et les fichiers de sauvegarde de Grand Theft Auto V - - + + Background Image: Image de fond : @@ -407,103 +407,103 @@ et les fichiers de sauvegarde de Grand Theft Auto V Image personnalisé - + Storage Background Image: Storage Stockage - + Crop Picture... Rogner l'image... - + &Crop &Rogner - + Crop Picture Rogner l'image - - + + Please import a new picture first Veuillez d'abord importer une nouvelle image - - + + Default Default as Default Profile Défaut - - - - - - + + + - - - - - - - - - - + + + + + + + + + - - + + + + + + Profile %1 Profile %1 as Profile 1 Profil %1 - - + + Load Settings... Charger les paramètres... - - + + Please select your settings profile Veuillez choisir votre profil de paramètres - - + + Save Settings... Sauvegarder les paramètres... - - + + Are you sure to use a square image outside of the Avatar Zone? When you want to use it as Avatar the image will be detached! Êtes-vous sûr d'utiliser une image carrée en dehors de la Zone d'Avatar ? Si vous l'utilisez comme Avatar, l'image sera détachée ! - - + + Snapmatic Avatar Zone Zone d'Avatar Snapmatic - + Select Colour... Choisir une couleur... - + File Background Image: File Fichier @@ -1356,8 +1356,8 @@ Appuyer sur 1 pour le mode par défaut <h4>Les Snapmatic suivants ont été répaés</h4>%1 - - + + @@ -1379,12 +1379,12 @@ Appuyer sur 1 pour le mode par défaut Importer... - - - - - - + + + + + + Import Importer @@ -1401,15 +1401,15 @@ Appuyer sur 1 pour le mode par défaut Photos Snapmatic (PGTA*) - - + + All image files (%1) Toutes les images (%1) - - + + All files (**) @@ -1455,15 +1455,15 @@ Appuyer sur 1 pour le mode par défaut Impossible de lire le fichier de sauvegarde - - + + Can't import %1 because file can't be open Impossible d'importer %1, le fichier ne peut pas être ouvert - - + + Can't import %1 because file can't be parsed properly Impossible d'importer %1, le fichier ne peut pas être parsé correctement diff --git a/res/gta5sync_ko.ts b/res/gta5sync_ko.ts index 861cd2e..1f3234b 100644 --- a/res/gta5sync_ko.ts +++ b/res/gta5sync_ko.ts @@ -176,27 +176,27 @@ Pictures and Savegames ImageEditorDialog - + Overwrite Image... 이미지 덮어쓰기 - + Apply changes 변경 사항 적용 - + &Overwrite 덮어쓰기(&O) - + Discard changes 변경 사항 무시 - + &Close 닫기(&C) @@ -257,8 +257,8 @@ Pictures and Savegames - - + + Background Colour: <span style="color: %1">%1</span> 배경 색상: <span style="color: %1">%1</span> @@ -276,8 +276,8 @@ Pictures and Savegames - - + + Background Image: 배경 이미지: @@ -403,112 +403,112 @@ Pictures and Savegames 사용자 지정 사진 - - + + Background Image: %1 배경 이미지: %1 - + Storage Background Image: Storage 배경 이미지: 저장됨 저장됨 - + Crop Picture... 사진 자르기 - + &Crop 자르기(&C) - + Crop Picture 사진 자르기 - - + + Load Settings... 설정 불러오기 - - + + Please import a new picture first 먼저 새 이미지를 가져오세요 - - + + Default Default as Default Profile 기본 프로필로 기본 설정 기본 - - - - - - + + + - - - - - - - - - - + + + + + + + + + - - + + + + + + Profile %1 Profile %1 as Profile 1 %1을 프로필 1로 지정합니다. 프로필 %1 - - + + Please select your settings profile 설정 프로필을 선택하세요 - - + + Save Settings... 설정 저장 - - + + Snapmatic Avatar Zone 스냅매틱 아바타 영역 - - + + Are you sure to use a square image outside of the Avatar Zone? When you want to use it as Avatar the image will be detached! 아바타 구역 밖에서 네모난 이미지를 정말 사용합니까? 아바타로 사용하려는 경우 이미지가 분리됩니다! - + Select Colour... 색상 선택 - + File Background Image: File 배경 이미지: 파일 @@ -1350,8 +1350,8 @@ Press 1 for Default View %2 파일 중 %1 파일을 내보냅니다. - - + + @@ -1373,40 +1373,40 @@ Press 1 for Default View 가져오기 - - - - - - + + + + + + Import 가져오기 - - + + All image files (%1) 모든 이미지 파일 (%1) - - + + All files (**) 모든 파일 (**) - - + + Can't import %1 because file can't be open 파일을 열 수 없으므로 %1을 가져올 수 없습니다. - - + + Can't import %1 because file can't be parsed properly 파일을 구문 분석할 수 없으므로 %1을 가져올 수 없습니다. diff --git a/res/gta5sync_ru.ts b/res/gta5sync_ru.ts index 3a61e34..aa966f7 100644 --- a/res/gta5sync_ru.ts +++ b/res/gta5sync_ru.ts @@ -188,27 +188,27 @@ Pictures and Savegames Редактор картинок Snapmatic - + Overwrite Image... Перезаписать картинку... - + Apply changes Применить изменения - + &Overwrite &Перезаписать - + Discard changes Отменить изменения - + &Close &Закрыть @@ -261,8 +261,8 @@ Pictures and Savegames - - + + Background Colour: <span style="color: %1">%1</span> Цвет фона: <span style="color: %1">%1</span> @@ -293,8 +293,8 @@ Pictures and Savegames Импортировать как есть, не меняя картинку. Обязательно поломает Snapmatic, если не знаешь, что делаешь - - + + Background Image: %1 Фоновая картинка: %1 @@ -375,8 +375,8 @@ Pictures and Savegames - - + + Background Image: Фоновая картинка: @@ -415,102 +415,102 @@ Pictures and Savegames Своя Картинка - + Storage Background Image: Storage Хранилище - + Crop Picture... Обрезать картинку... - + &Crop Об&резать - + Crop Picture Обрезать картинку - - + + Please import a new picture first Импортируй сначала новую картинку - - + + Default Default as Default Profile По умолчанию - - - - - - + + + - - - - - - - - - - + + + + + + + + + - - + + + + + + Profile %1 Profile %1 as Profile 1 Профиль %1 - - + + Load Settings... Загрузить настройки... - - + + Please select your settings profile Пожалуйста, выбери профиль для настроек - - + + Save Settings... Сохранить настройки... - - + + Are you sure to use a square image outside of the Avatar Zone? When you want to use it as Avatar the image will be detached! Ты точно хочешь использовать квадратное изображение вне зоны аватарки? Если это аватар, то изображение будет обрезано! - - + + Snapmatic Avatar Zone Зона Snapmatic Аватарки - + Select Colour... Выбрать цвет... - + File Background Image: File Файл @@ -1357,8 +1357,8 @@ Press 1 for Default View <h4>Нижеследующие картинки Snapmatic были восстановлены</h4>%1 - - + + @@ -1380,12 +1380,12 @@ Press 1 for Default View Импортировать... - - - - - - + + + + + + Import Импортировать @@ -1402,8 +1402,8 @@ Press 1 for Default View Картинка Snapmatic (PGTA*) - - + + All files (**) @@ -1454,22 +1454,22 @@ Press 1 for Default View Файлы для импорта (%1) - - + + All image files (%1) Все файлы изображений (%1) - - + + Can't import %1 because file can't be open Не удалось открыть %1, файл не может быть открыт - - + + Can't import %1 because file can't be parsed properly Не получилось импортировать %1, файл не может быть правильно обработан diff --git a/res/gta5sync_uk.ts b/res/gta5sync_uk.ts index aa1dc7e..4acd23d 100644 --- a/res/gta5sync_uk.ts +++ b/res/gta5sync_uk.ts @@ -179,27 +179,27 @@ Pictures and Savegames ImageEditorDialog - + Overwrite Image... Перезаписати зображення... - + Apply changes Застосувати зміни - + &Overwrite &Перезаписати - + Discard changes Скасувати зміни - + &Close &Закрити @@ -260,8 +260,8 @@ Pictures and Savegames - - + + Background Colour: <span style="color: %1">%1</span> Фоновий колір: <span style="color: %1">%1</span> @@ -279,8 +279,8 @@ Pictures and Savegames - - + + Background Image: Фонове зображення: @@ -404,109 +404,109 @@ Pictures and Savegames Користувацьке Зображення - + Storage Background Image: Storage Зберігання - + Crop Picture... Обрізати зображення... - + &Crop &Обрізати - + Crop Picture Обрізати зображення - - + + Please import a new picture first Спершу імпортуйте нове зображення - - + + Default Default as Default Profile Стандартний - - - - - - + + + - - - - - - - - - - + + + + + + + + + - - + + + + + + Profile %1 Profile %1 as Profile 1 Профіль %1 - - + + Load Settings... Завантажити параметри... - - + + Save Settings... Зберегти параметри... - - + + Snapmatic Avatar Zone Зона Snapmatic Аватару - - + + Are you sure to use a square image outside of the Avatar Zone? When you want to use it as Avatar the image will be detached! Ви впевнені, що будете використовувати квадратне зображення поза зоною аватара? Якщо ви хочете використовувати його як Аватар, зображення буде відокремлено! - + Select Colour... Вибір кольору... - - + + Background Image: %1 Фонове зображення: %1 - - + + Please select your settings profile Будь ласка, виберіть свій профіль налаштувань - + File Background Image: File Файл @@ -1340,8 +1340,8 @@ Press 1 for Default View Експортується файл %1 з %2 файлів - - + + @@ -1363,40 +1363,40 @@ Press 1 for Default View Імпортування... - - - - - - + + + + + + Import Імпорт - - + + All image files (%1) Файли зображень (%1) - - + + All files (**) Усі файли (**) - - + + Can't import %1 because file can't be open Неможливо імпортувати %1, оскільки файл не може бути відкритий - - + + Can't import %1 because file can't be parsed properly Неможливо імпортувати %1, оскільки файл неможливо розібрати правильно diff --git a/res/gta5sync_zh_TW.ts b/res/gta5sync_zh_TW.ts index 3632ea2..0892cfb 100644 --- a/res/gta5sync_zh_TW.ts +++ b/res/gta5sync_zh_TW.ts @@ -175,27 +175,27 @@ Pictures and Savegames ImageEditorDialog - + Overwrite Image... 修改圖片... - + Apply changes 套用變更 - + &Overwrite 修改(&O) - + Discard changes 捨棄變更 - + &Close 關閉(&C) @@ -256,8 +256,8 @@ Pictures and Savegames - - + + Background Colour: <span style="color: %1">%1</span> 背景顏色: <span style="color: %1">%1</span> @@ -275,8 +275,8 @@ Pictures and Savegames - - + + Background Image: 背景圖片: @@ -400,108 +400,108 @@ Pictures and Savegames 自訂圖片 - + Storage Background Image: Storage 儲存 - + Crop Picture... 裁剪圖片... - + &Crop 裁剪(&C) - + Crop Picture 裁剪圖片 - - + + Please import a new picture first 請先匯入新圖片 - - + + Default Default as Default Profile 預設 - - - - - - + + + - - - - - - - - - - + + + + + + + + + - - + + + + + + Profile %1 Profile %1 as Profile 1 設定檔 %1 - - + + Load Settings... 載入設定... - - + + Save Settings... 儲存設定... - - + + Snapmatic Avatar Zone Snapmatic 大頭貼區域 - - + + Are you sure to use a square image outside of the Avatar Zone? When you want to use it as Avatar the image will be detached! 你確定要在大頭貼區域以外的地方使用方形圖片嗎? 作為大頭貼的圖片將被分離! - + Select Colour... 選擇顏色... - - + + Background Image: %1 背景圖片: %1 - - + + Please select your settings profile 請選擇設定檔 - + File Background Image: File 文件 @@ -1334,8 +1334,8 @@ Press 1 for Default View 匯出檔案中 %1 共 %2 個檔案 - - + + @@ -1357,40 +1357,40 @@ Press 1 for Default View 匯入... - - - - - - + + + + + + Import 匯入 - - + + All image files (%1) 所有圖片 (%1) - - + + All files (**) 所有檔案 (**) - - + + Can't import %1 because file can't be open 無法匯入 %1,因為檔案無法開啟 - - + + Can't import %1 because file can't be parsed properly 無法匯入 %1,因為檔案無法正確解析