Skip to content

Commit 4165980

Browse files
committed
1 parent 6470888 commit 4165980

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/annotation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Annotation::Annotation(const QString &filePath) : Annotation() {
8282
/**
8383
* @brief Constructs the annotation object from a file path.
8484
*/
85-
Annotation::Annotation() : annotationFile{new QFile()}, annotations{new QMap<int, QString>()}, isActive{false} {
85+
Annotation::Annotation(QWidget *parent) : annotationFile{new QFile()}, annotations{new QMap<int, QString>()}, isActive{false} {
8686
}
8787

8888
/**

src/annotation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Annotation : public QWidget {
3838
void annotationText(const QString &text);
3939

4040
public:
41-
Annotation();
41+
explicit Annotation(QWidget *parent = nullptr);
4242
Annotation(const QString &annotationFile);
4343
Annotation(const Annotation &T) = delete;
4444
Annotation &operator=(const Annotation &T) = delete;

src/autolevel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class AutoLevel : public QObject {
4545
double computeStdPerimeter(const Data &data);
4646

4747
public:
48-
AutoLevel() = default;
48+
explicit AutoLevel(QWidget *parent = nullptr) : QObject(parent){};
4949
~AutoLevel();
5050
AutoLevel(const string &path, const UMat &background, const QMap<QString, QString> &parameters);
5151
AutoLevel(const AutoLevel &T) = delete;

src/tracking.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class Tracking : public QObject {
109109
QMap<QString, QString> parameters; /*!< map of all the parameters for the tracking. */
110110

111111
public:
112-
Tracking() = default;
112+
explicit Tracking(QWidget *parent = nullptr) : QObject(parent){};
113113
Tracking(const string &path, const string &background, int startImage = 0, int stopImage = -1);
114114
Tracking(const string &path, const UMat &background, int startImage = 0, int stopImage = -1);
115115
Tracking(const Tracking &) = delete;

0 commit comments

Comments
 (0)