KChart

KChartPrintingParameters.h
1/*
2 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3 *
4 * This file is part of the KD Chart library.
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef PRINTINGPARAMETERS_H
10#define PRINTINGPARAMETERS_H
11
12#include <QPen>
13#include <QDebug>
14
15//
16// W A R N I N G
17// -------------
18//
19// This file is not part of the KD Chart API. It exists purely as an
20// implementation detail. This header file may change from version to
21// version without notice, or even be removed.
22//
23// We mean it.
24//
25
26namespace KChart {
27 /**
28 * PrintingParameters stores the scale factor which lines has to been scaled with when printing.
29 * It's essentially printer's logical DPI / widget's logical DPI
30 * \internal
31 */
33 public:
34 static qreal scaleFactor();
35 static void setScaleFactor( const qreal scaleFactor );
36 static void resetScaleFactor();
37 static QPen scalePen( const QPen& pen );
38
39 private:
41 static PrintingParameters* instance();
42
43 qreal m_scaleFactor;
44 };
45}
46
47#endif
PrintingParameters stores the scale factor which lines has to been scaled with when printing.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:04:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.