16
|
1 |
#include "mainwindow.h"
|
|
2 |
#include "ui_mainwindow.h"
|
|
3 |
|
|
4 |
MainWindow::MainWindow(QWidget *parent) :
|
|
5 |
QMainWindow(parent),
|
|
6 |
ui(new Ui::MainWindow)
|
|
7 |
{
|
|
8 |
//ui->setupUi(this);
|
|
9 |
setStyleSheet("selection-color: Black;");
|
|
10 |
|
|
11 |
Ptr2HomeView = new HomeView("SMF");
|
|
12 |
//Ptr2HomeView->getFriends(this);
|
|
13 |
Ptr2HomeView->SetupUI(this);
|
|
14 |
}
|
|
15 |
|
|
16 |
MainWindow::~MainWindow()
|
|
17 |
{
|
|
18 |
//delete ui;
|
|
19 |
delete Ptr2HomeView;
|
|
20 |
|
|
21 |
}
|
|
22 |
|
|
23 |
void MainWindow::changeEvent(QEvent *e)
|
|
24 |
{
|
|
25 |
QMainWindow::changeEvent(e);
|
|
26 |
switch (e->type()) {
|
|
27 |
case QEvent::LanguageChange:
|
|
28 |
ui->retranslateUi(this);
|
|
29 |
break;
|
|
30 |
default:
|
|
31 |
break;
|
|
32 |
}
|
|
33 |
}
|