File indexing completed on 2024-04-28 15:27:32

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2020 Méven Car <meven.car@kdemail.net>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #include "thumbdevicepixelratiodependentcreator.h"
0009 
0010 #if KIOWIDGETS_BUILD_DEPRECATED_SINCE(5, 101)
0011 
0012 class Q_DECL_HIDDEN KIO::ThumbDevicePixelRatioDependentCreator::Private
0013 {
0014 public:
0015     Private()
0016         : devicePixelRatio(1)
0017     {
0018     }
0019 
0020     int devicePixelRatio;
0021 };
0022 
0023 int KIO::ThumbDevicePixelRatioDependentCreator::devicePixelRatio() const
0024 {
0025     return d->devicePixelRatio;
0026 }
0027 
0028 void KIO::ThumbDevicePixelRatioDependentCreator::setDevicePixelRatio(int dpr)
0029 {
0030     d->devicePixelRatio = dpr;
0031 }
0032 
0033 KIO::ThumbDevicePixelRatioDependentCreator::ThumbDevicePixelRatioDependentCreator()
0034     : d(new Private)
0035 {
0036 }
0037 
0038 KIO::ThumbDevicePixelRatioDependentCreator::~ThumbDevicePixelRatioDependentCreator() = default;
0039 
0040 #endif