X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Fdevicetoolbutton.hpp;h=af9e6e686da2a0dfe5662adf3a48d6d4b52b976e;hp=1fb0a54486057cbcd776b3f782580d54f416ea43;hb=7a01bd3654ed046216308fa64edfd79be7cd525f;hpb=079d39ea735015597a65390e4c5cacc7d272f78c diff --git a/pv/widgets/devicetoolbutton.hpp b/pv/widgets/devicetoolbutton.hpp index 1fb0a54..af9e6e6 100644 --- a/pv/widgets/devicetoolbutton.hpp +++ b/pv/widgets/devicetoolbutton.hpp @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PULSEVIEW_PV_WIDGETS_DEVICETOOLBUTTON_H -#define PULSEVIEW_PV_WIDGETS_DEVICETOOLBUTTON_H +#ifndef PULSEVIEW_PV_WIDGETS_DEVICETOOLBUTTON_HPP +#define PULSEVIEW_PV_WIDGETS_DEVICETOOLBUTTON_HPP #include #include @@ -79,6 +79,10 @@ private: private Q_SLOTS: void on_action(QObject *action); + void on_menu_hovered(QAction *action); + + void on_menu_hover_timeout(); + Q_SIGNALS: void device_selected(); @@ -91,9 +95,11 @@ private: std::shared_ptr selected_device_; std::vector< std::weak_ptr > devices_; + + QString device_tooltip_; }; } // widgets } // pv -#endif // PULSEVIEW_PV_WIDGETS_DEVICETOOLBUTTON_H +#endif // PULSEVIEW_PV_WIDGETS_DEVICETOOLBUTTON_HPP