diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-05 13:14:56 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-05 13:14:56 +0200 |
commit | a5b1c1c4bd44741a54895c4e84846c045facce70 (patch) | |
tree | cca1263b04351ccc8a964705b0ba06c3a7d47eea | |
parent | d7e3a79c0f3692031c4f039077faa7667bc5d696 (diff) | |
download | kube-a5b1c1c4bd44741a54895c4e84846c045facce70.tar.gz kube-a5b1c1c4bd44741a54895c4e84846c045facce70.zip |
kube-mail is now kube
-rw-r--r-- | applications/CMakeLists.txt | 2 | ||||
-rw-r--r-- | applications/kube/CMakeLists.txt (renamed from applications/mail/CMakeLists.txt) | 8 | ||||
-rw-r--r-- | applications/kube/main.cpp (renamed from applications/mail/main.cpp) | 2 | ||||
-rw-r--r-- | applications/kube/org.kde.kube.appdata.xml (renamed from applications/mail/org.kde.kube.appdata.xml) | 2 | ||||
-rwxr-xr-x | applications/kube/org.kde.kube.desktop (renamed from applications/mail/org.kde.kube.desktop) | 2 | ||||
-rw-r--r-- | components/CMakeLists.txt | 2 | ||||
-rw-r--r-- | components/kube/contents/ui/Kube.qml (renamed from components/mail/contents/ui/Mail.qml) | 0 | ||||
-rw-r--r-- | components/kube/contents/ui/main.qml (renamed from components/mail/contents/ui/main.qml) | 4 | ||||
-rw-r--r-- | components/kube/metadata.desktop | 8 | ||||
-rw-r--r-- | components/kube/qmldir | 3 | ||||
-rw-r--r-- | components/mail/metadata.desktop | 8 | ||||
-rw-r--r-- | components/mail/qmldir | 3 | ||||
-rw-r--r-- | framework/qml/AutocompleteLineEdit.qml | 1 | ||||
-rw-r--r-- | framework/qml/PositiveButton.qml | 1 | ||||
-rw-r--r-- | tests/tst_applicationstart.qml | 4 |
15 files changed, 26 insertions, 24 deletions
diff --git a/applications/CMakeLists.txt b/applications/CMakeLists.txt index f7e6f1d6..1c4b36aa 100644 --- a/applications/CMakeLists.txt +++ b/applications/CMakeLists.txt | |||
@@ -1 +1 @@ | |||
add_subdirectory(mail) | add_subdirectory(kube) | ||
diff --git a/applications/mail/CMakeLists.txt b/applications/kube/CMakeLists.txt index 56bbf98a..36ce6a34 100644 --- a/applications/mail/CMakeLists.txt +++ b/applications/kube/CMakeLists.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | project(kube-mail) | 1 | project(kube) |
2 | 2 | ||
3 | cmake_minimum_required(VERSION 2.8.12) | 3 | cmake_minimum_required(VERSION 2.8.12) |
4 | cmake_policy(SET CMP0063 NEW) | 4 | cmake_policy(SET CMP0063 NEW) |
@@ -32,15 +32,15 @@ set (QT_MIN_VERSION "5.6.0") | |||
32 | find_package(KF5 REQUIRED COMPONENTS Package) | 32 | find_package(KF5 REQUIRED COMPONENTS Package) |
33 | 33 | ||
34 | # install executable | 34 | # install executable |
35 | set(kube_mail_SRCS main.cpp) | 35 | set(SRCS main.cpp) |
36 | 36 | ||
37 | if(APPLE OR WIN32) | 37 | if(APPLE OR WIN32) |
38 | # Sets the icon on Windows and OSX | 38 | # Sets the icon on Windows and OSX |
39 | file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../../icons/*-apps-kube_icon.*") | 39 | file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../../icons/*-apps-kube_icon.*") |
40 | ecm_add_app_icon(kube_mail_SRCS ICONS ${ICONS_SRCS}) | 40 | ecm_add_app_icon(SRCS ICONS ${ICONS_SRCS}) |
41 | endif() | 41 | endif() |
42 | 42 | ||
43 | add_executable(${PROJECT_NAME} ${kube_mail_SRCS}) | 43 | add_executable(${PROJECT_NAME} ${SRCS}) |
44 | qt5_use_modules(${PROJECT_NAME} Gui Quick Widgets WebEngine) | 44 | qt5_use_modules(${PROJECT_NAME} Gui Quick Widgets WebEngine) |
45 | target_link_libraries(${PROJECT_NAME} KF5::Package) | 45 | target_link_libraries(${PROJECT_NAME} KF5::Package) |
46 | 46 | ||
diff --git a/applications/mail/main.cpp b/applications/kube/main.cpp index b02c62d2..c893e029 100644 --- a/applications/mail/main.cpp +++ b/applications/kube/main.cpp | |||
@@ -61,7 +61,7 @@ int main(int argc, char *argv[]) | |||
61 | QQuickWebEngineProfile::defaultProfile()->setRequestInterceptor(wuri); | 61 | QQuickWebEngineProfile::defaultProfile()->setRequestInterceptor(wuri); |
62 | QIcon::setThemeName("kube"); | 62 | QIcon::setThemeName("kube"); |
63 | 63 | ||
64 | auto package = KPackage::PackageLoader::self()->loadPackage("KPackage/GenericQML", "org.kube.components.mail"); | 64 | auto package = KPackage::PackageLoader::self()->loadPackage("KPackage/GenericQML", "org.kube.components.kube"); |
65 | Q_ASSERT(package.isValid()); | 65 | Q_ASSERT(package.isValid()); |
66 | QQmlApplicationEngine engine; | 66 | QQmlApplicationEngine engine; |
67 | engine.addImageProvider(QLatin1String("kube"), new KubeImageProvider); | 67 | engine.addImageProvider(QLatin1String("kube"), new KubeImageProvider); |
diff --git a/applications/mail/org.kde.kube.appdata.xml b/applications/kube/org.kde.kube.appdata.xml index 90bef45b..1946cac5 100644 --- a/applications/mail/org.kde.kube.appdata.xml +++ b/applications/kube/org.kde.kube.appdata.xml | |||
@@ -18,6 +18,6 @@ | |||
18 | </screenshots> | 18 | </screenshots> |
19 | <project_group>KDE</project_group> | 19 | <project_group>KDE</project_group> |
20 | <provides> | 20 | <provides> |
21 | <binary>kube-mail</binary> | 21 | <binary>kube</binary> |
22 | </provides> | 22 | </provides> |
23 | </component> | 23 | </component> |
diff --git a/applications/mail/org.kde.kube.desktop b/applications/kube/org.kde.kube.desktop index 83d57dd8..290fd503 100755 --- a/applications/mail/org.kde.kube.desktop +++ b/applications/kube/org.kde.kube.desktop | |||
@@ -1,7 +1,7 @@ | |||
1 | [Desktop Entry] | 1 | [Desktop Entry] |
2 | Name=Kube | 2 | Name=Kube |
3 | Type=Application | 3 | Type=Application |
4 | Exec=kube-mail | 4 | Exec=kube |
5 | Icon=kube_icon | 5 | Icon=kube_icon |
6 | GenericName=Mail Client | 6 | GenericName=Mail Client |
7 | Comment=Send, receive and manage your mail with Kube | 7 | Comment=Send, receive and manage your mail with Kube |
diff --git a/components/CMakeLists.txt b/components/CMakeLists.txt index e339a700..3283286f 100644 --- a/components/CMakeLists.txt +++ b/components/CMakeLists.txt | |||
@@ -29,6 +29,6 @@ macro(install_component name) | |||
29 | kpackage_install_package(${name} org.kube.components.${name} "genericqml") | 29 | kpackage_install_package(${name} org.kube.components.${name} "genericqml") |
30 | endmacro(install_component) | 30 | endmacro(install_component) |
31 | 31 | ||
32 | install_component(mail) | 32 | install_component(kube) |
33 | install_component(accounts) | 33 | install_component(accounts) |
34 | install_component(mailviewer) | 34 | install_component(mailviewer) |
diff --git a/components/mail/contents/ui/Mail.qml b/components/kube/contents/ui/Kube.qml index 7cabf9a9..7cabf9a9 100644 --- a/components/mail/contents/ui/Mail.qml +++ b/components/kube/contents/ui/Kube.qml | |||
diff --git a/components/mail/contents/ui/main.qml b/components/kube/contents/ui/main.qml index abf0465d..4391ebe5 100644 --- a/components/mail/contents/ui/main.qml +++ b/components/kube/contents/ui/main.qml | |||
@@ -17,8 +17,8 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | import QtQuick 2.7 | 19 | import QtQuick 2.7 |
20 | import org.kube.components.mail 1.0 as MailComponent | 20 | import org.kube.components.kube 1.0 as KubeComponent |
21 | 21 | ||
22 | MailComponent.Mail { | 22 | KubeComponent.Kube { |
23 | 23 | ||
24 | } | 24 | } |
diff --git a/components/kube/metadata.desktop b/components/kube/metadata.desktop new file mode 100644 index 00000000..581bbdf4 --- /dev/null +++ b/components/kube/metadata.desktop | |||
@@ -0,0 +1,8 @@ | |||
1 | [Desktop Entry] | ||
2 | Name=Kube | ||
3 | X-KDE-PluginInfo-Name=org.kube.components.kube | ||
4 | Exec=kpackagelauncherqml -a org.kube.components.kube | ||
5 | X-Plasma-MainScript=ui/main.qml | ||
6 | X-KDE-ServiceTypes=KPackage/GenericQML | ||
7 | Icon=kmail2 | ||
8 | Type=Service | ||
diff --git a/components/kube/qmldir b/components/kube/qmldir new file mode 100644 index 00000000..f663c916 --- /dev/null +++ b/components/kube/qmldir | |||
@@ -0,0 +1,3 @@ | |||
1 | module org.kube.components.kube | ||
2 | |||
3 | Kube 1.0 Kube.qml | ||
diff --git a/components/mail/metadata.desktop b/components/mail/metadata.desktop deleted file mode 100644 index 470ad18c..00000000 --- a/components/mail/metadata.desktop +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | [Desktop Entry] | ||
2 | Name=Kube Mail | ||
3 | X-KDE-PluginInfo-Name=org.kube.components.mail | ||
4 | Exec=kpackagelauncherqml -a org.kube.components.mail | ||
5 | X-Plasma-MainScript=ui/main.qml | ||
6 | X-KDE-ServiceTypes=KPackage/GenericQML | ||
7 | Icon=kmail2 | ||
8 | Type=Service | ||
diff --git a/components/mail/qmldir b/components/mail/qmldir deleted file mode 100644 index 2c0088f6..00000000 --- a/components/mail/qmldir +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | module org.kube.components.mail | ||
2 | |||
3 | Mail 1.0 Mail.qml | ||
diff --git a/framework/qml/AutocompleteLineEdit.qml b/framework/qml/AutocompleteLineEdit.qml index c9b8e708..a232ee68 100644 --- a/framework/qml/AutocompleteLineEdit.qml +++ b/framework/qml/AutocompleteLineEdit.qml | |||
@@ -21,6 +21,7 @@ import QtQuick.Controls 2.0 as Controls2 | |||
21 | import QtQuick.Layouts 1.1 | 21 | import QtQuick.Layouts 1.1 |
22 | 22 | ||
23 | import org.kde.kirigami 1.0 as Kirigami | 23 | import org.kde.kirigami 1.0 as Kirigami |
24 | import org.kube.framework 1.0 as Kube | ||
24 | 25 | ||
25 | Controls2.TextField { | 26 | Controls2.TextField { |
26 | id: textField | 27 | id: textField |
diff --git a/framework/qml/PositiveButton.qml b/framework/qml/PositiveButton.qml index 37ddae51..9e23ee5d 100644 --- a/framework/qml/PositiveButton.qml +++ b/framework/qml/PositiveButton.qml | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | import QtQuick 2.7 | 19 | import QtQuick 2.7 |
20 | import QtQuick.Controls 2.0 as Controls | 20 | import QtQuick.Controls 2.0 as Controls |
21 | import org.kube.framework 1.0 as Kube | ||
21 | 22 | ||
22 | Controls.AbstractButton { | 23 | Controls.AbstractButton { |
23 | id: root | 24 | id: root |
diff --git a/tests/tst_applicationstart.qml b/tests/tst_applicationstart.qml index 15809395..b5d7a396 100644 --- a/tests/tst_applicationstart.qml +++ b/tests/tst_applicationstart.qml | |||
@@ -21,7 +21,7 @@ import QtQuick 2.7 | |||
21 | import QtQuick.Controls 2.0 | 21 | import QtQuick.Controls 2.0 |
22 | import QtQuick.Window 2.1 | 22 | import QtQuick.Window 2.1 |
23 | import QtTest 1.0 | 23 | import QtTest 1.0 |
24 | import org.kube.components.mail 1.0 as KubeMail | 24 | import org.kube.components.kube 1.0 as Kube |
25 | 25 | ||
26 | 26 | ||
27 | TestCase { | 27 | TestCase { |
@@ -30,7 +30,7 @@ TestCase { | |||
30 | height: 400 | 30 | height: 400 |
31 | name: "ApplicationStart" | 31 | name: "ApplicationStart" |
32 | 32 | ||
33 | KubeMail.Mail { | 33 | Kube.Kube { |
34 | } | 34 | } |
35 | 35 | ||
36 | function test_stuff() { | 36 | function test_stuff() { |