X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fsignalscalehandle.cpp;h=20a4cad427338ab92bb9ce36b663954155a746c2;hb=60938e0430a0d08792ba53b86ca94153baaed74d;hp=59e618ca95b9dc7914e5b5a73a74a2d4e3cd8af3;hpb=f1626bb80080435e306c9a6c5d6ff20dd6dc9e57;p=pulseview.git diff --git a/pv/view/signalscalehandle.cpp b/pv/view/signalscalehandle.cpp index 59e618c..20a4cad 100644 --- a/pv/view/signalscalehandle.cpp +++ b/pv/view/signalscalehandle.cpp @@ -14,8 +14,7 @@ * 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 + * along with this program; if not, see . */ #include @@ -30,7 +29,8 @@ using std::max; using std::min; namespace pv { -namespace view { +namespace views { +namespace TraceView { SignalScaleHandle::SignalScaleHandle(Signal &owner) : owner_(owner) @@ -59,6 +59,7 @@ void SignalScaleHandle::drag_by(const QPoint &delta) { owner_.scale_handle_dragged( drag_point_.y() + delta.y() - owner_.get_visual_y()); + owner_.owner()->row_item_appearance_changed(true, true); } QPoint SignalScaleHandle::point(const QRect &rect) const @@ -78,7 +79,7 @@ QRectF SignalScaleHandle::hit_box_rect(const ViewItemPaintParams &pp) const text_height, text_height); } -void SignalScaleHandle::paint_fore(QPainter &p, const ViewItemPaintParams &pp) +void SignalScaleHandle::paint_fore(QPainter &p, ViewItemPaintParams &pp) { if (!enabled()) return; @@ -102,5 +103,6 @@ void SignalScaleHandle::paint_fore(QPainter &p, const ViewItemPaintParams &pp) p.drawEllipse(r); } -} // view -} // pv +} // namespace TraceView +} // namespace views +} // namespace pv