X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fwidgets%2Fpopuptoolbutton.cpp;h=ff335a90e0acecde9d14fd52f0131aede820fcd7;hb=f32905530347e1020d5ce7959123cf797c9a4829;hp=a5886aafed4a86b0c64891a5386ca71a934fba2d;hpb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5;p=pulseview.git diff --git a/pv/widgets/popuptoolbutton.cpp b/pv/widgets/popuptoolbutton.cpp index a5886aa..ff335a9 100644 --- a/pv/widgets/popuptoolbutton.cpp +++ b/pv/widgets/popuptoolbutton.cpp @@ -20,14 +20,14 @@ #include -#include "popuptoolbutton.h" +#include "popuptoolbutton.hpp" namespace pv { namespace widgets { PopupToolButton::PopupToolButton(QWidget *parent) : QToolButton(parent), - popup_(NULL) + popup_(nullptr) { connect(this, SIGNAL(clicked(bool)), this, SLOT(on_clicked(bool))); } @@ -45,7 +45,7 @@ void PopupToolButton::set_popup(Popup *popup) void PopupToolButton::on_clicked(bool) { - if(!popup_) + if (!popup_) return; const QRect r = rect();