Skip to content

Commit

Permalink
signal changeTheme name changed to not override parent slot
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy committed Aug 28, 2019
1 parent c75ffb7 commit 316977a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/qt/pivx.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
<file alias="ic-arrow-white-right">pivx/res/img/ic-arrow-white-right.svg</file>
<file alias="ic-check-active">pivx/res/img/ic-check-active.svg</file>
<file alias="ic-check-box">pivx/res/img/ic-check-box.svg</file>
<file alias="ic-check-box-indeterminate">pivx/res/img/ic-check-box-indeterminate.svg</file>
<file alias="ic-check-box-liliac-indeterminate">pivx/res/img/ic-check-box-liliac-indeterminate.svg</file>
<file alias="ic-check-connect-off">pivx/res/img/ic-check-connect-off.svg</file>
<file alias="ic-check-connect">pivx/res/img/ic-check-connect.svg</file>
Expand Down
2 changes: 1 addition & 1 deletion src/qt/pivx/PIVXGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void PIVXGUI::connectActions() {
});

connect(topBar, &TopBar::showHide, this, &PIVXGUI::showHide);
connect(topBar, &TopBar::changeTheme, this, &PIVXGUI::changeTheme);
connect(topBar, &TopBar::themeChanged, this, &PIVXGUI::changeTheme);
connect(settingsWidget, &SettingsWidget::showHide, this, &PIVXGUI::showHide);
connect(sendWidget, &SendWidget::showHide, this, &PIVXGUI::showHide);
connect(receiveWidget, &ReceiveWidget::showHide, this, &PIVXGUI::showHide);
Expand Down
2 changes: 1 addition & 1 deletion src/qt/pivx/topbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void TopBar::onThemeClicked(){
updateStyle(ui->pushButtonTheme);
}

emit changeTheme(lightTheme);
emit themeChanged(lightTheme);
}


Expand Down
2 changes: 1 addition & 1 deletion src/qt/pivx/topbar.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public slots:
void updateStakingStatus();

signals:
void changeTheme(bool isLight);
void themeChanged(bool isLight);
void walletSynced(bool isSync);
private slots:
void onBtnReceiveClicked();
Expand Down

0 comments on commit 316977a

Please sign in to comment.