translation improvement

This commit is contained in:
xueyan hu
2021-12-28 18:23:02 +08:00
parent f43fd26411
commit 656f46c17e
32 changed files with 1620 additions and 914 deletions

View File

@@ -6,12 +6,14 @@
#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(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() {
@@ -19,17 +21,17 @@ SelectDialog::~SelectDialog() {
}
bool SelectDialog::updateReferenceData() {
return true;
return true;
}
void SelectDialog::setAvailableDates(QStringList dates) {
box->setItems(dates);
box->setItems(dates);
}
QString SelectDialog::getSelectedValue() {
return box->getSelectedValue();
return box->getSelectedValue();
}
void SelectDialog::setSelectedValue(const QString & val) {
box->setSelectedValue(val);
void SelectDialog::setSelectedValue(const QString& val) {
box->setSelectedValue(val);
}