-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtabledialog.cpp
More file actions
41 lines (34 loc) · 879 Bytes
/
tabledialog.cpp
File metadata and controls
41 lines (34 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "tabledialog.h"
#include "ui_tabledialog.h"
TableDialog::TableDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::TableDialog)
{
ui->setupUi(this);
this->setWindowTitle(tr("Add/modify table"));
}
TableDialog::~TableDialog()
{
delete ui;
}
TableDialogResult TableDialog::getResult()
{
return result;
}
void TableDialog::setData(QString name, QString orientation)
{
ui->nameEdit->setText(name);
ui->orientationBox->setCurrentText(orientation);
}
void TableDialog::on_buttonBox_accepted()
{
result = TableDialogResult(ui->nameEdit->text(),ui->orientationBox->currentText());
}
void TableDialog::on_nameEdit_textChanged(const QString &arg1)
{
//result.name = ui->nameEdit->text();
}
void TableDialog::on_orientationBox_currentTextChanged(const QString &arg1)
{
//result.orientation = ui->orientationBox->currentText();
}