]> sigrok.org Git - pulseview.git/blobdiff - pv/widgets/popuptoolbutton.cpp
Make member variable underscores a suffix instead of a prefix
[pulseview.git] / pv / widgets / popuptoolbutton.cpp
index 74743ed4e27b1fdac8a77d807fb8e579329afc12..a5886aafed4a86b0c64891a5386ca71a934fba2d 100644 (file)
@@ -27,31 +27,31 @@ namespace widgets {
 
 PopupToolButton::PopupToolButton(QWidget *parent) :
        QToolButton(parent),
-       _popup(NULL)
+       popup_(NULL)
 {
        connect(this, SIGNAL(clicked(bool)), this, SLOT(on_clicked(bool)));
 }
 
 Popup* PopupToolButton::popup() const
 {
-       return _popup;
+       return popup_;
 }
 
 void PopupToolButton::set_popup(Popup *popup)
 {
        assert(popup);
-       _popup = popup;
+       popup_ = popup;
 }
 
 void PopupToolButton::on_clicked(bool)
 {
-       if(!_popup)
+       if(!popup_)
                return;
 
        const QRect r = rect();
-       _popup->set_position(mapToGlobal(QPoint((r.left() + r.right()) / 2,
+       popup_->set_position(mapToGlobal(QPoint((r.left() + r.right()) / 2,
                ((r.top() + r.bottom() * 3) / 4))), Popup::Bottom);
-       _popup->show();
+       popup_->show();
 }
 
 } // widgets