Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/scripting/KReportScriptConstants.h
Show All 35 Lines | 33 | public: | |||
---|---|---|---|---|---|
36 | ~KReportScriptConstants() override; | 36 | ~KReportScriptConstants() override; | ||
37 | Q_ENUMS(PenStyle) | 37 | Q_ENUMS(PenStyle) | ||
38 | 38 | | |||
39 | //!Enum values for pen styles that can be accessed from user scripts using | 39 | //!Enum values for pen styles that can be accessed from user scripts using | ||
40 | //! \code | 40 | //! \code | ||
41 | //! constants.QtSolidLine | 41 | //! constants.QtSolidLine | ||
42 | //! \endcode | 42 | //! \endcode | ||
43 | //! for example | 43 | //! for example | ||
44 | enum PenStyle {QtNoPen = 0, QtSolidLine, QtDashLine, QtDotLine, QtDashDotLine, QtDashDotDotLine}; | 44 | enum PenStyle {QtNoPen, QtSolidLine, QtDashLine, QtDotLine, QtDashDotLine, QtDashDotDotLine}; | ||
45 | 45 | | |||
46 | void setPageNumber(int p) { | 46 | void setPageNumber(int p) { | ||
47 | m_currentPage = p; | 47 | m_currentPage = p; | ||
48 | } | 48 | } | ||
49 | void setPageTotal(int t) { | 49 | void setPageTotal(int t) { | ||
50 | m_totalPages = t; | 50 | m_totalPages = t; | ||
51 | }; | 51 | }; | ||
52 | public Q_SLOTS: | 52 | public Q_SLOTS: | ||
Show All 19 Lines |