Adjust code to code convention

--HG--
branch : feature
This commit is contained in:
Benjamin Nauck 2016-01-02 17:01:00 +01:00
parent 15b5c4534d
commit 9d3257ef1c

View File

@ -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;
}
}