Skip to content

Commit

Permalink
sync: from linuxdeepin/dtkgui
Browse files Browse the repository at this point in the history
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#212
  • Loading branch information
deepin-ci-robot committed Dec 15, 2023
1 parent d96aef2 commit 143899e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.13)
cmake_minimum_required(VERSION 3.25)

set(DTK_VERSION "5.6.11" CACHE STRING "define project version")
project(DtkGui
Expand Down
6 changes: 5 additions & 1 deletion src/kernel/dguiapplicationhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <QLockFile>
#include <QDirIterator>
#include <QDesktopServices>
#include <QTimer>

#ifdef Q_OS_UNIX
#include <QDBusError>
Expand Down Expand Up @@ -494,7 +495,10 @@ DGuiApplicationHelper::DGuiApplicationHelper()
: QObject(nullptr)
, DObject(*new DGuiApplicationHelperPrivate(this))
{

// load qt/qtbase translation for qt app which load dtk ?
QTimer::singleShot(0, [](){
DGuiApplicationHelper::loadTranslator();
});
}

void DGuiApplicationHelper::initialize()
Expand Down

0 comments on commit 143899e

Please sign in to comment.