KIO

thumbdevicepixelratiodependentcreator.cpp
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 2020 Méven Car <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #include "thumbdevicepixelratiodependentcreator.h"
9 
10 class Q_DECL_HIDDEN KIO::ThumbDevicePixelRatioDependentCreator::Private
11 {
12 public:
13  Private()
14  : devicePixelRatio(1)
15  {
16  }
17 
18  int devicePixelRatio;
19 };
20 
22 {
23  return d->devicePixelRatio;
24 }
25 
27 {
28  d->devicePixelRatio = dpr;
29 }
30 
31 KIO::ThumbDevicePixelRatioDependentCreator::ThumbDevicePixelRatioDependentCreator()
32  : d(new Private)
33 {
34 }
35 
36 KIO::ThumbDevicePixelRatioDependentCreator::~ThumbDevicePixelRatioDependentCreator() = default;
A namespace for KIO globals.
void setDevicePixelRatio(int dpr)
Sets device Pixel Ratio used for thumbnail creation.
int devicePixelRatio() const
The device Pixel Ratio used for thumbnail creation.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Nov 29 2021 22:53:08 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.