gsetting file

This commit is contained in:
jzxc95 2021-08-25 16:19:15 +08:00
parent e46719ec30
commit eb00cb444e
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,14 @@
<schemalist gettext-domain="kylin-nm">
<schema id="org.ukui.kylin-nm.switch" path="/org/ukui/kylin-nm/switch">
<key type="b" name="WirelessSwitch">
<default>true</default>
<summary>wireless switch</summary>
<description>Wireless switch.true is open,false is close.</description>
</key>
<key type="b" name="WiredSwirch">
<default>true</default>
<summary>wired switch</summary>
<description>Wired switch.true is open,false is close.</description>
</key>
</schema>
</schemalist>

View File

@ -17,7 +17,7 @@ CONFIG += qt warn_on
#CONFIG += release
CONFIG += link_pkgconfig
PKGCONFIG +=gio-2.0 glib-2.0 gio-unix-2.0 libnm libnma libsecret-1 gtk+-3.0
PKGCONFIG +=gio-2.0 glib-2.0 gio-unix-2.0 libnm libnma libsecret-1 gtk+-3.0 gsettings-qt
INCLUDEPATH += /usr/include/KF5/NetworkManagerQt
@ -27,9 +27,12 @@ target.path = /usr/bin
target.source += $$TARGET
desktop.path = /etc/xdg/autostart/
desktop.files = kylin-nm.desktop
gschema.files = org.ukui.kylin-nm.switch.gschema.xml
gschema.path = /usr/share/glib-2.0/schemas/
INSTALLS += target \
desktop \
gschema \
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
@ -63,3 +66,6 @@ unix {
MOC_DIR = .moc
OBJECTS_DIR = .obj
}
DISTFILES += \
org.ukui.kylin-nm.switch.gschema.xml