Files
GUI/src/SelectDialog.cpp

36 lines
803 B
C++
Raw Normal View History

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