X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Fpopuptoolbutton.cpp;h=3fc2eb20aa9be8e15c6f267a5aed8ebb6769c0bb;hp=5153eee55ad53d547600e70fd7d2b2a04437e6a3;hb=2601ce965fc455d23f5a964b84ddd74eb93705c4;hpb=4c60462b00cc329e61daedd1c2e66724077bd412 diff --git a/pv/widgets/popuptoolbutton.cpp b/pv/widgets/popuptoolbutton.cpp index 5153eee5..3fc2eb20 100644 --- a/pv/widgets/popuptoolbutton.cpp +++ b/pv/widgets/popuptoolbutton.cpp @@ -14,11 +14,10 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ -#include +#include #include "popuptoolbutton.hpp" @@ -45,7 +44,7 @@ void PopupToolButton::set_popup(Popup *popup) void PopupToolButton::on_clicked(bool) { - if(!popup_) + if (!popup_) return; const QRect r = rect(); @@ -54,5 +53,5 @@ void PopupToolButton::on_clicked(bool) popup_->show(); } -} // widgets -} // pv +} // namespace widgets +} // namespace pv