mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
folio report: add user able to make custom label.
Revamp GUI dialog for new diagram configuration. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2749 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
27
sources/ui/reportpropertiewidget.cpp
Normal file
27
sources/ui/reportpropertiewidget.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "reportpropertiewidget.h"
|
||||
#include "ui_reportpropertiewidget.h"
|
||||
|
||||
ReportPropertieWidget::ReportPropertieWidget(QString value, QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::ReportPropertieWidget)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->line_edit->setText(value);
|
||||
}
|
||||
|
||||
ReportPropertieWidget::~ReportPropertieWidget()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void ReportPropertieWidget::toSettings(QSettings &settings, const QString &prefix) {
|
||||
settings.setValue(prefix + "label", ui->line_edit->text());
|
||||
}
|
||||
|
||||
void ReportPropertieWidget::setReportProperties(QString label) {
|
||||
ui->line_edit->setText(label);
|
||||
}
|
||||
|
||||
QString ReportPropertieWidget::ReportProperties() const {
|
||||
return ui->line_edit->text();
|
||||
}
|
||||
Reference in New Issue
Block a user