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 #if KIOWIDGETS_BUILD_DEPRECATED_SINCE(5, 101)
11 
12 class Q_DECL_HIDDEN KIO::ThumbDevicePixelRatioDependentCreator::Private
13 {
14 public:
15  Private()
16  : devicePixelRatio(1)
17  {
18  }
19 
20  int devicePixelRatio;
21 };
22 
24 {
25  return d->devicePixelRatio;
26 }
27 
29 {
30  d->devicePixelRatio = dpr;
31 }
32 
34  : d(new Private)
35 {
36 }
37 
38 KIO::ThumbDevicePixelRatioDependentCreator::~ThumbDevicePixelRatioDependentCreator() = default;
39 
40 #endif
void setDevicePixelRatio(int dpr)
Sets device Pixel Ratio used for thumbnail creation.
A namespace for KIO globals.
int devicePixelRatio() const
The device Pixel Ratio used for thumbnail creation.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:52:37 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.