-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwidget.cpp
More file actions
41 lines (34 loc) · 915 Bytes
/
widget.cpp
File metadata and controls
41 lines (34 loc) · 915 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
#include "widget.h"
#include "ui_widget.h"
Widget::Widget(QWidget *parent) :
QWidget(parent),
ui(new Ui::Widget)
{
ui->setupUi(this);
setWindowFlags(Qt::FramelessWindowHint);
setWindowState(Qt::WindowFullScreen);
setAutoFillBackground(true);
screenRect = QApplication::desktop()->availableGeometry();
pal = palette();
pix.load(":/images/container-back.png");
pal.setBrush( QPalette::Background, pix.scaled(QSize(screenRect.width(), screenRect.height()), Qt::IgnoreAspectRatio, Qt::FastTransformation));
setPalette( pal );
tbl = new TableWidget(this);
scr = new ScrollWidget(this);
//rss = new Rss(this);
}
Widget::~Widget()
{
delete ui;
}
void Widget::changeEvent(QEvent *e)
{
QWidget::changeEvent(e);
switch (e->type()) {
case QEvent::LanguageChange:
ui->retranslateUi(this);
break;
default:
break;
}
}