summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.cpp
blob: 6a770b2565a16c9bd64f579d14099c100d4f7b29 (plain) (blame)
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
#include "qmlmanager.h"
#include <QUrl>

QMLManager::QMLManager()
{

}


QMLManager::~QMLManager()
{

}

QString QMLManager::filename()
{
	return m_fileName;
}

void QMLManager::setFilename(const QString &f)
{
	m_fileName = f;
	emit filenameChanged();
	loadFile();
}

void QMLManager::loadFile()
{
	QUrl url(m_fileName);
	QString strippedFileName = url.toLocalFile();
}