-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRButton.cpp
More file actions
33 lines (30 loc) · 734 Bytes
/
Copy pathRButton.cpp
File metadata and controls
33 lines (30 loc) · 734 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
#include "RButton.h"
#include "Menu.h"
RButton::RButton(QWidget *parent) : QWidget(parent), ui(new Ui::RButton) {
ui->setupUi(this);
this->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
connect(ui->PbReturn, &QPushButton::clicked, this, &RButton::Return);
}
void RButton::Return() {
menu->show();
if (!nav->isHidden()) {
nav->hide();
}
if (!info->isHidden()) {
info->hide();
}
if (!prtn->isHidden()) {
prtn->hide();
}
if (!descr->isHidden()) {
descr->hide();
}
if (!tmtbl->isHidden()) {
tmtbl->hide();
}
if (!reg->isHidden()) {
reg->hide();
}
this->hide();
}
RButton::~RButton() { delete ui; }