X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fwidgets%2Fpopuptoolbutton.cpp;h=3fc2eb20aa9be8e15c6f267a5aed8ebb6769c0bb;hb=4e2195c8d934f7f874b612eaace8c6849e8b475d;hp=a5886aafed4a86b0c64891a5386ca71a934fba2d;hpb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5;p=pulseview.git
diff --git a/pv/widgets/popuptoolbutton.cpp b/pv/widgets/popuptoolbutton.cpp
index a5886aa..3fc2eb2 100644
--- a/pv/widgets/popuptoolbutton.cpp
+++ b/pv/widgets/popuptoolbutton.cpp
@@ -14,20 +14,19 @@
* 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.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 +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