summaryrefslogtreecommitdiff
path: root/bootstrap.cxx
blob: bf9a499ece4a7699b1d9cc1b757268017fd6dec1 (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
#include "bootstrap.hxx"

Bootstrap::Bootstrap(QObject *parent):
	QQmlEngineExtensionPlugin(parent),
	m_purpose(None)
{
}

Bootstrap *Bootstrap::qmlAttachedProperties(QObject *object)
{
	return new Bootstrap(object);
}

Bootstrap::Purpose Bootstrap::purpose() const
{
	return m_purpose;
}

void Bootstrap::setPurpose(Purpose purpose)
{
	if (purpose == m_purpose) return;
	m_purpose = purpose;
	emit purposeChanged();
}