summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-05 13:14:56 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-05 13:14:56 +0200
commita5b1c1c4bd44741a54895c4e84846c045facce70 (patch)
treecca1263b04351ccc8a964705b0ba06c3a7d47eea
parentd7e3a79c0f3692031c4f039077faa7667bc5d696 (diff)
downloadkube-a5b1c1c4bd44741a54895c4e84846c045facce70.tar.gz
kube-a5b1c1c4bd44741a54895c4e84846c045facce70.zip
kube-mail is now kube
-rw-r--r--applications/CMakeLists.txt2
-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-xapplications/kube/org.kde.kube.desktop (renamed from applications/mail/org.kde.kube.desktop)2
-rw-r--r--components/CMakeLists.txt2
-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.desktop8
-rw-r--r--components/kube/qmldir3
-rw-r--r--components/mail/metadata.desktop8
-rw-r--r--components/mail/qmldir3
-rw-r--r--framework/qml/AutocompleteLineEdit.qml1
-rw-r--r--framework/qml/PositiveButton.qml1
-rw-r--r--tests/tst_applicationstart.qml4
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 @@
1project(kube-mail) 1project(kube)
2 2
3cmake_minimum_required(VERSION 2.8.12) 3cmake_minimum_required(VERSION 2.8.12)
4cmake_policy(SET CMP0063 NEW) 4cmake_policy(SET CMP0063 NEW)
@@ -32,15 +32,15 @@ set (QT_MIN_VERSION "5.6.0")
32find_package(KF5 REQUIRED COMPONENTS Package) 32find_package(KF5 REQUIRED COMPONENTS Package)
33 33
34# install executable 34# install executable
35set(kube_mail_SRCS main.cpp) 35set(SRCS main.cpp)
36 36
37if(APPLE OR WIN32) 37if(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})
41endif() 41endif()
42 42
43add_executable(${PROJECT_NAME} ${kube_mail_SRCS}) 43add_executable(${PROJECT_NAME} ${SRCS})
44qt5_use_modules(${PROJECT_NAME} Gui Quick Widgets WebEngine) 44qt5_use_modules(${PROJECT_NAME} Gui Quick Widgets WebEngine)
45target_link_libraries(${PROJECT_NAME} KF5::Package) 45target_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]
2Name=Kube 2Name=Kube
3Type=Application 3Type=Application
4Exec=kube-mail 4Exec=kube
5Icon=kube_icon 5Icon=kube_icon
6GenericName=Mail Client 6GenericName=Mail Client
7Comment=Send, receive and manage your mail with Kube 7Comment=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")
30endmacro(install_component) 30endmacro(install_component)
31 31
32install_component(mail) 32install_component(kube)
33install_component(accounts) 33install_component(accounts)
34install_component(mailviewer) 34install_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
19import QtQuick 2.7 19import QtQuick 2.7
20import org.kube.components.mail 1.0 as MailComponent 20import org.kube.components.kube 1.0 as KubeComponent
21 21
22MailComponent.Mail { 22KubeComponent.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]
2Name=Kube
3X-KDE-PluginInfo-Name=org.kube.components.kube
4Exec=kpackagelauncherqml -a org.kube.components.kube
5X-Plasma-MainScript=ui/main.qml
6X-KDE-ServiceTypes=KPackage/GenericQML
7Icon=kmail2
8Type=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 @@
1module org.kube.components.kube
2
3Kube 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]
2Name=Kube Mail
3X-KDE-PluginInfo-Name=org.kube.components.mail
4Exec=kpackagelauncherqml -a org.kube.components.mail
5X-Plasma-MainScript=ui/main.qml
6X-KDE-ServiceTypes=KPackage/GenericQML
7Icon=kmail2
8Type=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 @@
1module org.kube.components.mail
2
3Mail 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
21import QtQuick.Layouts 1.1 21import QtQuick.Layouts 1.1
22 22
23import org.kde.kirigami 1.0 as Kirigami 23import org.kde.kirigami 1.0 as Kirigami
24import org.kube.framework 1.0 as Kube
24 25
25Controls2.TextField { 26Controls2.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
19import QtQuick 2.7 19import QtQuick 2.7
20import QtQuick.Controls 2.0 as Controls 20import QtQuick.Controls 2.0 as Controls
21import org.kube.framework 1.0 as Kube
21 22
22Controls.AbstractButton { 23Controls.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
21import QtQuick.Controls 2.0 21import QtQuick.Controls 2.0
22import QtQuick.Window 2.1 22import QtQuick.Window 2.1
23import QtTest 1.0 23import QtTest 1.0
24import org.kube.components.mail 1.0 as KubeMail 24import org.kube.components.kube 1.0 as Kube
25 25
26 26
27TestCase { 27TestCase {
@@ -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() {