-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewframe.cpp
More file actions
37 lines (29 loc) · 733 Bytes
/
newframe.cpp
File metadata and controls
37 lines (29 loc) · 733 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
#include "newframe.h"
#include "ui_newframe.h"
#include <QMessageBox>
NewFrame::NewFrame(QWidget *parent) :
QWidget(parent),
ui(new Ui::NewFrame)
{
ui->setupUi(this);
}
NewFrame::~NewFrame()
{
delete ui;
}
void NewFrame::show(QString comboBoxText){
ui->lineEdit_frameData->setText(comboBoxText);
ui->comboBox_newFrameFrameName->clear();
ui->comboBox_newFrameFrameName->setFocus();
QWidget::show();
}
void NewFrame::on_pushButton_newFrameCancel_clicked()
{
this->close();
}
void NewFrame::on_pushButton_newFrameSave_clicked()
{
QString text = ui->lineEdit_frameData->text();
emit newFrameAdded(ui->comboBox_newFrameFrameName->currentText().toStdString(),text);
this->close();
}