From: Joel Holdsworth Date: Sun, 16 Aug 2015 15:35:54 +0000 (-0600) Subject: RowItem: Moved hover_point_changed in X-Git-Tag: pulseview-0.3.0~96 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7c8b6ad299f4b4cfd5299953aff932316893a372;p=pulseview.git RowItem: Moved hover_point_changed in --- 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_;