comparison view/Pane.h @ 1206:67f437277069 3.0-integration

Fix some compiler warnings
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 03 Jan 2017 11:55:29 +0000
parents 6828735468c9
children a34a2a25907c
comparison
equal deleted inserted replaced
1205:42217d9c5920 1206:67f437277069
82 void dropAccepted(QString text); 82 void dropAccepted(QString text);
83 void doubleClickSelectInvoked(sv_frame_t frame); 83 void doubleClickSelectInvoked(sv_frame_t frame);
84 void regionOutlined(QRect rect); 84 void regionOutlined(QRect rect);
85 85
86 public slots: 86 public slots:
87 virtual void toolModeChanged(); 87 // view slots
88 virtual void zoomWheelsEnabledChanged(); 88 virtual void toolModeChanged() override;
89 virtual void viewZoomLevelChanged(View *v, int z, bool locked); 89 virtual void zoomWheelsEnabledChanged() override;
90 virtual void modelAlignmentCompletionChanged(); 90 virtual void viewZoomLevelChanged(View *v, int z, bool locked) override;
91 91 virtual void modelAlignmentCompletionChanged() override;
92
93 // local slots, not overrides
92 virtual void horizontalThumbwheelMoved(int value); 94 virtual void horizontalThumbwheelMoved(int value);
93 virtual void verticalThumbwheelMoved(int value); 95 virtual void verticalThumbwheelMoved(int value);
94 virtual void verticalZoomChanged(); 96 virtual void verticalZoomChanged();
95 virtual void verticalPannerMoved(float x, float y, float w, float h); 97 virtual void verticalPannerMoved(float x, float y, float w, float h);
96 virtual void editVerticalPannerExtents(); 98 virtual void editVerticalPannerExtents();
97 99
98 virtual void layerParametersChanged(); 100 virtual void layerParametersChanged() override;
99 101
100 virtual void propertyContainerSelected(View *, PropertyContainer *pc); 102 virtual void propertyContainerSelected(View *, PropertyContainer *pc) override;
101 103
102 void zoomToRegion(QRect r); 104 void zoomToRegion(QRect r);
103 105
104 void mouseEnteredWidget(); 106 void mouseEnteredWidget();
105 void mouseLeftWidget(); 107 void mouseLeftWidget();
106 108
107 protected slots: 109 protected slots:
108 void playbackScheduleTimerElapsed(); 110 void playbackScheduleTimerElapsed();
109 111
110 protected: 112 protected:
111 virtual void paintEvent(QPaintEvent *e); 113 virtual void paintEvent(QPaintEvent *e) override;
112 virtual void mousePressEvent(QMouseEvent *e); 114 virtual void mousePressEvent(QMouseEvent *e) override;
113 virtual void mouseReleaseEvent(QMouseEvent *e); 115 virtual void mouseReleaseEvent(QMouseEvent *e) override;
114 virtual void mouseMoveEvent(QMouseEvent *e); 116 virtual void mouseMoveEvent(QMouseEvent *e) override;
115 virtual void mouseDoubleClickEvent(QMouseEvent *e); 117 virtual void mouseDoubleClickEvent(QMouseEvent *e) override;
116 virtual void enterEvent(QEvent *e); 118 virtual void enterEvent(QEvent *e) override;
117 virtual void leaveEvent(QEvent *e); 119 virtual void leaveEvent(QEvent *e) override;
118 virtual void wheelEvent(QWheelEvent *e); 120 virtual void wheelEvent(QWheelEvent *e) override;
119 virtual void resizeEvent(QResizeEvent *e); 121 virtual void resizeEvent(QResizeEvent *e) override;
120 virtual void dragEnterEvent(QDragEnterEvent *e); 122 virtual void dragEnterEvent(QDragEnterEvent *e) override;
121 virtual void dropEvent(QDropEvent *e); 123 virtual void dropEvent(QDropEvent *e) override;
122 124
123 void wheelVertical(int sign, Qt::KeyboardModifiers); 125 void wheelVertical(int sign, Qt::KeyboardModifiers);
124 void wheelHorizontal(int sign, Qt::KeyboardModifiers); 126 void wheelHorizontal(int sign, Qt::KeyboardModifiers);
125 void wheelHorizontalFine(int pixels, Qt::KeyboardModifiers); 127 void wheelHorizontalFine(int pixels, Qt::KeyboardModifiers);
126 128
132 void drawWorkTitle(QRect, QPainter &, const Model *); 134 void drawWorkTitle(QRect, QPainter &, const Model *);
133 void drawLayerNames(QRect, QPainter &); 135 void drawLayerNames(QRect, QPainter &);
134 void drawEditingSelection(QPainter &); 136 void drawEditingSelection(QPainter &);
135 void drawAlignmentStatus(QRect, QPainter &, const Model *, bool down); 137 void drawAlignmentStatus(QRect, QPainter &, const Model *, bool down);
136 138
137 virtual bool render(QPainter &paint, int x0, sv_frame_t f0, sv_frame_t f1); 139 virtual bool render(QPainter &paint, int x0, sv_frame_t f0, sv_frame_t f1) override;
138 140
139 Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight) const; 141 Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight) const;
140 142
141 bool editSelectionStart(QMouseEvent *e); 143 bool editSelectionStart(QMouseEvent *e);
142 bool editSelectionDrag(QMouseEvent *e); 144 bool editSelectionDrag(QMouseEvent *e);