Skip to content

Commit

Permalink
feat(DSuggestButton): add initialize text parameter.
Browse files Browse the repository at this point in the history
Change-Id: I94b89c6fdb1d01fc171ec2923bebb8096eb05383
  • Loading branch information
rekols committed Jan 31, 2018
1 parent 1cdf42f commit 2076793
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/widgets/dsuggestbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ DSuggestButton::DSuggestButton(QWidget *parent)

}

DSuggestButton::DSuggestButton(const QString &text, QWidget *parent)
: QPushButton(text, parent)
{

}


void DSuggestButton::paintEvent(QPaintEvent *event)
{
QPushButton::paintEvent(event);
Expand Down
2 changes: 2 additions & 0 deletions src/widgets/dsuggestbutton.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ DWIDGET_BEGIN_NAMESPACE
class LIBDTKWIDGETSHARED_EXPORT DSuggestButton : public QPushButton, public DTK_CORE_NAMESPACE::DObject
{
Q_OBJECT

public:
explicit DSuggestButton(QWidget *parent = nullptr);
explicit DSuggestButton(const QString &text, QWidget *parent = nullptr);

protected:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
Expand Down

0 comments on commit 2076793

Please sign in to comment.