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_VERSION_MAJOR 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)
# add project files

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -44,7 +44,7 @@ public:
TagParser::Tag *tag() const;
TagParser::KnownField field() const;
public slots:
public Q_SLOTS:
bool setTagField(TagParser::Tag *tag, TagParser::KnownField field, 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 dropEvent(QDropEvent *event) override;
private slots:
private Q_SLOTS:
void typeSwitched(int index);
void updateDescription(int newIndex);
void updateDescription(int lastIndex, int newIndex);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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