move Latte::Dialog to LatteCore library

--this way we can use it to plenty places
work/spdx
Michail Vourlakos 4 years ago
parent 3c8ae2fde2
commit 0d1661f942

@ -2,6 +2,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-latte-lib.h.cmake ${CMAKE_CURR
set(lattecoreplugin_SRCS
lattecoreplugin.cpp
dialog.cpp
environment.cpp
iconitem.cpp
quickwindowsystem.cpp

@ -21,6 +21,7 @@
#include "lattecoreplugin.h"
// local
#include "dialog.h"
#include "environment.h"
#include "iconitem.h"
#include "quickwindowsystem.h"
@ -37,6 +38,7 @@ void LatteCorePlugin::registerTypes(const char *uri)
Q_ASSERT(uri == QLatin1String("org.kde.latte.core"));
qmlRegisterUncreatableType<Latte::Types>(uri, 0, 2, "Types", "Latte Types uncreatable");
qmlRegisterType<Latte::IconItem>(uri, 0, 2, "IconItem");
qmlRegisterType<Latte::Quick::Dialog>(uri, 0, 2, "Dialog");
qmlRegisterSingletonType<Latte::Environment>(uri, 0, 2, "Environment", &Latte::environment_qobject_singletontype_provider);
qmlRegisterSingletonType<Latte::Tools>(uri, 0, 2, "Tools", &Latte::tools_qobject_singletontype_provider);
qmlRegisterSingletonType<Latte::QuickWindowSystem>(uri, 0, 2, "WindowSystem", &Latte::windowsystem_qobject_singletontype_provider);

@ -5,7 +5,6 @@ configure_file(metadata.desktop.cmake ${CMAKE_CURRENT_SOURCE_DIR}/package/metada
plasma_install_package(package org.kde.latte.plasmoid)
set(tasks_SRCS
plugin/dialog.cpp
plugin/types.cpp
plugin/lattetasksplugin.cpp
)

@ -336,7 +336,7 @@ Item {
////BEGIN interfaces
LatteTasks.Dialog{
LatteCore.Dialog{
id: windowsPreviewDlg
type: plasmoid.configuration.previewWindowAsPopup ? PlasmaCore.Dialog.PopupMenu : PlasmaCore.Dialog.Tooltip
flags: plasmoid.configuration.previewWindowAsPopup ? Qt.WindowStaysOnTopHint | Qt.WindowDoesNotAcceptFocus | Qt.Popup :

@ -20,7 +20,6 @@
#include "lattetasksplugin.h"
// local
#include "dialog.h"
#include "types.h"
// Qt
@ -31,6 +30,5 @@ void LatteTasksPlugin::registerTypes(const char *uri)
{
Q_ASSERT(uri == QLatin1String("org.kde.latte.private.tasks"));
qmlRegisterUncreatableType<Latte::Tasks::Types>(uri, 0, 1, "Types", "Latte Tasks Types uncreatable");
qmlRegisterType<Latte::Quick::Dialog>(uri, 0, 1, "Dialog");
}

@ -23,6 +23,8 @@ import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.kquickcontrolsaddons 2.0
import org.kde.latte.core 0.2 as LatteCore
PlasmaCore.ToolTipArea {
id: root
objectName: "org.kde.desktop-CompactApplet"
@ -145,7 +147,7 @@ PlasmaCore.ToolTipArea {
function onContextualActionsAboutToShow() { root.hideToolTip() }
}
PlasmaCore.Dialog {
LatteCore.Dialog {
id: popupWindow
objectName: "popupWindow"
flags: Qt.WindowStaysOnTopHint

Loading…
Cancel
Save