summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/appdb.cpp
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-22 13:56:21 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-22 13:56:21 +1000
commita08b5daf962c265e642306e33e3044650cc860ce (patch)
tree5c0dad24f2ce20a7c262cf8486053cd685d655d3 /plugin/src/Caelestia/appdb.cpp
parentdrawers: fix input mask on special ws (diff)
downloadcaelestia-shell-a08b5daf962c265e642306e33e3044650cc860ce.tar.gz
caelestia-shell-a08b5daf962c265e642306e33e3044650cc860ce.tar.bz2
caelestia-shell-a08b5daf962c265e642306e33e3044650cc860ce.zip
plugin/appdb: forward signals
Diffstat (limited to 'plugin/src/Caelestia/appdb.cpp')
-rw-r--r--plugin/src/Caelestia/appdb.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/plugin/src/Caelestia/appdb.cpp b/plugin/src/Caelestia/appdb.cpp
index f55b4db..a81019b 100644
--- a/plugin/src/Caelestia/appdb.cpp
+++ b/plugin/src/Caelestia/appdb.cpp
@@ -9,7 +9,17 @@ namespace caelestia {
AppEntry::AppEntry(QObject* entry, unsigned int frequency, QObject* parent)
: QObject(parent)
, m_entry(entry)
- , m_frequency(frequency) {}
+ , m_frequency(frequency) {
+ const auto mo = m_entry->metaObject();
+ const auto tmo = metaObject();
+
+ for (const auto& prop :
+ { "name", "comment", "execString", "startupClass", "genericName", "categories", "keywords" }) {
+ const auto metaProp = mo->property(mo->indexOfProperty(prop));
+ const auto thisMetaProp = tmo->property(tmo->indexOfProperty(prop));
+ connect(m_entry, metaProp.notifySignal(), this, thisMetaProp.notifySignal());
+ }
+}
QObject* AppEntry::entry() const {
return m_entry;
@@ -39,7 +49,7 @@ QString AppEntry::name() const {
return m_entry->property("name").toString();
}
-QString AppEntry::desc() const {
+QString AppEntry::comment() const {
return m_entry->property("comment").toString();
}
@@ -47,7 +57,7 @@ QString AppEntry::execString() const {
return m_entry->property("execString").toString();
}
-QString AppEntry::wmClass() const {
+QString AppEntry::startupClass() const {
return m_entry->property("startupClass").toString();
}