summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--horizonwizardpage.cc5
-rw-r--r--horizonwizardpage.hh3
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