Skip to content

Commit

Permalink
[Trivial] Fix warning in mousePressEvent.
Browse files Browse the repository at this point in the history
Because of the parent function 'QWidget::mousePressEvent'.
  • Loading branch information
furszy committed Apr 14, 2020
1 parent ab353d9 commit f94c3ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/qt/pivx/expandablebutton.cpp
Expand Up @@ -21,7 +21,7 @@ ExpandableButton::ExpandableButton(QWidget *parent) :
ui->pushButton->setCheckable(true);
this->layout()->setSizeConstraint(QLayout::SetFixedSize);

connect(ui->pushButton, &QPushButton::clicked, this, &ExpandableButton::mousePressEvent);
connect(ui->pushButton, &QPushButton::clicked, this, &ExpandableButton::innerMousePressEvent);
}

void ExpandableButton::setButtonClassStyle(const char *name, const QVariant &value, bool forceUpdate)
Expand Down Expand Up @@ -100,7 +100,7 @@ void ExpandableButton::leaveEvent(QEvent *) {
Q_EMIT Mouse_HoverLeave();
}

void ExpandableButton::mousePressEvent(){
void ExpandableButton::innerMousePressEvent(){
Q_EMIT Mouse_Pressed();
}

Expand Down
2 changes: 1 addition & 1 deletion src/qt/pivx/expandablebutton.h
Expand Up @@ -57,7 +57,7 @@ private Q_SLOTS:

void on_pushButton_clicked(bool checked);

void mousePressEvent();
void innerMousePressEvent();
private:
Ui::ExpandableButton *ui;
QString notExpandedText;
Expand Down

0 comments on commit f94c3ed

Please sign in to comment.