From 0022723b5ed32c4ce40e5cf05c49d7dcb2c2908f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=A5IGA?= <164882787+Xphalnos@users.noreply.github.com> Date: Fri, 6 Sep 2024 23:26:56 +0200 Subject: [PATCH] Adding Refresh icon to toolbar (#816) --- src/images/play_icon.png | Bin 2470 -> 1150 bytes src/qt_gui/main_window.cpp | 3 +++ src/qt_gui/main_window_ui.h | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/src/images/play_icon.png b/src/images/play_icon.png index c67831a1e47bae69506b469b6fd2c2ca9a5f1c83..2815be39d8594b213fad22e68c7e8ac16872d639 100644 GIT binary patch literal 1150 zcmV-^1cCdBP)hhkOu0@KGNW1f!&&u~0;WsPNL|!LFt-qchILs;B!!IHF$}y9 zJel{6l!0|qlu2?;z8oQMqkUjb{|d|!p7-9iE{ z0~aI3oB|e6ak3KPm8(rx5(B$OZmuDFXjIN=V*9Y8S}% z1Aj$`xdXfhJWh$QA|x=|FLX6p&rcdZ`XUVXnO%6S2?_M42>f3I>nS)^g#^|BU!(~9 z%P1(;h13TAA0niT`oRA*1)~T;>I46u5n}EZE$|mfNMM!^{38)!e)56eEv%WQh(ZF3 zec*4kurJ)#s~D!pLISIOWlU_~e*uG(K}cW__&&1g@+dGLLzGEKs84pW;#OqfcQI)O z1}K}5K%ale!x3VBwh;KsDkQMbzm{SG|5acMIZ<{YffrNE_)q7N>aU8BFyr3}d>5JO zKh((;%PI+}pYi_|A;zU)IzknN)CT^;5i|aG=m1p~5_rZJgO9hcAodg)BOwo2<+o2X zlkzSZBO#CSMw1${OJt0MG-i8(kg=>&`4ZBYX-)o1GTnG2A@M@oM?hvsNMm;Bm1T#W zO?HGSs2lt2b!n7L(JPCniDBmZR;nzdFEVxVRwpj1ib8r*Bo{yG)WuavNLPyVyQ?ui zsPudL(E^nbw1jH}6*(B8M`b{E7*wI04OXj^)CP-HY;A*C+Kym@UTxU1L6^3)*-4$O z(WXxuxvYL|i?)$moUO(IHnP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9G({fkuibq0qz*o_^2ZA1hDcXLuHY zCxPu1jF}4}4$rrd9Gk17IB65G#I=7Ix&>jNRRxu6w?XA!s|Z2um3AIahQSRmxJ zB!}m(B<+_guOe`ROwi#uhcSm|z!|VTetgs)0wMMIs9Pi*)?_Y4;EYt`qoxDr z6B{3O0Pt%`=QNc=5jZoppR)aB(&U0$0wGg?uS)uO6W1>Sw}kE68Jk=X86R~*6W1*Q zcbvwK)hTQmNe7aaH)jPyE^FetrGhgfX$MK?k;XSh#N7aV!}gDxxPGbNj7T~fxB%EI z7_u5T*>>c0n-HafGazX;iz@@;Mwj*OFCPfi=5=fd& z+7XJ*`?!~MJB|*HnKb1VJpm-`ENKbp`!gc$bEKEurnf0BlnUNrBppwB^oh>gT1l$f z-{#BeZ#y~yIXmSRy%8ksBxy0Qf|$6^lU`PvIZWb0so<9&=~&?VKy-Ti zZKU<%$T0-1Q!2PZ(w>s80DewP+$Tv*)FHzvE|dyJ($>JKz}JE3`@PFZ-?fpWfCfsh z1+F&XmjKZ-m>vR7vmHImYvAiU$h;0GjL?+oWPRikg9gyV94)C z+j)_9dquGDgI$ zos6@KxQU^x;BlMq=Kwnd!dV~i^-SO4=vKn26<`ymK zHINNwcU`cyO`U%O&7!kMLgg>~5 z8)G09T#dQ^G;kgeJuYq;>AN;^?qH#!b%7<#BpKKa35GljEa=iEe4Dg(iyr4>yp@=^ zbIXZSk7Dr-=%Fd^3N44EPlA-Xd=MG$HV6(s$~{xCEGH`$x7T2RRlR zX3_%N-T-`z7mK_OIMVj~zS&fV4K-C*lD1-OZsR)JFEsMOg-Owvz=h#tXe>L0JQRUD kP7%1{6oETV5xC?07l%~%TYdMGPXGV_07*qoM6N<$f(uQ0mjD0& diff --git a/src/qt_gui/main_window.cpp b/src/qt_gui/main_window.cpp index 93969100d..bd2f097ea 100644 --- a/src/qt_gui/main_window.cpp +++ b/src/qt_gui/main_window.cpp @@ -88,6 +88,7 @@ void MainWindow::AddUiWidgets() { ui->toolBar->addWidget(ui->playButton); ui->toolBar->addWidget(ui->pauseButton); ui->toolBar->addWidget(ui->stopButton); + ui->toolBar->addWidget(ui->refreshButton); ui->toolBar->addWidget(ui->settingsButton); ui->toolBar->addWidget(ui->controllerButton); QFrame* line = new QFrame(this); @@ -177,6 +178,7 @@ void MainWindow::CreateConnects() { connect(ui->mw_searchbar, &QLineEdit::textChanged, this, &MainWindow::SearchGameTable); connect(ui->exitAct, &QAction::triggered, this, &QWidget::close); 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(this, &MainWindow::ExtractionFinished, this, &MainWindow::RefreshGameTable); @@ -852,6 +854,7 @@ void MainWindow::SetUiIcons(bool isWhite) { ui->playButton->setIcon(RecolorIcon(ui->playButton->icon(), isWhite)); ui->pauseButton->setIcon(RecolorIcon(ui->pauseButton->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->controllerButton->setIcon(RecolorIcon(ui->controllerButton->icon(), isWhite)); ui->refreshGameListAct->setIcon(RecolorIcon(ui->refreshGameListAct->icon(), isWhite)); diff --git a/src/qt_gui/main_window_ui.h b/src/qt_gui/main_window_ui.h index 0acfade0e..8ae5965f8 100644 --- a/src/qt_gui/main_window_ui.h +++ b/src/qt_gui/main_window_ui.h @@ -38,6 +38,7 @@ public: QPushButton* playButton; QPushButton* pauseButton; QPushButton* stopButton; + QPushButton* refreshButton; QPushButton* settingsButton; QPushButton* controllerButton; @@ -176,6 +177,10 @@ public: stopButton->setFlat(true); stopButton->setIcon(QIcon(":images/stop_icon.png")); 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->setFlat(true); settingsButton->setIcon(QIcon(":images/settings_icon.png"));