forked from qt-creator/qt-creator
Polish: Remove some more useless "slots" from headers
Change-Id: I9ba3b93e53e63153c1573d51c1aac53b7e088362 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -64,7 +64,6 @@ public:
|
|||||||
const QString &localName,
|
const QString &localName,
|
||||||
const QStringList &extraArgs) override;
|
const QStringList &extraArgs) override;
|
||||||
|
|
||||||
public slots:
|
|
||||||
// To be connected to the VCSTask's success signal to emit the repository/
|
// To be connected to the VCSTask's success signal to emit the repository/
|
||||||
// files changed signals according to the variant's type:
|
// files changed signals according to the variant's type:
|
||||||
// String -> repository, StringList -> files
|
// String -> repository, StringList -> files
|
||||||
|
|||||||
@@ -43,10 +43,9 @@ public:
|
|||||||
QStringList extraOptions() const;
|
QStringList extraOptions() const;
|
||||||
QString revision() const;
|
QString revision() const;
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void dryRun();
|
void dryRun();
|
||||||
|
|
||||||
private:
|
|
||||||
Ui::UnCommitDialog *m_ui;
|
Ui::UnCommitDialog *m_ui;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -49,13 +49,11 @@ public:
|
|||||||
bool refresh();
|
bool refresh();
|
||||||
bool changed() { return m_changed; }
|
bool changed() { return m_changed; }
|
||||||
|
|
||||||
public slots:
|
|
||||||
void newActivity();
|
void newActivity();
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void userChanged();
|
void userChanged();
|
||||||
|
|
||||||
private:
|
|
||||||
ClearCasePlugin *m_plugin;
|
ClearCasePlugin *m_plugin;
|
||||||
bool m_changed = false;
|
bool m_changed = false;
|
||||||
QComboBox *m_cmbActivity;
|
QComboBox *m_cmbActivity;
|
||||||
|
|||||||
@@ -40,8 +40,10 @@ class CheckOutDialog : public QDialog
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit CheckOutDialog(const QString &fileName, bool isUcm, bool showComment, QWidget *parent = 0);
|
explicit CheckOutDialog(const QString &fileName, bool isUcm, bool showComment,
|
||||||
~CheckOutDialog();
|
QWidget *parent = nullptr);
|
||||||
|
~CheckOutDialog() override;
|
||||||
|
|
||||||
QString activity() const;
|
QString activity() const;
|
||||||
QString comment() const;
|
QString comment() const;
|
||||||
bool isReserved() const;
|
bool isReserved() const;
|
||||||
@@ -51,10 +53,10 @@ public:
|
|||||||
void hideHijack();
|
void hideHijack();
|
||||||
|
|
||||||
void hideComment();
|
void hideComment();
|
||||||
private slots:
|
|
||||||
void toggleUnreserved(bool checked);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void toggleUnreserved(bool checked);
|
||||||
|
|
||||||
Ui::CheckOutDialog *ui;
|
Ui::CheckOutDialog *ui;
|
||||||
ActivitySelector *m_actSelector = nullptr;
|
ActivitySelector *m_actSelector = nullptr;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -164,19 +164,19 @@ public:
|
|||||||
inline bool isFakeCleartool() const { return m_fakeClearTool; }
|
inline bool isFakeCleartool() const { return m_fakeClearTool; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public slots:
|
|
||||||
void vcsAnnotate(const QString &workingDir, const QString &file,
|
void vcsAnnotate(const QString &workingDir, const QString &file,
|
||||||
const QString &revision = QString(), int lineNumber = -1) const;
|
const QString &revision = QString(), int lineNumber = -1) const;
|
||||||
bool newActivity();
|
bool newActivity();
|
||||||
void updateStreamAndView();
|
void updateStreamAndView();
|
||||||
|
|
||||||
private slots:
|
protected:
|
||||||
void annotateVersion(const QString &workingDirectory, const QString &file, const QString &revision, int lineNumber);
|
void updateActions(VcsBase::VcsBasePlugin::ActionState) override;
|
||||||
void describe(const QString &source, const QString &changeNr);
|
bool submitEditorAboutToClose() override;
|
||||||
void syncSlot();
|
QString ccGet(const QString &workingDir, const QString &file, const QString &prefix = QString());
|
||||||
void updateStatusActions();
|
QList<QStringPair> ccGetActivities() const;
|
||||||
|
|
||||||
#ifdef WITH_TESTS
|
#ifdef WITH_TESTS
|
||||||
|
private slots:
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
void cleanupTestCase();
|
void cleanupTestCase();
|
||||||
void testDiffFileResolving_data();
|
void testDiffFileResolving_data();
|
||||||
@@ -194,13 +194,12 @@ private slots:
|
|||||||
void testVcsStatusDynamicNotManaged();
|
void testVcsStatusDynamicNotManaged();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
protected:
|
|
||||||
void updateActions(VcsBase::VcsBasePlugin::ActionState) override;
|
|
||||||
bool submitEditorAboutToClose() override;
|
|
||||||
QString ccGet(const QString &workingDir, const QString &file, const QString &prefix = QString());
|
|
||||||
QList<QStringPair> ccGetActivities() const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void annotateVersion(const QString &workingDirectory, const QString &file, const QString &revision, int lineNumber);
|
||||||
|
void describe(const QString &source, const QString &changeNr);
|
||||||
|
void syncSlot();
|
||||||
|
void updateStatusActions();
|
||||||
|
|
||||||
void checkOutCurrentFile();
|
void checkOutCurrentFile();
|
||||||
void addCurrentFile();
|
void addCurrentFile();
|
||||||
void undoCheckOutCurrent();
|
void undoCheckOutCurrent();
|
||||||
|
|||||||
@@ -57,8 +57,8 @@ private:
|
|||||||
ClearCasePlugin *const m_plugin;
|
ClearCasePlugin *const m_plugin;
|
||||||
QSharedPointer<StatusMap> m_statusMap;
|
QSharedPointer<StatusMap> m_statusMap;
|
||||||
|
|
||||||
public slots:
|
|
||||||
#ifdef WITH_TESTS
|
#ifdef WITH_TESTS
|
||||||
|
public slots:
|
||||||
void verifyParseStatus(const QString &fileName, const QString &cleartoolLsLine,
|
void verifyParseStatus(const QString &fileName, const QString &cleartoolLsLine,
|
||||||
const FileStatus::Status);
|
const FileStatus::Status);
|
||||||
void verifyFileNotManaged();
|
void verifyFileNotManaged();
|
||||||
@@ -66,7 +66,6 @@ public slots:
|
|||||||
void verifyFileCheckedOutDynamicView();
|
void verifyFileCheckedOutDynamicView();
|
||||||
void verifyFileCheckedInDynamicView();
|
void verifyFileCheckedInDynamicView();
|
||||||
void verifyFileNotManagedDynamicView();
|
void verifyFileNotManagedDynamicView();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,8 @@ public:
|
|||||||
|
|
||||||
void extensionsInitialized() override;
|
void extensionsInitialized() override;
|
||||||
|
|
||||||
private slots:
|
|
||||||
#ifdef WITH_TESTS
|
#ifdef WITH_TESTS
|
||||||
|
private slots:
|
||||||
void testCMakeParser_data();
|
void testCMakeParser_data();
|
||||||
void testCMakeParser();
|
void testCMakeParser();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ class CodePasterServiceImpl : public QObject, public CodePaster::Service
|
|||||||
public:
|
public:
|
||||||
explicit CodePasterServiceImpl(QObject *parent = 0);
|
explicit CodePasterServiceImpl(QObject *parent = 0);
|
||||||
|
|
||||||
public slots:
|
|
||||||
void postText(const QString &text, const QString &mimeType) override;
|
void postText(const QString &text, const QString &mimeType) override;
|
||||||
void postCurrentEditor() override;
|
void postCurrentEditor() override;
|
||||||
void postClipboard() override;
|
void postClipboard() override;
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ using namespace CodePaster;
|
|||||||
class PasteReceiver : public QObject
|
class PasteReceiver : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PasteReceiver(const QString &protocol, const QString &filePath) : m_filePath(filePath)
|
PasteReceiver(const QString &protocol, const QString &filePath) : m_filePath(filePath)
|
||||||
{
|
{
|
||||||
@@ -55,7 +56,6 @@ public:
|
|||||||
qFatal("Internal error: Invalid protocol.");
|
qFatal("Internal error: Invalid protocol.");
|
||||||
}
|
}
|
||||||
|
|
||||||
public slots:
|
|
||||||
void paste()
|
void paste()
|
||||||
{
|
{
|
||||||
QFile file(m_filePath);
|
QFile file(m_filePath);
|
||||||
@@ -76,14 +76,13 @@ public slots:
|
|||||||
m_protocol->paste(content);
|
m_protocol->paste(content);
|
||||||
}
|
}
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void handlePasteDone(const QString &link)
|
void handlePasteDone(const QString &link)
|
||||||
{
|
{
|
||||||
std::cout << qPrintable(link) << std::endl;
|
std::cout << qPrintable(link) << std::endl;
|
||||||
qApp->quit();
|
qApp->quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
const QString m_filePath;
|
const QString m_filePath;
|
||||||
QScopedPointer<Protocol> m_protocol;
|
QScopedPointer<Protocol> m_protocol;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -38,10 +38,9 @@ public:
|
|||||||
void fetch(const QString &url) override;
|
void fetch(const QString &url) override;
|
||||||
void paste(const QString &, ContentType, int, const QString &, const QString &, const QString &) override;
|
void paste(const QString &, ContentType, int, const QString &, const QString &, const QString &) override;
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void fetchFinished();
|
void fetchFinished();
|
||||||
|
|
||||||
private:
|
|
||||||
QNetworkReply *m_fetchReply = nullptr;
|
QNetworkReply *m_fetchReply = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user