Add date onlyBackward limit.

This commit is contained in:
Krad
2022-05-09 15:30:36 +08:00
parent e01baeed7f
commit 9a653864aa
2 changed files with 21 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
#include "dialogs/GUIFormBaseDialog.h"
class DateSlidePickerBox;
class QLabel;
class DateSelectDialog:public GUIFormBaseDialog{
Q_OBJECT
public:
@@ -15,9 +16,14 @@ public:
QString getSelectedValue();
void setSelectedValue(const QString& val);
void showEvent(QShowEvent *) override;
void setOnlyBackward(bool val){
onlyBackward = val;
}
protected:
bool updateReferenceData() override;
DateSlidePickerBox* box;
QLabel* lbl_error = nullptr;
bool onlyBackward = true;
};