diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-12-09 12:21:23 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-12-09 12:48:33 (GMT) |
commit | 6744e241ee41a50b02a76e3e755ec448676589a4 (patch) | |
tree | bb4e02d0f0a3f84ff29768a11287fa56753be163 /src/gui/widgets | |
parent | 1cfa8d81f04e02860df85a3b7acf41974982adae (diff) | |
download | Qt-6744e241ee41a50b02a76e3e755ec448676589a4.zip Qt-6744e241ee41a50b02a76e3e755ec448676589a4.tar.gz Qt-6744e241ee41a50b02a76e3e755ec448676589a4.tar.bz2 |
Compile with QT_NO_DEPRECATED
uses of QT_DEPRECATED must be protected by #ifdef
Task-number: QTBUG-6649
Reviewed-by: João Abecasis
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qlcdnumber.h | 3 | ||||
-rw-r--r-- | src/gui/widgets/qprintpreviewwidget.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/qlcdnumber.h b/src/gui/widgets/qlcdnumber.h index e65637d..b7162cd 100644 --- a/src/gui/widgets/qlcdnumber.h +++ b/src/gui/widgets/qlcdnumber.h @@ -82,9 +82,10 @@ public: }; bool smallDecimalPoint() const; - +#ifdef QT_DEPRECATED QT_DEPRECATED int numDigits() const; QT_DEPRECATED void setNumDigits(int nDigits); +#endif int digitCount() const; void setDigitCount(int nDigits); diff --git a/src/gui/widgets/qprintpreviewwidget.h b/src/gui/widgets/qprintpreviewwidget.h index 08e596d..d8504de 100644 --- a/src/gui/widgets/qprintpreviewwidget.h +++ b/src/gui/widgets/qprintpreviewwidget.h @@ -82,7 +82,9 @@ public: ViewMode viewMode() const; ZoomMode zoomMode() const; int currentPage() const; +#ifdef QT_DEPRECATED QT_DEPRECATED int numPages() const; +#endif int pageCount() const; void setVisible(bool visible); |