Adjust code to code convention
--HG-- branch : feature
This commit is contained in:
parent
15b5c4534d
commit
9d3257ef1c
|
@ -561,10 +561,12 @@ void MainWindow::SetToolButtonWithApply(bool checked, Tool t, const QString &cur
|
||||||
emit EnableItemMove(false);
|
emit EnableItemMove(false);
|
||||||
currentTool = lastUsedTool = t;
|
currentTool = lastUsedTool = t;
|
||||||
auto cursorResource = cursor;
|
auto cursorResource = cursor;
|
||||||
if (qApp->devicePixelRatio() >= 2) {
|
if (qApp->devicePixelRatio() >= 2)
|
||||||
// try to load HiDPI versions of the cursors if availible
|
{
|
||||||
|
// Try to load HiDPI versions of the cursors if availible
|
||||||
auto cursorHidpiResource = QString(cursor).replace(".png", "@2x.png");
|
auto cursorHidpiResource = QString(cursor).replace(".png", "@2x.png");
|
||||||
if (QFileInfo(cursorResource).exists()) {
|
if (QFileInfo(cursorResource).exists())
|
||||||
|
{
|
||||||
cursorResource = cursorHidpiResource;
|
cursorResource = cursorHidpiResource;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user