]> sigrok.org Git - pulseview.git/blobdiff - pv/view/signalscalehandle.cpp
Fix #957 and #874 by implementing the pane splitter
[pulseview.git] / pv / view / signalscalehandle.cpp
index 59e618ca95b9dc7914e5b5a73a74a2d4e3cd8af3..20a4cad427338ab92bb9ce36b663954155a746c2 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>.
  */
 
 #include <algorithm>
@@ -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