Merge branch 'ui-refactor' into infoview

This commit is contained in:
Brad Davis 2015-04-26 20:11:54 -07:00
commit 4740674da2
2 changed files with 5 additions and 5 deletions

View file

@ -38,7 +38,7 @@ public:
push(glm::mat4());
}
explicit MatrixStack(const MatrixStack & other) {
explicit MatrixStack(const MatrixStack& other) {
*((std::stack<glm::mat4>*)this) = *((std::stack<glm::mat4>*)&other);
}
@ -173,12 +173,12 @@ public:
}
template <typename Function>
static void withPush(MatrixStack & stack, Function f) {
static void withPush(MatrixStack& stack, Function f) {
stack.withPush(f);
}
template <typename Function>
static void withPush(MatrixStack & stack1, MatrixStack & stack2, Function f) {
static void withPush(MatrixStack& stack1, MatrixStack& stack2, Function f) {
stack1.withPush([&]{
stack2.withPush(f);
});

View file

@ -174,7 +174,7 @@ QObject* OffscreenUi::finishQmlLoad(std::function<void(QQmlContext*, QObject*)>
disconnect(_qmlComponent, &QQmlComponent::statusChanged, this, 0);
if (_qmlComponent->isError()) {
QList<QQmlError> errorList = _qmlComponent->errors();
foreach(const QQmlError &error, errorList) {
foreach(const QQmlError& error, errorList) {
qWarning() << error.url() << error.line() << error;
}
return nullptr;
@ -184,7 +184,7 @@ QObject* OffscreenUi::finishQmlLoad(std::function<void(QQmlContext*, QObject*)>
QObject* newObject = _qmlComponent->beginCreate(newContext);
if (_qmlComponent->isError()) {
QList<QQmlError> errorList = _qmlComponent->errors();
foreach(const QQmlError &error, errorList)
foreach(const QQmlError& error, errorList)
qWarning() << error.url() << error.line() << error;
if (!_rootItem) {
qFatal("Unable to finish loading QML root");