Revert changes done to 'qmlscratchbox'

This commit is contained in:
Alexander Ivash 2018-06-05 22:56:07 +03:00
parent 9bf3759e8d
commit 6a09501261
4 changed files with 4 additions and 35 deletions

View file

@ -52,7 +52,7 @@ QUrl FileDialogHelper::pathToUrl(const QString& path) {
QUrl FileDialogHelper::saveHelper(const QString& saveText, const QUrl& currentFolder, const QStringList& selectionFilters) {
// qDebug(uiLogging) << "Calling save helper with " << saveText << " " << currentFolder << " " << selectionFilters;
qDebug(uiLogging) << "Calling save helper with " << saveText << " " << currentFolder << " " << selectionFilters;
QFileInfo fileInfo(saveText);

View file

@ -1,14 +0,0 @@
import QtQuick 2.0
import QtQuick.Window 2.3
import QtQuick.Controls 1.4
import '../../../scripts/developer/tests' as Tests
ApplicationWindow {
width: 640
height: 480
visible: true
Tests.ControlsGallery {
anchors.fill: parent
}
}

View file

@ -34,7 +34,4 @@ DISTFILES += \
../../interface/resources/qml/hifi/toolbars/*.qml \
../../interface/resources/qml/hifi/dialogs/*.qml \
../../interface/resources/qml/hifi/dialogs/preferences/*.qml \
../../interface/resources/qml/hifi/overlays/*.qml \
../../scripts/developer/tests/Introspector.qml \
../../scripts/developer/tests/ControlsGallery.qml \
qml/ControlsGalleryWindow.qml
../../interface/resources/qml/hifi/overlays/*.qml

View file

@ -95,7 +95,6 @@ int main(int argc, char *argv[]) {
app.setApplicationName("Amazing Application");
QDir::setCurrent(getRelativeDir(".."));
/*
QtWebEngine::initialize();
qmlRegisterType<Preference>("Hifi", 1, 0, "Preference");
@ -118,21 +117,9 @@ int main(int argc, char *argv[]) {
setChild(engine, "urlHandler");
engine.rootContext()->setContextProperty("DebugQML", true);
engine.rootContext()->setContextProperty("fileDialogHelper", new FileDialogHelper());
*/
QQmlApplicationEngine engine;
addImportPath(engine, "qml");
addImportPath(engine, "../../interface/resources/qml");
addImportPath(engine, "../../interface/resources");
addImportPath(engine, "../../scripts/developer/tests");
QFontDatabase::addApplicationFont("../../interface/resources/fonts/FiraSans-Regular.ttf");
QFontDatabase::addApplicationFont("../../interface/resources/fonts/FiraSans-SemiBold.ttf");
QFontDatabase::addApplicationFont("../../interface/resources/fonts/hifi-glyphs.ttf");
engine.load(QUrl(QStringLiteral("qml/ControlsGalleryWindow.qml")));
/*
//engine.load(QUrl(QStringLiteral("qrc:/qml/gallery/main.qml")));
engine.load(QUrl(QStringLiteral("qml/main.qml")));
for (QObject* rootObject : engine.rootObjects()) {
if (rootObject->objectName() == "MainWindow") {
Reticle* reticle = new Reticle(rootObject);
@ -142,7 +129,6 @@ int main(int argc, char *argv[]) {
break;
}
}
*/
return app.exec();
}