diff options
Diffstat (limited to 'examples/widgets/mainwindows/mainwindow/toolbar.cpp')
-rw-r--r-- | examples/widgets/mainwindows/mainwindow/toolbar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/mainwindows/mainwindow/toolbar.cpp b/examples/widgets/mainwindows/mainwindow/toolbar.cpp index fd510c8a57..2c663a1618 100644 --- a/examples/widgets/mainwindows/mainwindow/toolbar.cpp +++ b/examples/widgets/mainwindows/mainwindow/toolbar.cpp @@ -94,7 +94,7 @@ ToolBar::ToolBar(const QString &title, QWidget *parent) setIconSize(QSize(32, 32)); - qreal dpr = devicePixelRatioF(); + qreal dpr = devicePixelRatio(); menu = new QMenu("One", this); menu->setIcon(genIcon(iconSize(), 1, Qt::black, dpr)); menu->addAction(genIcon(iconSize(), "A", Qt::blue, dpr), "A"); |