forked from utat-uav/Software
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathitemmaker.cpp
More file actions
51 lines (42 loc) · 843 Bytes
/
itemmaker.cpp
File metadata and controls
51 lines (42 loc) · 843 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
42
43
44
45
46
47
48
49
50
51
#include "itemmaker.h"
#include "ui_itemmaker.h"
ItemMaker::ItemMaker(QWidget *parent) :
QDialog(parent),
ui(new Ui::ItemMaker)
{
accepted = false;
ui->setupUi(this);
}
ItemMaker::~ItemMaker()
{
delete ui;
}
void ItemMaker::on_browseButton_clicked()
{
QString fileName = QFileDialog::getOpenFileName(this, tr("Open File"), "", tr("Files (*.*)"));
ui->URLInput->setText(fileName);
}
void ItemMaker::on_buttonBox_accepted()
{
accepted = true;
}
bool ItemMaker::getAccepted()
{
return this->accepted;
}
QString ItemMaker::getTitle()
{
return ui->titleInput->text();
}
QString ItemMaker::getFilePath()
{
return ui->URLInput->text();
}
void ItemMaker::setTitle(QString title)
{
ui->titleInput->setText(title);
}
void ItemMaker::setFilePath(QString path)
{
ui->URLInput->setText(path);
}