Commit 10d94991 authored by Harald Sitter's avatar Harald Sitter 🏳🌈
Browse files

set kaboutdata for keyboard preview to get a window title set

without this the window title defaults to bin name which is worthless.

also updated messages.sh to find files recursively + pick up qml (not
currently used)

the domain is inherited from parent cmakelists of the kcm

FIXED-IN: 5.20
BUG: 420112
parent 0d5e2ee3
#! /usr/bin/env bash
$EXTRACTRC kcm*.ui >> rc.cpp
$XGETTEXT *.cpp -o $podir/kcmkeyboard.pot
$XGETTEXT `find . -name "*.cpp" -o -name "*.qml"` -o $podir/kcmkeyboard.pot
rm -f rc.cpp
......@@ -25,6 +25,8 @@ target_link_libraries(tastenbrett
Qt5::Quick
Qt5::Gui
Qt5::X11Extras
KF5::CoreAddons
KF5::I18n
XCB::XCB
PkgConfig::XKBCommon
${X11_Xkbfile_LIB}
......
......@@ -24,6 +24,9 @@
#include <QQmlContext>
#include <QX11Info>
#include <KAboutData>
#include <KLocalizedString>
#include "application.h"
#include "config-workspace.h"
#include "doodad.h"
......@@ -57,9 +60,16 @@ int main(int argc, char *argv[])
Application app(argc, argv);
Q_ASSERT(app.platformName() == QStringLiteral("xcb"));
KAboutData aboutData(QStringLiteral("tastenbrett"),
i18nc("app display name", "Keyboard Preview"),
QStringLiteral("1.0"),
i18nc("app description", "Keyboard layout visualization"),
KAboutLicense::GPL);
KAboutData::setApplicationData(aboutData);
QCommandLineParser parser;
parser.addHelpOption();
parser.addVersionOption();
aboutData.setupCommandLine(&parser);
QCommandLineOption modelOption(QStringList { "m", "model" }, {}, QStringLiteral("MODEL"));
parser.addOption(modelOption);
QCommandLineOption layoutOption(QStringList { "l", "layout" }, {}, QStringLiteral("LAYOUT"));
......@@ -69,6 +79,7 @@ int main(int argc, char *argv[])
QCommandLineOption optionsOption(QStringList { "o", "options" }, {}, QStringLiteral("OPTIONS"));
parser.addOption(optionsOption);
parser.process(app);
aboutData.processCommandLine(&parser);
XkbRF_VarDefsRec varDefs;
memset(&varDefs, 0, sizeof(XkbRF_VarDefsRec));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment