Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Plasma Phonebook
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jonah Brüchert
Plasma Phonebook
Commits
c55b96aa
Commit
c55b96aa
authored
Sep 13, 2019
by
Nicolas Fella
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix i18n on Android
parent
01483fa5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
src/CMakeLists.txt
src/CMakeLists.txt
+1
-1
src/main.cpp
src/main.cpp
+3
-0
No files found.
src/CMakeLists.txt
View file @
c55b96aa
...
...
@@ -2,7 +2,7 @@ qt5_add_resources(RESOURCES resources.qrc)
add_executable
(
plasma-phonebook main.cpp phonesmodel.cpp declarativeaddressee.cpp contactimporter.cpp
${
RESOURCES
}
)
target_link_libraries
(
plasma-phonebook
Qt5::Core Qt5::Qml Qt5::Quick Qt5::Svg
KF5::Contacts KF5::People
KF5::Contacts KF5::People
KF5::I18n
)
if
(
ANDROID
)
...
...
src/main.cpp
View file @
c55b96aa
...
...
@@ -23,6 +23,8 @@
#include <QtQml>
#include <QUrl>
#include <KLocalizedContext>
#include "declarativeaddressee.h"
#include "phonesmodel.h"
#include "contactimporter.h"
...
...
@@ -38,6 +40,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
// back-end
QQmlApplicationEngine
engine
;
engine
.
rootContext
()
->
setContextObject
(
new
KLocalizedContext
(
&
engine
));
qmlRegisterType
<
Addressee
>
(
"org.kde.kcontacts"
,
1
,
0
,
"Addressee"
);
qmlRegisterUncreatableType
<
PhonesModel
>
(
"org.kde.kcontacts"
,
1
,
0
,
"PhonesModel"
,
"Get it from the Addressee"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment