-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmainwindow.cpp
More file actions
65 lines (53 loc) · 1.59 KB
/
mainwindow.cpp
File metadata and controls
65 lines (53 loc) · 1.59 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#include <QDebug>
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "func_music.h"
#include "func_video.h"
#include <QNetworkReply>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
func_video *videoPlayer = new func_video(this);
ui->stackedWidget_func->widget(1)->deleteLater();
ui->stackedWidget_func->insertWidget(1, videoPlayer);
// Default Stack
ui->stackedWidget_func->setCurrentIndex(5);
qInfo() << ui->stackedWidget_func->currentIndex();
qDebug() << QSslSocket::sslLibraryBuildVersionString();
qDebug() << QSslSocket::supportsSsl();
qDebug() << QSslSocket::sslLibraryVersionString();
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_pushButton_music_clicked()
{
ui->stackedWidget_func->setCurrentIndex(0); // Music Stack
}
void MainWindow::on_pushButton_video_clicked()
{
ui->stackedWidget_func->setCurrentIndex(1); // Video Stack
}
void MainWindow::on_pushButton_image_clicked()
{
ui->stackedWidget_func->setCurrentIndex(2); // Image Stack
}
void MainWindow::on_pushButton_weather_clicked()
{
ui->stackedWidget_func->setCurrentIndex(3);// Weather Stack
}
void MainWindow::on_pushButton_map_clicked()
{
ui->stackedWidget_func->setCurrentIndex(4);// Map Stack
}
void MainWindow::on_pushButton_IM_clicked()
{
ui->stackedWidget_func->setCurrentIndex(5);// IM Stack
}
void MainWindow::on_pushButton_browser_clicked()
{
ui->stackedWidget_func->setCurrentIndex(6);// Browser Stack
}