summaryrefslogtreecommitdiff
path: root/bootstrap.cxx
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-04-05 21:31:27 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-04-05 21:31:27 +0800
commita0096545d2bffc622167d3164c328af8308cc93b (patch)
tree9ef83aee33fbbd3fd57c896b6dec1f17eba0dff2 /bootstrap.cxx
parent77a4d6f3ca3a506f24a64262f09456058247b1bb (diff)
Simplify & make it usable
Diffstat (limited to 'bootstrap.cxx')
-rw-r--r--bootstrap.cxx19
1 files changed, 3 insertions, 16 deletions
diff --git a/bootstrap.cxx b/bootstrap.cxx
index 22ba9cd..bf9a499 100644
--- a/bootstrap.cxx
+++ b/bootstrap.cxx
@@ -1,9 +1,8 @@
#include "bootstrap.hxx"
Bootstrap::Bootstrap(QObject *parent):
- QObject(parent),
- m_theme(Theme::Light),
- m_purpose(Purpose::None)
+ QQmlEngineExtensionPlugin(parent),
+ m_purpose(None)
{
}
@@ -12,24 +11,12 @@ Bootstrap *Bootstrap::qmlAttachedProperties(QObject *object)
return new Bootstrap(object);
}
-Bootstrap::Theme Bootstrap::theme() const
-{
- return m_theme;
-}
-
-void Bootstrap::setTheme(Bootstrap::Theme theme)
-{
- if (theme == m_theme) return;
- m_theme = theme;
- emit themeChanged();
-}
-
Bootstrap::Purpose Bootstrap::purpose() const
{
return m_purpose;
}
-void Bootstrap::setPurpose(Bootstrap::Purpose purpose)
+void Bootstrap::setPurpose(Purpose purpose)
{
if (purpose == m_purpose) return;
m_purpose = purpose;