From 9d3257ef1cbbe2b2b5201dd6618258f928b5a5cd Mon Sep 17 00:00:00 2001 From: Benjamin Nauck Date: Sat, 2 Jan 2016 17:01:00 +0100 Subject: [PATCH] Adjust code to code convention --HG-- branch : feature --- src/app/valentina/mainwindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 3293236ae..38609233d 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -561,10 +561,12 @@ void MainWindow::SetToolButtonWithApply(bool checked, Tool t, const QString &cur emit EnableItemMove(false); currentTool = lastUsedTool = t; auto cursorResource = cursor; - if (qApp->devicePixelRatio() >= 2) { - // try to load HiDPI versions of the cursors if availible + if (qApp->devicePixelRatio() >= 2) + { + // Try to load HiDPI versions of the cursors if availible auto cursorHidpiResource = QString(cursor).replace(".png", "@2x.png"); - if (QFileInfo(cursorResource).exists()) { + if (QFileInfo(cursorResource).exists()) + { cursorResource = cursorHidpiResource; } }