31 lines
757 B
C++
31 lines
757 B
C++
//
|
|
// Created by Krad on 2022/3/24.
|
|
//
|
|
|
|
#ifndef GUI_DATESELECTDIALOG_H
|
|
#define GUI_DATESELECTDIALOG_H
|
|
|
|
#include "dialogs/GUIFormBaseDialog.h"
|
|
class DateSlidePickerBox;
|
|
class QLabel;
|
|
class DateSelectDialog:public GUIFormBaseDialog{
|
|
Q_OBJECT
|
|
public:
|
|
explicit DateSelectDialog(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
|
|
~DateSelectDialog() override;
|
|
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;
|
|
};
|
|
|
|
|
|
#endif //GUI_DATESELECTDIALOG_H
|