Change LogDateSelectDialog to selectDialog

This commit is contained in:
Krad
2021-12-07 14:08:05 +08:00
parent f36570c801
commit 6627b8bb2a
4 changed files with 86 additions and 86 deletions

35
src/SelectDialog.cpp Normal file
View File

@@ -0,0 +1,35 @@
//
// Created by Krad on 2021/11/24.
//
#include "SelectDialog.h"
#include "components/SlidePickerBox.h"
#include <QVBoxLayout>
#include <QLabel>
SelectDialog::SelectDialog(QWidget *parent, Qt::WindowFlags f) : GUIFormBaseDialog(parent, f) {
this->setFixedSize(360,380);
QVBoxLayout* layout = new QVBoxLayout(formWidget);
box = new SlidePickerBox(formWidget);
box->setObjectName("slider_one");
layout->addWidget(box);
}
SelectDialog::~SelectDialog() {
}
bool SelectDialog::updateReferenceData() {
return true;
}
void SelectDialog::setAvailableDates(QStringList dates) {
box->setItems(dates);
}
QString SelectDialog::getSelectedValue() {
return box->getSelectedValue();
}
void SelectDialog::setSelectedValue(QString & val) {
box->setSelectedValue(val);
}