X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fheader.hpp;h=e249264330a074c65cbe51559d9fbde54844c412;hp=c5c8ae7a323ced381a0d18048ef31cca2327d7f7;hb=bc01bb31fb03f69c8ceef57676b3399d7a08dcd9;hpb=819e2e95555b2b3c2190f24a3cfa82250d1f34e5 diff --git a/pv/view/header.hpp b/pv/view/header.hpp index c5c8ae7a..e2492643 100644 --- a/pv/view/header.hpp +++ b/pv/view/header.hpp @@ -32,6 +32,7 @@ namespace view { class RowItem; class View; +class ViewItem; class Header : public MarginWidget { @@ -59,13 +60,17 @@ public: static const int BaselineOffset; private: - std::shared_ptr get_mouse_over_row_item( + /** + * Gets the first view item which has a label that contains @c pt . + * @param pt the point to search with. + * @return the view item that has been found, or and empty + * @c shared_ptr if no item was found. + */ + std::shared_ptr get_mouse_over_item( const QPoint &pt); void clear_selection(); - void show_popup(const std::shared_ptr &item); - private: void paintEvent(QPaintEvent *event); @@ -78,8 +83,6 @@ private: void mouseMoveEvent(QMouseEvent *event); - void leaveEvent(QEvent *event); - void contextMenuEvent(QContextMenuEvent *event); void keyPressEvent(QKeyEvent *e); @@ -93,9 +96,6 @@ private Q_SLOTS: Q_SIGNALS: void signals_moved(); - -private: - std::shared_ptr mouse_down_item_; }; } // namespace view