From 7c8b6ad299f4b4cfd5299953aff932316893a372 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sun, 16 Aug 2015 09:35:54 -0600 Subject: [PATCH] RowItem: Moved hover_point_changed in --- CMakeLists.txt | 1 + pv/view/rowitem.cpp | 31 +++++++++++++++++++++++++++++++ pv/view/rowitem.hpp | 3 +++ pv/view/tracetreeitem.cpp | 4 ---- pv/view/tracetreeitem.hpp | 3 --- 5 files changed, 35 insertions(+), 7 deletions(-) create mode 100644 pv/view/rowitem.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index a979be66..c80a834d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -207,6 +207,7 @@ set(pulseview_SOURCES pv/view/header.cpp pv/view/marginwidget.cpp pv/view/logicsignal.cpp + pv/view/rowitem.cpp pv/view/ruler.cpp pv/view/signal.cpp pv/view/timeitem.cpp diff --git a/pv/view/rowitem.cpp b/pv/view/rowitem.cpp new file mode 100644 index 00000000..4ad8b599 --- /dev/null +++ b/pv/view/rowitem.cpp @@ -0,0 +1,31 @@ +/* + * This file is part of the PulseView project. + * + * Copyright (C) 2015 Joel Holdsworth + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * 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 + */ + +#include "rowitem.hpp" + +namespace pv { +namespace view { + +void RowItem::hover_point_changed() +{ +} + +} // namespace view +} // namespace pv diff --git a/pv/view/rowitem.hpp b/pv/view/rowitem.hpp index 80bf8a52..1c487866 100644 --- a/pv/view/rowitem.hpp +++ b/pv/view/rowitem.hpp @@ -29,6 +29,9 @@ namespace view { class RowItem : public ViewItem { Q_OBJECT + +public: + virtual void hover_point_changed(); }; } // namespace view diff --git a/pv/view/tracetreeitem.cpp b/pv/view/tracetreeitem.cpp index 1e09908b..fa11e292 100644 --- a/pv/view/tracetreeitem.cpp +++ b/pv/view/tracetreeitem.cpp @@ -131,9 +131,5 @@ QPoint TraceTreeItem::point(const QRect &rect) const return QPoint(rect.right(), get_visual_y()); } -void TraceTreeItem::hover_point_changed() -{ -} - } // namespace view } // namespace pv diff --git a/pv/view/tracetreeitem.hpp b/pv/view/tracetreeitem.hpp index 3b216988..5e60ffcb 100644 --- a/pv/view/tracetreeitem.hpp +++ b/pv/view/tracetreeitem.hpp @@ -111,9 +111,6 @@ public: */ virtual std::pair v_extents() const = 0; -public: - virtual void hover_point_changed(); - protected: pv::view::TraceTreeItemOwner *owner_; -- 2.30.2