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);
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user