Skip to content

Commit

Permalink
refactor: use default qml library paths
Browse files Browse the repository at this point in the history
previous implementation stores data in share instead of lib (I guess, I
had issues with using default paths?). Let's use normal paths instead
  • Loading branch information
arcan1s committed Mar 31, 2024
1 parent a35b57e commit ac52888
Show file tree
Hide file tree
Showing 18 changed files with 51 additions and 108 deletions.
3 changes: 2 additions & 1 deletion sources/awesome-widget/package/contents/ui/about.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
import QtQuick 2.15
import org.kde.kcmutils as KCM

import org.kde.plasma.private.awesomewidget 1.0
import org.kde.plasma.awesomewidgets
import org.kde.plasma.private.awesomewidget


KCM.SimpleKCM {
Expand Down
3 changes: 2 additions & 1 deletion sources/awesome-widget/package/contents/ui/advanced.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import QtQuick 2.15
import QtQuick.Controls
import org.kde.kcmutils as KCM

import org.kde.plasma.private.awesomewidget 1.0
import org.kde.plasma.awesomewidgets
import org.kde.plasma.private.awesomewidget


KCM.SimpleKCM {
Expand Down
4 changes: 2 additions & 2 deletions sources/awesome-widget/package/contents/ui/appearance.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import QtQuick 2.15
import org.kde.kcmutils as KCM

import org.kde.plasma.private.awesomewidget 1.0
import "."
import org.kde.plasma.awesomewidgets
import org.kde.plasma.private.awesomewidget


KCM.SimpleKCM {
Expand Down
3 changes: 2 additions & 1 deletion sources/awesome-widget/package/contents/ui/dataengine.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import QtQuick 2.15
import QtQuick.Controls
import org.kde.kcmutils as KCM

import org.kde.plasma.private.awesomewidget 1.0
import org.kde.plasma.awesomewidgets
import org.kde.plasma.private.awesomewidget


KCM.SimpleKCM {
Expand Down
4 changes: 2 additions & 2 deletions sources/awesome-widget/package/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import QtQuick.Layouts
import org.kde.plasma.core as PlasmaCore
import org.kde.plasma.plasmoid 2.0

import org.kde.plasma.private.awesomewidget 1.0
import "."
import org.kde.plasma.awesomewidgets
import org.kde.plasma.private.awesomewidget


PlasmoidItem {
Expand Down
27 changes: 0 additions & 27 deletions sources/awesome-widget/package/contents/ui/qmldir

This file was deleted.

3 changes: 2 additions & 1 deletion sources/awesome-widget/package/contents/ui/tooltip.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import QtQuick 2.15
import QtQuick.Controls
import org.kde.kcmutils as KCM

import org.kde.plasma.private.awesomewidget 1.0
import org.kde.plasma.awesomewidgets
import org.kde.plasma.private.awesomewidget


KCM.SimpleKCM {
Expand Down
4 changes: 2 additions & 2 deletions sources/awesome-widget/package/contents/ui/widget.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import QtQuick 2.15
import QtQuick.Controls
import org.kde.kcmutils as KCM

import org.kde.plasma.private.awesomewidget 1.0
import "."
import org.kde.plasma.awesomewidgets
import org.kde.plasma.private.awesomewidget


KCM.SimpleKCM {
Expand Down
3 changes: 2 additions & 1 deletion sources/desktop-panel/package/contents/ui/about.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
import QtQuick 2.15
import org.kde.kcmutils as KCM

import org.kde.plasma.private.desktoppanel 1.0
import org.kde.plasma.awesomewidgets
import org.kde.plasma.private.desktoppanel


KCM.SimpleKCM {
Expand Down
4 changes: 2 additions & 2 deletions sources/desktop-panel/package/contents/ui/activeapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import QtQuick 2.15
import org.kde.kcmutils as KCM

import org.kde.plasma.private.desktoppanel 1.0
import "."
import org.kde.plasma.awesomewidgets
import org.kde.plasma.private.desktoppanel


KCM.SimpleKCM {
Expand Down
3 changes: 2 additions & 1 deletion sources/desktop-panel/package/contents/ui/advanced.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import QtQuick 2.15
import QtQuick.Controls
import org.kde.kcmutils as KCM

import org.kde.plasma.private.desktoppanel 1.0
import org.kde.plasma.awesomewidgets
import org.kde.plasma.private.desktoppanel


KCM.SimpleKCM {
Expand Down
4 changes: 2 additions & 2 deletions sources/desktop-panel/package/contents/ui/inactiveapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import QtQuick 2.15
import org.kde.kcmutils as KCM

import org.kde.plasma.private.desktoppanel 1.0
import "."
import org.kde.plasma.awesomewidgets
import org.kde.plasma.private.desktoppanel


KCM.SimpleKCM {
Expand Down
4 changes: 2 additions & 2 deletions sources/desktop-panel/package/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import QtQuick.Layouts
import org.kde.plasma.core as PlasmaCore
import org.kde.plasma.plasmoid 2.0

import org.kde.plasma.private.desktoppanel 1.0
import "."
import org.kde.plasma.awesomewidgets
import org.kde.plasma.private.desktoppanel


PlasmoidItem {
Expand Down
27 changes: 0 additions & 27 deletions sources/desktop-panel/package/contents/ui/qmldir

This file was deleted.

4 changes: 2 additions & 2 deletions sources/desktop-panel/package/contents/ui/widget.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import QtQuick 2.15
import org.kde.kcmutils as KCM

import org.kde.plasma.private.desktoppanel 1.0
import "."
import org.kde.plasma.awesomewidgets
import org.kde.plasma.private.desktoppanel


KCM.SimpleKCM {
Expand Down
9 changes: 2 additions & 7 deletions sources/qml/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
set(SUBPROJECT awesomewidgets-qml)
message(STATUS "Subproject ${SUBPROJECT}")

file(GLOB SUBPROJECT_SOURCE *.qml)
file(GLOB SUBPROJECT_QMLDIR_IN qmldir.in)

# prepare
configure_file(${SUBPROJECT_QMLDIR_IN} ${CMAKE_CURRENT_SOURCE_DIR}/../awesome-widget/package/contents/ui/qmldir)
configure_file(${SUBPROJECT_QMLDIR_IN} ${CMAKE_CURRENT_SOURCE_DIR}/../desktop-panel/package/contents/ui/qmldir)
file(GLOB SUBPROJECT_SOURCE *.qml qmldir)

# install
install(FILES ${SUBPROJECT_SOURCE} DESTINATION ${KDE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/qml)
install(FILES ${SUBPROJECT_SOURCE} DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/${PROJECT_NAME})
23 changes: 23 additions & 0 deletions sources/qml/qmldir
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# common QML constants
singleton General 1.0 General.qml

# custom QML UI classes
AboutTab AboutTab.qml
AWExtensions AWExtensions.qml
AWInfoLabel AWInfoLabel.qml
AWTagSelector AWTagSelector.qml
AWTextEditor AWTextEditor.qml
BugReport BugReport.qml
ButtonSelector ButtonSelector.qml
CheckBoxSelector CheckBoxSelector.qml
ColorSelector ColorSelector.qml
ComboBoxSelector ComboBoxSelector.qml
ExportDialog ExportDialog.qml
FontSelector FontSelector.qml
HtmlDefaultFunctionsBar HtmlDefaultFunctionsBar.qml
HtmlEditorButton HtmlEditorButton.qml
HtmlEditorColor HtmlEditorColor.qml
HtmlEditorFont HtmlEditorFont.qml
ImportDialog ImportDialog.qml
IntegerSelector IntegerSelector.qml
LineSelector LineSelector.qml
27 changes: 0 additions & 27 deletions sources/qml/qmldir.in

This file was deleted.

0 comments on commit ac52888

Please sign in to comment.