mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 14:37:46 +02:00
More coding standard fixes
This commit is contained in:
parent
8d8c4babba
commit
c4d2bd2cda
12 changed files with 31 additions and 31 deletions
|
@ -41,7 +41,7 @@ void LoginDialog::toggleAction() {
|
|||
}
|
||||
}
|
||||
|
||||
void LoginDialog::handleLoginCompleted(const QUrl& authURL) {
|
||||
void LoginDialog::handleLoginCompleted(const QUrl&) {
|
||||
hide();
|
||||
}
|
||||
|
||||
|
@ -49,9 +49,9 @@ void LoginDialog::handleLoginFailed() {
|
|||
setStatusText("<font color = \"#267077\">Invalid username or password.< / font>");
|
||||
}
|
||||
|
||||
void LoginDialog::setStatusText(const QString &a) {
|
||||
void LoginDialog::setStatusText(const QString& statusText) {
|
||||
if (a != _statusText) {
|
||||
_statusText = a;
|
||||
_statusText = statusText;
|
||||
emit statusTextChanged();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -139,14 +139,16 @@ void OffscreenUi::load(const QUrl& qmlSource, std::function<void(QQmlContext*)>
|
|||
|
||||
void OffscreenUi::requestUpdate() {
|
||||
_polish = true;
|
||||
if (!_updateTimer.isActive())
|
||||
if (!_updateTimer.isActive()) {
|
||||
_updateTimer.start();
|
||||
}
|
||||
}
|
||||
|
||||
void OffscreenUi::requestRender() {
|
||||
if (!_updateTimer.isActive())
|
||||
if (!_updateTimer.isActive()) {
|
||||
_updateTimer.start();
|
||||
}
|
||||
}
|
||||
|
||||
void OffscreenUi::finishQmlLoad() {
|
||||
disconnect(_qmlComponent, &QQmlComponent::statusChanged, this, &OffscreenUi::finishQmlLoad);
|
||||
|
|
|
@ -283,7 +283,6 @@ void QTestWindow::renderText() {
|
|||
}
|
||||
|
||||
void QTestWindow::renderQml() {
|
||||
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
|
@ -297,7 +296,6 @@ void QTestWindow::renderQml() {
|
|||
}
|
||||
glBegin(GL_QUADS);
|
||||
{
|
||||
|
||||
glTexCoord2f(0, 0);
|
||||
glVertex2f(-1, -1);
|
||||
glTexCoord2f(0, 1);
|
||||
|
|
Loading…
Reference in a new issue