Slide picker

This commit is contained in:
Krad
2021-11-26 10:49:09 +08:00
parent dfcbb61e60
commit 832b4196b6
10 changed files with 406 additions and 8 deletions

View File

@@ -0,0 +1,35 @@
//
// Created by Krad on 2021/11/24.
//
#include "LogDateSelectDialog.h"
#include "components/SlidePickerBox.h"
#include <QVBoxLayout>
#include <QLabel>
LogDateSelectDialog::LogDateSelectDialog(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);
}
LogDateSelectDialog::~LogDateSelectDialog() {
}
bool LogDateSelectDialog::updateReferenceData() {
return true;
}
void LogDateSelectDialog::setAvailableDates(QStringList dates) {
box->setItems(dates);
}
QString LogDateSelectDialog::getSelectedValue() {
return box->getSelectedValue();
}
void LogDateSelectDialog::setSelectedValue(QString & val) {
box->setSelectedValue(val);
}