mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-15 19:48:47 +02:00
Coding standards
This commit is contained in:
parent
fa31ba0754
commit
aafecae4b5
2 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@ void InfoView::registerType() {
|
||||||
qmlRegisterType<InfoView>("Hifi", 1, 0, NAME.toLocal8Bit().constData());
|
qmlRegisterType<InfoView>("Hifi", 1, 0, NAME.toLocal8Bit().constData());
|
||||||
}
|
}
|
||||||
|
|
||||||
QString fetchVersion(const QUrl & url) {
|
QString fetchVersion(const QUrl& url) {
|
||||||
QXmlQuery query;
|
QXmlQuery query;
|
||||||
query.bindVariable("file", QVariant(url));
|
query.bindVariable("file", QVariant(url));
|
||||||
query.setQuery("string((doc($file)//input[@id='version'])[1]/@value)");
|
query.setQuery("string((doc($file)//input[@id='version'])[1]/@value)");
|
||||||
|
@ -65,7 +65,7 @@ QUrl InfoView::url() {
|
||||||
return _url;
|
return _url;
|
||||||
}
|
}
|
||||||
|
|
||||||
void InfoView::setUrl(const QUrl & url) {
|
void InfoView::setUrl(const QUrl& url) {
|
||||||
if (url != _url) {
|
if (url != _url) {
|
||||||
_url = url;
|
_url = url;
|
||||||
emit urlChanged();
|
emit urlChanged();
|
||||||
|
|
|
@ -26,7 +26,7 @@ public:
|
||||||
|
|
||||||
InfoView(QQuickItem* parent = nullptr);
|
InfoView(QQuickItem* parent = nullptr);
|
||||||
QUrl url();
|
QUrl url();
|
||||||
void setUrl(const QUrl & url);
|
void setUrl(const QUrl& url);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void urlChanged();
|
void urlChanged();
|
||||||
|
|
Loading…
Reference in a new issue