bump product version to 7.2.5.1
[LibreOffice.git] / vcl / inc / qt5 / Qt5GraphicsBase.hxx
blob91b8bfb20e9e82889f159958e4ca69c8dba560bc
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #pragma once
12 #include <QtWidgets/QApplication>
14 class Qt5GraphicsBase
16 qreal m_fDPR;
18 public:
19 Qt5GraphicsBase()
20 : m_fDPR(qApp ? qApp->devicePixelRatio() : 1.0)
24 void setDevicePixelRatioF(qreal fDPR) { m_fDPR = fDPR; }
26 qreal devicePixelRatioF() const { return m_fDPR; }
29 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */