]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/marginwidget.hpp
TabularDecView: Allow return/enter press and don't change scale
[pulseview.git] / pv / views / trace / marginwidget.hpp
index 9a0686aa4c93e1ffd4448411ee2b035c7330a742..bedf8a92bea06051e69eea31d19d11a840894b10 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef PULSEVIEW_PV_MARGINWIDGET_HPP
-#define PULSEVIEW_PV_MARGINWIDGET_HPP
+#ifndef PULSEVIEW_PV_VIEWS_TRACE_MARGINWIDGET_HPP
+#define PULSEVIEW_PV_VIEWS_TRACE_MARGINWIDGET_HPP
 
 #include <memory>
 
@@ -61,14 +61,16 @@ protected:
         */
        void show_popup(const shared_ptr<ViewItem> &item);
 
-protected:
+protected Q_SLOTS:
        virtual void contextMenuEvent(QContextMenuEvent *event);
 
        virtual void keyPressEvent(QKeyEvent *event);
+
+       virtual void on_popup_closed();
 };
 
 } // namespace trace
 } // namespace views
 } // namespace pv
 
-#endif // PULSEVIEW_PV_MARGINWIDGET_HPP
+#endif // PULSEVIEW_PV_VIEWS_TRACE_MARGINWIDGET_HPP