##// END OF EJS Templates
Add const and override
perrinel -
r112:ab875bffb49d
parent child
Show More
@@ -17,7 +17,7 public:
17 /// Initializes the plugin
17 /// Initializes the plugin
18 virtual void accept(IVisualizationWidget *visitor) = 0;
18 virtual void accept(IVisualizationWidget *visitor) = 0;
19 virtual void close() = 0;
19 virtual void close() = 0;
20 virtual QString name() = 0;
20 virtual QString name() const = 0;
21 };
21 };
22
22
23
23
@@ -25,9 +25,9 public:
25 void addVariable(std::shared_ptr<Variable> variable);
25 void addVariable(std::shared_ptr<Variable> variable);
26
26
27 // IVisualizationWidget interface
27 // IVisualizationWidget interface
28 void accept(IVisualizationWidget *visitor);
28 void accept(IVisualizationWidget *visitor) override;
29 void close();
29 void close() override;
30 QString name();
30 QString name() const;
31
31
32 private:
32 private:
33 Ui::VisualizationGraphWidget *ui;
33 Ui::VisualizationGraphWidget *ui;
@@ -28,9 +28,9 public:
28 void removeZone(VisualizationZoneWidget *zone);
28 void removeZone(VisualizationZoneWidget *zone);
29
29
30 // IVisualizationWidget interface
30 // IVisualizationWidget interface
31 void accept(IVisualizationWidget *visitor);
31 void accept(IVisualizationWidget *visitor) override;
32 void close();
32 void close() override;
33 QString name();
33 QString name() const override;
34
34
35 private:
35 private:
36 Ui::VisualizationTabWidget *ui;
36 Ui::VisualizationTabWidget *ui;
@@ -31,9 +31,9 public:
31 void removeTab(VisualizationTabWidget *tab);
31 void removeTab(VisualizationTabWidget *tab);
32
32
33 // IVisualizationWidget interface
33 // IVisualizationWidget interface
34 void accept(IVisualizationWidget *visitor);
34 void accept(IVisualizationWidget *visitor) override;
35 void close();
35 void close() override;
36 QString name();
36 QString name() const;
37
37
38 private:
38 private:
39 Ui::VisualizationWidget *ui;
39 Ui::VisualizationWidget *ui;
@@ -28,9 +28,9 public:
28 void removeGraph(VisualizationGraphWidget *graph);
28 void removeGraph(VisualizationGraphWidget *graph);
29
29
30 // IVisualizationWidget interface
30 // IVisualizationWidget interface
31 void accept(IVisualizationWidget *visitor);
31 void accept(IVisualizationWidget *visitor) override;
32 void close();
32 void close() override;
33 QString name();
33 QString name() const override;
34
34
35 private:
35 private:
36 Ui::VisualizationZoneWidget *ui;
36 Ui::VisualizationZoneWidget *ui;
@@ -41,7 +41,7 void VisualizationGraphWidget::close()
41 return;
41 return;
42 }
42 }
43
43
44 QString VisualizationGraphWidget::name()
44 QString VisualizationGraphWidget::name() const
45 {
45 {
46 return QStringLiteral("MainView");
46 return QStringLiteral("MainView");
47 }
47 }
@@ -8,7 +8,6 VisualizationTabWidget::VisualizationTabWidget(QWidget *parent)
8 : QWidget{parent}, ui{new Ui::VisualizationTabWidget}
8 : QWidget{parent}, ui{new Ui::VisualizationTabWidget}
9 {
9 {
10 ui->setupUi(this);
10 ui->setupUi(this);
11
12 }
11 }
13
12
14 VisualizationTabWidget::~VisualizationTabWidget()
13 VisualizationTabWidget::~VisualizationTabWidget()
@@ -44,7 +43,7 void VisualizationTabWidget::close()
44 return;
43 return;
45 }
44 }
46
45
47 QString VisualizationTabWidget::name()
46 QString VisualizationTabWidget::name() const
48 {
47 {
49 return QStringLiteral("MainView");
48 return QStringLiteral("MainView");
50 }
49 }
@@ -68,7 +68,7 void VisualizationWidget::close()
68 return;
68 return;
69 }
69 }
70
70
71 QString VisualizationWidget::name()
71 QString VisualizationWidget::name() const
72 {
72 {
73 return QStringLiteral("MainView");
73 return QStringLiteral("MainView");
74 }
74 }
@@ -42,7 +42,7 void VisualizationZoneWidget::close()
42 return;
42 return;
43 }
43 }
44
44
45 QString VisualizationZoneWidget::name()
45 QString VisualizationZoneWidget::name() const
46 {
46 {
47 return QStringLiteral("MainView");
47 return QStringLiteral("MainView");
48 }
48 }
General Comments 1
Under Review
author

Auto status change to "Under Review"

You need to be logged in to leave comments. Login now