Don't use lower-case Qt macros

This commit is contained in:
Martchus 2020-03-08 14:04:29 +01:00
parent f6852b2a02
commit 3e58d67c4c
15 changed files with 23 additions and 23 deletions

View File

@ -14,7 +14,7 @@ set(META_GUI_OPTIONAL true)
set(META_JS_SRC_DIR renamingutility) set(META_JS_SRC_DIR renamingutility)
set(META_VERSION_MAJOR 3) set(META_VERSION_MAJOR 3)
set(META_VERSION_MINOR 3) set(META_VERSION_MINOR 3)
set(META_VERSION_PATCH 4) set(META_VERSION_PATCH 5)
set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON) set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON)
# add project files # add project files

View File

@ -128,7 +128,7 @@ protected:
void handleCoverReplyFinished(QNetworkReply *reply, const QString &albumId, int row); void handleCoverReplyFinished(QNetworkReply *reply, const QString &albumId, int row);
void parseCoverResults(const QString &albumId, int row, const QByteArray &data); void parseCoverResults(const QString &albumId, int row, const QByteArray &data);
private slots: private Q_SLOTS:
void handleInitialReplyFinished(); void handleInitialReplyFinished();
protected: protected:

View File

@ -29,7 +29,7 @@ public:
void setFileInfo(TagParser::MediaFileInfo *fileInfo, bool updateUi = true); void setFileInfo(TagParser::MediaFileInfo *fileInfo, bool updateUi = true);
const QList<TagParser::AbstractAttachment *> &currentAttachments() const; const QList<TagParser::AbstractAttachment *> &currentAttachments() const;
public slots: public Q_SLOTS:
void clear(); void clear();
void restore(); void restore();
void apply(); void apply();
@ -39,7 +39,7 @@ public slots:
void showFileSelection(); void showFileSelection();
void extractSelected(); void extractSelected();
private slots: private Q_SLOTS:
void selectionChanged(const QModelIndex &current, const QModelIndex &previous); void selectionChanged(const QModelIndex &current, const QModelIndex &previous);
private: private:

View File

@ -35,7 +35,7 @@ public:
SongDescription currentSongDescription() const; SongDescription currentSongDescription() const;
void applyResults(TagEdit *tagEdit, const QModelIndex &resultIndex); void applyResults(TagEdit *tagEdit, const QModelIndex &resultIndex);
public slots: public Q_SLOTS:
void searchMusicBrainz(); void searchMusicBrainz();
void searchLyricsWikia(); void searchLyricsWikia();
void searchMakeItPersonal(); void searchMakeItPersonal();
@ -48,7 +48,7 @@ public slots:
void insertSearchTermsFromActiveTagEdit(); void insertSearchTermsFromActiveTagEdit();
void clearSearchCriteria(); void clearSearchCriteria();
private slots: private Q_SLOTS:
void showResults(); void showResults();
void setStatus(bool aborted); void setStatus(bool aborted);
void fileStatusChanged(bool opened, bool hasTags); void fileStatusChanged(bool opened, bool hasTags);

View File

@ -33,7 +33,7 @@ public:
TagParser::TagTarget target() const; TagParser::TagTarget target() const;
void setTarget(const TagParser::TagTarget &target, const TagParser::MediaFileInfo *file = nullptr); void setTarget(const TagParser::TagTarget &target, const TagParser::MediaFileInfo *file = nullptr);
private slots: private Q_SLOTS:
void updateLevelNamePlaceholderText(int i); void updateLevelNamePlaceholderText(int i);
private: private:

View File

@ -47,7 +47,7 @@ public:
QString currentDirectory() const; QString currentDirectory() const;
bool isLayoutLocked() const; bool isLayoutLocked() const;
public slots: public Q_SLOTS:
void setCurrentDirectory(const QString &path); void setCurrentDirectory(const QString &path);
void setLayoutLocked(bool locked); void setLayoutLocked(bool locked);
void toggleLayoutLocked(); void toggleLayoutLocked();
@ -56,7 +56,7 @@ public slots:
protected: protected:
bool event(QEvent *event) override; bool event(QEvent *event) override;
private slots: private Q_SLOTS:
// file selection // file selection
void pathEntered(); void pathEntered();
void fileSelected(); void fileSelected();

View File

@ -41,7 +41,7 @@ public:
QSize sizeHint() const override; QSize sizeHint() const override;
QSize minimumSizeHint() const override; QSize minimumSizeHint() const override;
public slots: public Q_SLOTS:
void setText(const QString &text); void setText(const QString &text);
void setContext(const QString &context); void setContext(const QString &context);
void clearText(); void clearText();
@ -57,7 +57,7 @@ protected:
void paintEvent(QPaintEvent *event) override; void paintEvent(QPaintEvent *event) override;
void mouseDoubleClickEvent(QMouseEvent *event) override; void mouseDoubleClickEvent(QMouseEvent *event) override;
private slots: private Q_SLOTS:
void updateAnimation(); void updateAnimation();
void showMessageBox() const; void showMessageBox() const;

View File

@ -28,7 +28,7 @@ public:
signals: signals:
public slots: public Q_SLOTS:
private: private:
TagParser::Diagnostics m_diag; TagParser::Diagnostics m_diag;

View File

@ -44,7 +44,7 @@ public:
TagParser::Tag *tag() const; TagParser::Tag *tag() const;
TagParser::KnownField field() const; TagParser::KnownField field() const;
public slots: public Q_SLOTS:
bool setTagField(TagParser::Tag *tag, TagParser::KnownField field, PreviousValueHandling previousValueHandling = PreviousValueHandling::Clear); bool setTagField(TagParser::Tag *tag, TagParser::KnownField field, PreviousValueHandling previousValueHandling = PreviousValueHandling::Clear);
bool setValue(const TagParser::TagValue &value, PreviousValueHandling previousValueHandling = PreviousValueHandling::Clear); bool setValue(const TagParser::TagValue &value, PreviousValueHandling previousValueHandling = PreviousValueHandling::Clear);
@ -73,7 +73,7 @@ protected:
void dragEnterEvent(QDragEnterEvent *event) override; void dragEnterEvent(QDragEnterEvent *event) override;
void dropEvent(QDropEvent *event) override; void dropEvent(QDropEvent *event) override;
private slots: private Q_SLOTS:
void typeSwitched(int index); void typeSwitched(int index);
void updateDescription(int newIndex); void updateDescription(int newIndex);
void updateDescription(int lastIndex, int newIndex); void updateDescription(int lastIndex, int newIndex);

View File

@ -34,7 +34,7 @@ public:
protected: protected:
bool event(QEvent *event) override; bool event(QEvent *event) override;
private slots: private Q_SLOTS:
void showScriptFileSelectionDlg(); void showScriptFileSelectionDlg();
void startGeneratingPreview(); void startGeneratingPreview();
void startApplyChangings(); void startApplyChangings();

View File

@ -48,7 +48,7 @@ public:
QString generateLabel() const; QString generateLabel() const;
bool hasAutoCorrectionBeenApplied() const; bool hasAutoCorrectionBeenApplied() const;
public slots: public Q_SLOTS:
void clear(); void clear();
void restore(); void restore();
void apply(); void apply();

View File

@ -64,7 +64,7 @@ public:
void foreachTagEdit(const std::function<void(TagEdit *)> &function); void foreachTagEdit(const std::function<void(TagEdit *)> &function);
TagEdit *activeTagEdit(); TagEdit *activeTagEdit();
public slots: public Q_SLOTS:
// operations with the currently opened file: load, save, delete, close // operations with the currently opened file: load, save, delete, close
bool startParsing(const QString &path, bool forceRefresh = false); bool startParsing(const QString &path, bool forceRefresh = false);
bool startSaving(); bool startSaving();
@ -98,7 +98,7 @@ signals:
protected: protected:
bool event(QEvent *event) override; bool event(QEvent *event) override;
private slots: private Q_SLOTS:
// editor // editor
void fileChangedOnDisk(const QString &path); void fileChangedOnDisk(const QString &path);
void showFile(char result); void showFile(char result);

View File

@ -53,7 +53,7 @@ public:
void toggleLocked(); void toggleLocked();
bool hasAutoCorrectionBeenApplied() const; bool hasAutoCorrectionBeenApplied() const;
public slots: public Q_SLOTS:
void clear(); void clear();
void apply(); void apply();
void restore(); void restore();
@ -65,7 +65,7 @@ signals:
protected: protected:
bool eventFilter(QObject *obj, QEvent *event) override; bool eventFilter(QObject *obj, QEvent *event) override;
private slots: private Q_SLOTS:
void handleRestoreButtonClicked(); void handleRestoreButtonClicked();
void handleRestoreButtonDestroyed(QObject *obj = nullptr); void handleRestoreButtonDestroyed(QObject *obj = nullptr);
void handleLockButtonDestroyed(QObject *obj = nullptr); void handleLockButtonDestroyed(QObject *obj = nullptr);

View File

@ -72,7 +72,7 @@ public:
const QString &errorMessage() const; const QString &errorMessage() const;
int errorLineNumber() const; int errorLineNumber() const;
public slots: public Q_SLOTS:
bool generatePreview(const QDir &rootDirectory, bool includeSubdirs); bool generatePreview(const QDir &rootDirectory, bool includeSubdirs);
bool applyChangings(); bool applyChangings();
void abort(); void abort();
@ -82,7 +82,7 @@ signals:
void changingsApplied(); void changingsApplied();
void progress(int itemsProcessed, int errorsOccured); void progress(int itemsProcessed, int errorsOccured);
private slots: private Q_SLOTS:
void processPreviewGenerated(); void processPreviewGenerated();
void processChangingsApplied(); void processChangingsApplied();

View File

@ -41,7 +41,7 @@ public:
const QString &newRelativeDirectory() const; const QString &newRelativeDirectory() const;
const QString &note() const; const QString &note() const;
public slots: public Q_SLOTS:
TAGEDITOR_JS_VALUE parseFileInfo(const QString &fileName); TAGEDITOR_JS_VALUE parseFileInfo(const QString &fileName);
TAGEDITOR_JS_VALUE parseFileName(const QString &fileName); TAGEDITOR_JS_VALUE parseFileName(const QString &fileName);
TAGEDITOR_JS_VALUE allFiles(const QString &dirName); TAGEDITOR_JS_VALUE allFiles(const QString &dirName);