mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Translate language also for the launcher
This commit is contained in:
@@ -24,11 +24,15 @@ add_executable(Pdf4QtLaunchPad
|
||||
main.cpp
|
||||
icon.rc
|
||||
app.qrc
|
||||
launchapplicationwidget.h launchapplicationwidget.cpp launchapplicationwidget.ui
|
||||
launchdialog.h launchdialog.cpp launchdialog.ui
|
||||
launchapplicationwidget.h
|
||||
launchapplicationwidget.cpp
|
||||
launchapplicationwidget.ui
|
||||
launchdialog.h
|
||||
launchdialog.cpp
|
||||
launchdialog.ui
|
||||
)
|
||||
|
||||
target_link_libraries(Pdf4QtLaunchPad PRIVATE Qt6::Core Qt6::Gui Qt6::Widgets)
|
||||
target_link_libraries(Pdf4QtLaunchPad PRIVATE Pdf4QtLibCore Qt6::Core Qt6::Gui Qt6::Widgets)
|
||||
|
||||
set_target_properties(Pdf4QtLaunchPad PROPERTIES
|
||||
WIN32_EXECUTABLE ON
|
||||
|
@@ -21,6 +21,7 @@
|
||||
// SOFTWARE.
|
||||
|
||||
#include "launchdialog.h"
|
||||
#include "pdfapplicationtranslator.h"
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
@@ -33,6 +34,9 @@ int main(int argc, char *argv[])
|
||||
QCoreApplication::setApplicationName("PDF4QT LaunchPad");
|
||||
QApplication::setApplicationDisplayName(QApplication::translate("Application", "PDF4QT LaunchPad"));
|
||||
|
||||
pdf::PDFApplicationTranslator translator;
|
||||
translator.installTranslator();
|
||||
|
||||
QIcon appIcon(":/app-icon.svg");
|
||||
QApplication::setWindowIcon(appIcon);
|
||||
|
||||
|
Reference in New Issue
Block a user