-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAbout.cpp
41 lines (36 loc) · 902 Bytes
/
About.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
#include "About.h"
#include "ui_About.h"
#include "System_Services_and_Info.h"
#include "QSettings"
About::About(QWidget *parent) :
QDialog(parent),
ui(new Ui::About)
{
ui->setupUi(this);
LoadSettings();
ui->textBrowser->setText(System_Services_and_Info::get_System_About() + System_Services_and_Info::get_System_Version());
this->setWindowTitle(System_Services_and_Info::get_System_Version());
}
About::~About()
{
SaveSettings();
delete ui;
}
void About::on_buttonBox_rejected()
{
close();
}
void About::LoadSettings()
{
QSettings setting("bedi1982","Oficina");
setting.beginGroup("About");
setting.setValue("position",this->geometry());
setting.endGroup();
}
void About::SaveSettings()
{
QSettings setting("bedi1982","Oficina");
setting.beginGroup("About");
setting.setValue("position",this->geometry());
setting.endGroup();
}