Skip to content

Commit

Permalink
Remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Jul 26, 2020
1 parent 2f8a133 commit 8a531b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/dialog/splashdialog.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "splashdialog.hpp"

SplashDialog::SplashDialog(const QPalette &palette)
: palette(palette), QSplashScreen()
SplashDialog::SplashDialog()
: QSplashScreen()
{
QPixmap background(104, 104);
background.fill(QColor::fromRgb(0x4caf50));
Expand Down
5 changes: 1 addition & 4 deletions src/dialog/splashdialog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ class SplashDialog: public QSplashScreen
Q_OBJECT

public:
explicit SplashDialog(const QPalette &palette);
SplashDialog();
void showMessage(const QString &message);

private:
const QPalette &palette;
};
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MainWindow::MainWindow(Settings &settings)
Utils::darkBackground = true;

// Splash
auto splash = new SplashDialog(palette());
auto splash = new SplashDialog();
splash->show();
splash->showMessage("Please wait...");

Expand Down

0 comments on commit 8a531b2

Please sign in to comment.