File indexing completed on 2024-06-09 05:03:30
0001 /* 0002 SPDX-FileCopyrightText: 2010 Fernando Vilas <kmymoney-devel@kde.org> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef DURATIONWIZARDPAGE_H 0007 #define DURATIONWIZARDPAGE_H 0008 0009 // ---------------------------------------------------------------------------- 0010 // QT Includes 0011 0012 #include <QWizardPage> 0013 0014 // ---------------------------------------------------------------------------- 0015 // KDE Includes 0016 0017 // ---------------------------------------------------------------------------- 0018 // Project Includes 0019 0020 namespace Ui { 0021 class DurationWizardPage; 0022 } 0023 0024 /** 0025 * This class implements the Duration page of the 0026 * @ref KNewLoanWizard. 0027 */ 0028 0029 class DurationWizardPage : public QWizardPage 0030 { 0031 Q_OBJECT 0032 public: 0033 explicit DurationWizardPage(QWidget *parent = nullptr); 0034 ~DurationWizardPage(); 0035 0036 QString updateTermWidgets(const double val); 0037 int term() const; 0038 0039 public Q_SLOTS: 0040 void resetCalculator(); 0041 0042 private: 0043 Ui::DurationWizardPage *ui; 0044 }; 0045 0046 #endif