-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfirmwaredlg.cpp
47 lines (39 loc) · 1.8 KB
/
firmwaredlg.cpp
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
/***************************************************************************
firmware.cpp
firmwiget.cpp - description
----------------------------------------------------
begin : 2005
copyright : (C) 2005 by Andreas Lindenau
email : [email protected]
firmwiget.cpp have been refactored to firmware.cpp QT5
----------------------------------------------------
begin : 2013
copyright : (C) 2013 by Andrey Sobol
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "firmwaredlg.h"
//#####################################################################################
// Class FirmwareDlg
//#####################################################################################
FirmwareDlg::FirmwareDlg(QWidget* parent, Qt::WindowFlags f): QDialog(parent, f)
{
this->resize(450,100);
label1 = new QLabel(this);
label1->setGeometry(10,10,400,30);
label1->setText(tr("Firmware Update",""));
label1->setAlignment(Qt::AlignHCenter);
}
void FirmwareDlg::setText(QString s)
{
setFocus();
label1->setText(s);
repaint();
}