diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-03-04 20:02:56 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-03-04 20:02:56 -0600 |
commit | d09ca7b8ba18bee70e4b0c2f3b7774c28c15f256 (patch) | |
tree | fe203622193139223daee07a44016d880b5d2d07 | |
parent | f38b0e8e6a901df910466d23ef27dd819edc18e5 (diff) | |
download | horizon-qt5-d09ca7b8ba18bee70e4b0c2f3b7774c28c15f256.tar.gz horizon-qt5-d09ca7b8ba18bee70e4b0c2f3b7774c28c15f256.tar.bz2 horizon-qt5-d09ca7b8ba18bee70e4b0c2f3b7774c28c15f256.tar.xz horizon-qt5-d09ca7b8ba18bee70e4b0c2f3b7774c28c15f256.zip |
HorizonWizardPage: add helper function to grab HorizonWizard pointer
-rw-r--r-- | horizonwizardpage.cc | 5 | ||||
-rw-r--r-- | horizonwizardpage.hh | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/horizonwizardpage.cc b/horizonwizardpage.cc index 97cdbef..4f6ba50 100644 --- a/horizonwizardpage.cc +++ b/horizonwizardpage.cc @@ -43,3 +43,8 @@ void HorizonWizardPage::loadWatermark(string page) setPixmap(QWizard::WatermarkPixmap, pixmap); } + +HorizonWizard *HorizonWizardPage::horizonWizard() const +{ + return dynamic_cast<HorizonWizard *>(this->wizard()); +} diff --git a/horizonwizardpage.hh b/horizonwizardpage.hh index 65b292c..d0f2cf7 100644 --- a/horizonwizardpage.hh +++ b/horizonwizardpage.hh @@ -4,12 +4,15 @@ #include <QWizardPage> #include <string> +#include "horizonwizard.hh" + class HorizonWizardPage : public QWizardPage { public: HorizonWizardPage(QWidget *parent = 0) : QWizardPage(parent) {} void loadWatermark(std::string page); + HorizonWizard *horizonWizard() const; }; #endif // HORIZONWIZARDPAGE_HH |