summaryrefslogtreecommitdiff
path: root/bootstrap.cxx
blob: 22ba9cd7a3fd479dfbca084898286f73db2750db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "bootstrap.hxx"

Bootstrap::Bootstrap(QObject *parent):
	QObject(parent),
	m_theme(Theme::Light),
	m_purpose(Purpose::None)
{
}

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)
{
	if (purpose == m_purpose) return;
	m_purpose = purpose;
	emit purposeChanged();
}