mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-22 14:31:39 +00:00
Adding Refresh icon to toolbar (#816)
This commit is contained in:
parent
9c5f2f9598
commit
0022723b5e
Binary file not shown.
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -88,6 +88,7 @@ void MainWindow::AddUiWidgets() {
|
||||||
ui->toolBar->addWidget(ui->playButton);
|
ui->toolBar->addWidget(ui->playButton);
|
||||||
ui->toolBar->addWidget(ui->pauseButton);
|
ui->toolBar->addWidget(ui->pauseButton);
|
||||||
ui->toolBar->addWidget(ui->stopButton);
|
ui->toolBar->addWidget(ui->stopButton);
|
||||||
|
ui->toolBar->addWidget(ui->refreshButton);
|
||||||
ui->toolBar->addWidget(ui->settingsButton);
|
ui->toolBar->addWidget(ui->settingsButton);
|
||||||
ui->toolBar->addWidget(ui->controllerButton);
|
ui->toolBar->addWidget(ui->controllerButton);
|
||||||
QFrame* line = new QFrame(this);
|
QFrame* line = new QFrame(this);
|
||||||
|
@ -177,6 +178,7 @@ void MainWindow::CreateConnects() {
|
||||||
connect(ui->mw_searchbar, &QLineEdit::textChanged, this, &MainWindow::SearchGameTable);
|
connect(ui->mw_searchbar, &QLineEdit::textChanged, this, &MainWindow::SearchGameTable);
|
||||||
connect(ui->exitAct, &QAction::triggered, this, &QWidget::close);
|
connect(ui->exitAct, &QAction::triggered, this, &QWidget::close);
|
||||||
connect(ui->refreshGameListAct, &QAction::triggered, this, &MainWindow::RefreshGameTable);
|
connect(ui->refreshGameListAct, &QAction::triggered, this, &MainWindow::RefreshGameTable);
|
||||||
|
connect(ui->refreshButton, &QPushButton::clicked, this, &MainWindow::RefreshGameTable);
|
||||||
connect(ui->showGameListAct, &QAction::triggered, this, &MainWindow::ShowGameList);
|
connect(ui->showGameListAct, &QAction::triggered, this, &MainWindow::ShowGameList);
|
||||||
connect(this, &MainWindow::ExtractionFinished, this, &MainWindow::RefreshGameTable);
|
connect(this, &MainWindow::ExtractionFinished, this, &MainWindow::RefreshGameTable);
|
||||||
|
|
||||||
|
@ -852,6 +854,7 @@ void MainWindow::SetUiIcons(bool isWhite) {
|
||||||
ui->playButton->setIcon(RecolorIcon(ui->playButton->icon(), isWhite));
|
ui->playButton->setIcon(RecolorIcon(ui->playButton->icon(), isWhite));
|
||||||
ui->pauseButton->setIcon(RecolorIcon(ui->pauseButton->icon(), isWhite));
|
ui->pauseButton->setIcon(RecolorIcon(ui->pauseButton->icon(), isWhite));
|
||||||
ui->stopButton->setIcon(RecolorIcon(ui->stopButton->icon(), isWhite));
|
ui->stopButton->setIcon(RecolorIcon(ui->stopButton->icon(), isWhite));
|
||||||
|
ui->refreshButton->setIcon(RecolorIcon(ui->refreshButton->icon(), isWhite));
|
||||||
ui->settingsButton->setIcon(RecolorIcon(ui->settingsButton->icon(), isWhite));
|
ui->settingsButton->setIcon(RecolorIcon(ui->settingsButton->icon(), isWhite));
|
||||||
ui->controllerButton->setIcon(RecolorIcon(ui->controllerButton->icon(), isWhite));
|
ui->controllerButton->setIcon(RecolorIcon(ui->controllerButton->icon(), isWhite));
|
||||||
ui->refreshGameListAct->setIcon(RecolorIcon(ui->refreshGameListAct->icon(), isWhite));
|
ui->refreshGameListAct->setIcon(RecolorIcon(ui->refreshGameListAct->icon(), isWhite));
|
||||||
|
|
|
@ -38,6 +38,7 @@ public:
|
||||||
QPushButton* playButton;
|
QPushButton* playButton;
|
||||||
QPushButton* pauseButton;
|
QPushButton* pauseButton;
|
||||||
QPushButton* stopButton;
|
QPushButton* stopButton;
|
||||||
|
QPushButton* refreshButton;
|
||||||
QPushButton* settingsButton;
|
QPushButton* settingsButton;
|
||||||
QPushButton* controllerButton;
|
QPushButton* controllerButton;
|
||||||
|
|
||||||
|
@ -176,6 +177,10 @@ public:
|
||||||
stopButton->setFlat(true);
|
stopButton->setFlat(true);
|
||||||
stopButton->setIcon(QIcon(":images/stop_icon.png"));
|
stopButton->setIcon(QIcon(":images/stop_icon.png"));
|
||||||
stopButton->setIconSize(QSize(40, 40));
|
stopButton->setIconSize(QSize(40, 40));
|
||||||
|
refreshButton = new QPushButton(centralWidget);
|
||||||
|
refreshButton->setFlat(true);
|
||||||
|
refreshButton->setIcon(QIcon(":images/refresh_icon.png"));
|
||||||
|
refreshButton->setIconSize(QSize(32, 32));
|
||||||
settingsButton = new QPushButton(centralWidget);
|
settingsButton = new QPushButton(centralWidget);
|
||||||
settingsButton->setFlat(true);
|
settingsButton->setFlat(true);
|
||||||
settingsButton->setIcon(QIcon(":images/settings_icon.png"));
|
settingsButton->setIcon(QIcon(":images/settings_icon.png"));
|
||||||
|
|
Loading…
Reference in a new issue