diff --git a/README.md b/README.md index dae6b68..d9189f0 100644 --- a/README.md +++ b/README.md @@ -7,4 +7,11 @@ based on Caesium 1.7.0. You can get the original source code at [here](https://s - Remove country/region flags since the original filename have encoding issue which can cause a build failure, and also to avoid some potential regional internationalization issues. (216e1a9) - Resolution display as -1x-1 for some images with unregular filename (e.g. `2IGYT%BD]SYY77Q7R041(WD.jpg` and `G9E@W$_Y4GYMWJY)%R24X~2.jpg`): Recompile under newer Qt version should works. Original Caesium official binary comes with Qt 5.1.0, Recompiled and tested under Qt 5.15.2. - Click "Auto preview" checkbox and then click any image item will lead a crash. (0e3d5c5) + - Rework the language selection part, no longer depends on language filename and no longer have encoding issue. (c641be3) + - Port away from deprecated Qt APIs. (53a7ee1) + - Update zh_CN translations, align translation locale code to the one descripted inside the ts file. (1074ddd) +### Non-issue changes + + - UI tweaks: Hi-DPI-aware window size and text, use Qt logo from Qt built-in resource. + - (temporary) disable update checker (since this is a forked version and the update checker request the orginal version url for checking updates). diff --git a/caesium.cpp b/caesium.cpp index b015fba..bb5ebe6 100644 --- a/caesium.cpp +++ b/caesium.cpp @@ -336,6 +336,7 @@ Caesium::Caesium(QWidget *parent) : Caesium::openList(QDir::tempPath() + "/_caesium_/tmplst"); } + ui->actionAbout_Qt->setIcon(QIcon(QLatin1String(":/qt-project.org/qmessagebox/images/qtlogo-64.png"))); } Caesium::~Caesium() @@ -648,7 +649,7 @@ void Caesium::on_actionDonate_to_Caesium_triggered() void Caesium::on_browseToolButton_clicked() { QString outputPath = QFileDialog::getExistingDirectory(this, tr("Select output directory"), - "/home", + QDir::homePath(), QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); if (outputPath != "") @@ -771,18 +772,23 @@ void Caesium::on_actionAbout_Qt_triggered() void Caesium::on_actionCheck_for_Updates_triggered() { - ui->actionCheck_for_Updates->setEnabled(false); + QMessageBox::information(this, + tr("Information"), + tr("You are currently using a forked version of Caesium.\n" + "Update checker is temporary not available."), + QMessageBox::Ok); +// ui->actionCheck_for_Updates->setEnabled(false); - updater = new Updater(this); - updater->show(); +// updater = new Updater(this); +// updater->show(); - ui->actionCheck_for_Updates->setEnabled(true); +// ui->actionCheck_for_Updates->setEnabled(true); } void Caesium::checkForUpdateStartup() { - if (!settings.value("Preferences/startupupdt").value()) + if (!settings.value("Preferences/startupupdt").value() || true /* disable since this is a fork */) { return; } diff --git a/caesium.ui b/caesium.ui index c6e9cab..7c47ef4 100644 --- a/caesium.ui +++ b/caesium.ui @@ -963,6 +963,15 @@ + + + + 255 + 0 + 0 + + + @@ -983,6 +992,15 @@ + + + + 255 + 0 + 0 + + + @@ -1003,6 +1021,15 @@ + + + + 255 + 0 + 0 + + + @@ -1315,6 +1342,15 @@ + + + + 0 + 0 + 0 + + + @@ -1452,6 +1488,15 @@ + + + + 0 + 0 + 0 + + + @@ -1589,6 +1634,15 @@ + + + + 0 + 0 + 0 + + + @@ -1607,8 +1661,8 @@ - 53 - 17 + 39 + 13 176 223 @@ -1762,6 +1816,15 @@ + + + + 0 + 0 + 0 + + + @@ -1899,6 +1962,15 @@ + + + + 0 + 0 + 0 + + + @@ -2036,6 +2108,15 @@ + + + + 0 + 0 + 0 + + + @@ -2054,8 +2135,8 @@ - 53 - 16 + 39 + 13 176 223 @@ -2207,7 +2288,7 @@ 0 0 1250 - 21 + 25 @@ -2471,10 +2552,6 @@ - - - :/icons/qt.png:/icons/qt.png - About Qt diff --git a/icons.qrc b/icons.qrc index d602f10..b9f397c 100644 --- a/icons.qrc +++ b/icons.qrc @@ -16,7 +16,6 @@ icons/plus.png icons/preview.png icons/processing.png - icons/qt.png icons/real_size.png icons/remove.png icons/savelist.png diff --git a/icons/qt.png b/icons/qt.png deleted file mode 100644 index 23b741d..0000000 Binary files a/icons/qt.png and /dev/null differ diff --git a/preferences.cpp b/preferences.cpp index 61afdcd..21114d1 100644 --- a/preferences.cpp +++ b/preferences.cpp @@ -114,7 +114,7 @@ void Preferences::loadSettings() void Preferences::on_browseToolButton_clicked() { QString outputPath = QFileDialog::getExistingDirectory(this, tr("Select default output directory"), - "/home", + QDir::homePath(), QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); if (outputPath != "") diff --git a/preferences.ui b/preferences.ui index ff80eeb..faf48d0 100644 --- a/preferences.ui +++ b/preferences.ui @@ -9,8 +9,8 @@ 0 0 - 525 - 400 + 560 + 448 @@ -46,13 +46,13 @@ - 110 + 120 0 - 110 + 120 16777215 @@ -154,25 +154,6 @@ - - - - - 0 - 0 - - - - - - - Use a default output directory if none is specified - - - false - - - @@ -193,6 +174,25 @@ + + + + + 0 + 0 + + + + + + + Use a default output directory if none is specified + + + false + + +