Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportUtils_p.h
Show All 27 Lines | |||||
28 | #include <QCoreApplication> | 28 | #include <QCoreApplication> | ||
29 | #include <QDir> | 29 | #include <QDir> | ||
30 | #include <QFileInfo> | 30 | #include <QFileInfo> | ||
31 | #include <QRegularExpression> | 31 | #include <QRegularExpression> | ||
32 | #include <QResource> | 32 | #include <QResource> | ||
33 | #include <QStandardPaths> | 33 | #include <QStandardPaths> | ||
34 | #include <QDebug> | 34 | #include <QDebug> | ||
35 | #include <QGlobalStatic> | 35 | #include <QGlobalStatic> | ||
36 | #include <QPageLayout> | ||||
36 | 37 | | |||
37 | #ifdef Q_WS_X11 | 38 | #ifdef Q_WS_X11 | ||
38 | #include <QX11Info> | 39 | #include <QX11Info> | ||
39 | #else | 40 | #else | ||
40 | #include <QDesktopWidget> | 41 | #include <QDesktopWidget> | ||
41 | #endif | 42 | #endif | ||
42 | 43 | | |||
43 | 44 | | |||
▲ Show 20 Lines • Show All 119 Lines • ▼ Show 20 Line(s) | |||||
163 | //! Sets up a global icon theme if it is different from supported. | 164 | //! Sets up a global icon theme if it is different from supported. | ||
164 | //! Warns on failure and returns @c false. | 165 | //! Warns on failure and returns @c false. | ||
165 | bool setupGlobalIconTheme(); | 166 | bool setupGlobalIconTheme(); | ||
166 | 167 | | |||
167 | int dpiX(); | 168 | int dpiX(); | ||
168 | 169 | | |||
169 | int dpiY(); | 170 | int dpiY(); | ||
170 | 171 | | |||
172 | class PageLayout: public QPageLayout { | ||||
staniek: +add
```
//! This class is wrapper that fixes a critical QTBUG-47551 bug in default… | |||||
173 | public: | ||||
174 | PageLayout(); | ||||
For completeness PageLayout(const QPageLayout &pageLayout) could be nice (nonexplicit). staniek: For completeness `PageLayout(const QPageLayout &pageLayout)` could be nice (nonexplicit). | |||||
175 | PageLayout& operator=(const QPageLayout& other); | ||||
176 | }; | ||||
177 | | ||||
171 | } // KReportPrivate | 178 | } // KReportPrivate | ||
172 | 179 | | |||
173 | #endif | 180 | #endif |
+add