X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Fpopup.hpp;h=66f7f06f5d87192a2ea77cbafee44af21cec294c;hp=83ad7ee0fbd082ebb533fe7dafa280b6944d6a04;hb=dbed5609ae31cdfc3e9db10f3ab91b7607c08372;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329 diff --git a/pv/widgets/popup.hpp b/pv/widgets/popup.hpp index 83ad7ee0..66f7f06f 100644 --- a/pv/widgets/popup.hpp +++ b/pv/widgets/popup.hpp @@ -14,12 +14,11 @@ * 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 . */ -#ifndef PULSEVIEW_PV_WIDGETS_POPUP_H -#define PULSEVIEW_PV_WIDGETS_POPUP_H +#ifndef PULSEVIEW_PV_WIDGETS_POPUP_HPP +#define PULSEVIEW_PV_WIDGETS_POPUP_HPP #include @@ -52,9 +51,9 @@ public: void set_position(const QPoint point, Position pos); - bool eventFilter(QObject *obj, QEvent *evt); + bool eventFilter(QObject *obj, QEvent *event); - void show(); + virtual void show(); private: bool space_for_arrow() const; @@ -78,10 +77,10 @@ private: void resizeEvent(QResizeEvent*); - void mouseReleaseEvent(QMouseEvent *e); + void mouseReleaseEvent(QMouseEvent *event); protected: - void showEvent(QShowEvent *e); + void showEvent(QShowEvent *); Q_SIGNALS: void closed(); @@ -94,4 +93,4 @@ private: } // namespace widgets } // namespace pv -#endif // PULSEVIEW_PV_WIDGETS_POPUP_H +#endif // PULSEVIEW_PV_WIDGETS_POPUP_HPP