Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Clean from non-Q-prefixed signal/slot keywords

parent e707c79c
......@@ -73,6 +73,7 @@ find_package(SharedMimeInfo REQUIRED)
add_definitions(
-DQT_DEPRECATED_WARNINGS
-DQT_DISABLE_DEPRECATED_BEFORE=0x050400
-DQT_NO_SIGNALS_SLOTS_KEYWORDS
-DQT_NO_URL_CAST_FROM_STRING
-DQT_STRICT_ITERATORS
-DQT_USE_FAST_CONCATENATION
......
......@@ -52,7 +52,7 @@ public:
QIcon icon() const override;
QString name() const override;
public slots:
public Q_SLOTS:
void defaults() override;
void reset() override;
......
......@@ -51,7 +51,7 @@ public:
Q_SIGNALS:
void problemsDetected(const QVector<KDevelop::IProblem::Ptr>& problems);
protected slots:
protected Q_SLOTS:
void postProcessStdout(const QStringList& lines) override;
void postProcessStderr(const QStringList& lines) override;
......
......@@ -24,7 +24,7 @@
class TestCppcheckJob : public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
......
......@@ -24,7 +24,7 @@
class TestCppcheckParser : public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
......
......@@ -45,7 +45,7 @@ public:
QString statusName() const override;
QString resultsFile() const;
signals:
Q_SIGNALS:
void clearMessage(KDevelop::IStatus*) override;
void hideProgress(KDevelop::IStatus*) override;
void showErrorMessage(const QString& message, int timeout = 0) override;
......
......@@ -38,7 +38,7 @@ class ProcessSelectionDialog : public QDialog
long int pidSelected();
QSize sizeHint() const override;
private slots:
private Q_SLOTS:
void selectionChanged( const QItemSelection& selected );
private:
......
......@@ -58,7 +58,7 @@ public:
protected:
void updateLocals();
private slots:
private Q_SLOTS:
void programStopped(const MI::AsyncRecord &r);
void stateChanged(KDevelop::IDebugSession::DebuggerState);
......
......@@ -145,11 +145,11 @@ public:
///Sets current mode for the @p group, if mode is supported. Does nothing otherwise.
void setMode(Mode m, const GroupsName& group);
signals:
Q_SIGNALS:
///Emits @p group with updated registers.
void registersChanged(const RegistersGroup& g);
public slots:
public Q_SLOTS:
///Updates registers in @p group. If @p group is empty - updates all registers.
virtual void updateRegisters(const GroupsName& group = GroupsName());
......
......@@ -37,7 +37,7 @@ public:
QVector<GroupsName> namesOfRegisterGroups() const override;
public slots:
public Q_SLOTS:
void updateRegisters(const GroupsName& group = GroupsName()) override;
protected:
......
......@@ -34,7 +34,7 @@ class RegisterControllerGeneral_x86 : public IRegisterController
public:
QVector<GroupsName> namesOfRegisterGroups() const override;
public slots:
public Q_SLOTS:
void updateRegisters(const GroupsName& group = GroupsName()) override;
protected:
......
......@@ -44,7 +44,7 @@ public:
void setModel(ModelsManager* m);
public slots:
public Q_SLOTS:
///Updates registers for active views.
void updateRegisters();
......@@ -65,7 +65,7 @@ private:
///Sets name for the table with index @p idx to the @p name.
void setNameForTable(int idx, const QString& name);
private slots:
private Q_SLOTS:
///Changes register formates/modes to @p formatOrMode.
void menuTriggered(const QString& formatOrMode);
......
......@@ -111,7 +111,7 @@ namespace GDB
QByteArray m_memData;
int m_debuggerState;
private slots:
private Q_SLOTS:
void currentSessionChanged(KDevelop::IDebugSession* session);
};
......
......@@ -39,7 +39,7 @@ namespace KDevMI { namespace LLDB {
class LldbTest : public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
......
......@@ -46,7 +46,7 @@ class ManPageDocumentation : public KDevelop::IDocumentation
KDevelop::IDocumentationProvider* provider() const override;
static ManPagePlugin* s_provider;
private slots:
private Q_SLOTS:
void finished(KJob*);
private:
......
......@@ -33,7 +33,7 @@ class ManPageDocumentationWidget : public QStackedWidget
Q_OBJECT
public:
explicit ManPageDocumentationWidget(QWidget *parent = nullptr);
public slots:
public Q_SLOTS:
void manIndexLoaded();
void sectionListUpdated();
void sectionParsed();
......
......@@ -59,17 +59,17 @@ public:
bool hasError() const;
const QString& errorString() const;
signals:
Q_SIGNALS:
void sectionParsed();
void sectionListUpdated();
void manPagesLoaded();
void error(const QString& errorString);
public slots:
public Q_SLOTS:
void showItem(const QModelIndex& idx);
void showItemFromUrl(const QUrl& url);
private slots:
private Q_SLOTS:
void initModel();
void indexEntries(KIO::Job* job, const KIO::UDSEntryList& entries);
......
......@@ -49,7 +49,7 @@ public:
ManPageModel* model() const;
QProgressBar* progressBar() const;
signals:
Q_SIGNALS:
void addHistory(const KDevelop::IDocumentation::Ptr& doc ) const override;
private:
......
......@@ -51,7 +51,7 @@ public:
QString fullName() const override;
QIcon icon() const override;
private slots:
private Q_SLOTS:
void add();
void remove(QTreeWidgetItem* item);
void modify(QTreeWidgetItem* item);
......
......@@ -54,10 +54,10 @@ class QtHelpDocumentation : public KDevelop::IDocumentation
static QtHelpProviderAbstract* s_provider;
public slots:
public Q_SLOTS:
void viewContextMenuRequested(const QPoint& pos);
private slots:
private Q_SLOTS:
void jumpedTo(const QUrl& newUrl);
private:
......@@ -83,7 +83,7 @@ class HomeDocumentation : public KDevelop::IDocumentation
QString name() const override;
KDevelop::IDocumentationProvider* provider() const override;
public slots:
public Q_SLOTS:
void clicked(const QModelIndex& idx);
private:
QtHelpProviderAbstract *m_provider;
......@@ -95,7 +95,7 @@ class QtHelpAlternativeLink : public QAction
public:
QtHelpAlternativeLink(const QString& name, const QtHelpDocumentation* doc, QObject* parent);
public slots:
public Q_SLOTS:
void showUrl();
private:
......
......@@ -46,9 +46,9 @@ class QtHelpPlugin : public KDevelop::IPlugin, public KDevelop::IDocumentationPr
int configPages() const override;
KDevelop::ConfigPage* configPage(int number, QWidget* parent) override;
public slots:
public Q_SLOTS:
void readConfig();
signals:
Q_SIGNALS:
void changedProvidersList() const override;
private:
void loadQtDocumentation(bool loadQtDoc);
......
......@@ -49,9 +49,9 @@ public:
QHelpEngine* engine() { return &m_engine; }
HelpNetworkAccessManager* networkAccess() const;
public slots:
public Q_SLOTS:
void jumpedTo(const QUrl& newUrl) const;
signals:
Q_SIGNALS:
void addHistory(const KDevelop::IDocumentation::Ptr& doc) const override;
protected:
QHelpEngine m_engine;
......
......@@ -40,7 +40,7 @@ class QtHelpQtDoc : public QtHelpProviderAbstract
private:
QString m_path;
private slots:
private Q_SLOTS:
void lookupDone(int code);
};
......
......@@ -32,7 +32,7 @@ public:
private:
KDevelop::TestCore* m_testCore;
QtHelpPlugin *m_plugin;
private slots:
private Q_SLOTS:
void initTestCase();
void init();
......
......@@ -45,7 +45,7 @@ protected:
void setItemChecked(int idx, bool checked);
void updateWidgets();
private slots:
private Q_SLOTS:
void currentTabChanged();
void indentChanged();
void indentObjectsChanged(QListWidgetItem *item);
......
......@@ -25,7 +25,7 @@ class TestAstyle : public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void testFuzzyMatching();
......
......@@ -97,7 +97,7 @@ private:
QTimer* m_updateTimer;
QPushButton* m_moreVariablesButton;
KDevelop::SourceFormatterStyle m_style;
private slots:
private Q_SLOTS:
void textEdited(const QString&)
{
m_updateTimer->start(1000);
......
......@@ -92,7 +92,7 @@ public:
private:
QList<KDevelop::LaunchConfigurationPageFactory*> factoryList;
public slots:
public Q_SLOTS:
void suggestionTriggered();
};
#endif
......
......@@ -47,7 +47,7 @@ public:
static QStringList arguments(KDevelop::ILaunchConfiguration* cfg);
static QString workingDirectory(KDevelop::ILaunchConfiguration* cfg);
public slots:
public Q_SLOTS:
void slotCompleted(int);
void slotFailed(QProcess::ProcessError);
......
......@@ -89,7 +89,7 @@ public:
//END IBuddyDocumentFinder
private slots:
private Q_SLOTS:
void documentActivated(KDevelop::IDocument* doc);
void disableKeywordCompletion(KTextEditor::View* view);
void enableKeywordCompletion(KTextEditor::View* view);
......
......@@ -718,7 +718,7 @@ public:
ArrowToDot
};
public slots:
public Q_SLOTS:
void replaceCurrentAccess(MemberAccessReplacer::Type type)
{
if (auto document = ICore::self()->documentController()->activeDocument()) {
......
......@@ -76,7 +76,7 @@ public:
{}
~ClangCodeCompletionWorker() override = default;
public slots:
public Q_SLOTS:
void completionRequested(const QUrl &url, const KTextEditor::Cursor& position, const QString& text, const QString& followingText)
{
aborting() = false;
......
......@@ -43,7 +43,7 @@ public:
bool shouldAbortCompletion(KTextEditor::View* view, const KTextEditor::Range& range, const QString& currentCompletion) override;
signals:
Q_SIGNALS:
void requestCompletion(const QUrl &url, const KTextEditor::Cursor& cursor, const QString& text, const QString& followingText);
protected:
......
......@@ -67,7 +67,7 @@ private:
QPointer<KTextEditor::Document> m_document;
QPointer<KTextEditor::View> m_view;
private slots:
private Q_SLOTS:
void updateReady(const KDevelop::IndexedString& document, const KDevelop::ReferencedTopDUContext& context) override;
void reset();
};
......
......@@ -48,7 +48,7 @@ public:
QString moveIntoSource(const KDevelop::IndexedDeclaration& iDecl);
public slots:
public Q_SLOTS:
void executeMoveIntoSourceAction();
protected:
......
......@@ -34,7 +34,7 @@ public:
BenchCodeCompletion();
~BenchCodeCompletion() override;
private slots:
private Q_SLOTS:
void benchCodeCompletion_data();
void benchCodeCompletion();
......
......@@ -48,7 +48,7 @@ class CodeCompletionTestBase : public QObject
public:
std::unique_ptr<KTextEditor::View, DeleteDocument> createView(const QUrl& url, QObject* parent) const;
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
void init();
......
......@@ -25,7 +25,7 @@
class TestAssistants : public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
......
......@@ -40,7 +40,7 @@ class TestBuddies: public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
......
......@@ -27,7 +27,7 @@ class TestClangUtils : public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
......
......@@ -28,7 +28,7 @@ class TestCodeCompletion : public CodeCompletionTestBase
{
Q_OBJECT
private slots:
private Q_SLOTS:
void testIncludePathCompletion_data();
void testIncludePathCompletion();
void testIncludePathCompletionLocal();
......
......@@ -35,7 +35,7 @@ class TestDUChain : public QObject
public:
~TestDUChain() override;
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
......
......@@ -27,7 +27,7 @@ class TestDUChainUtils : public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
......
......@@ -25,7 +25,7 @@
class TestFiles : public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
void testFiles_data();
......
......@@ -27,7 +27,7 @@ class TestProblems : public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
......
......@@ -33,7 +33,7 @@ class TestRefactoring : public QObject
public:
~TestRefactoring() override;
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
......
......@@ -29,7 +29,7 @@
class TestCompilerProvider : public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
void testRegisterCompiler();
......
......@@ -48,7 +48,7 @@ public:
QModelIndex addCompiler(const CompilerPointer& compiler);
void updateCompiler(const QItemSelection& compiler);
signals:
Q_SIGNALS:
/// emitted whenever new compiler added or existing one modified/deleted.
void compilerChanged();
......
......@@ -62,13 +62,13 @@ public:
void reset() override;
void defaults() override;
private slots:
private Q_SLOTS:
void deleteCompiler();
void addCompiler(const QString& factoryName);
void compilerSelected(const QModelIndex& index);
void compilerEdited();
signals:
Q_SIGNALS:
void compilerChanged();
private:
......
......@@ -42,9 +42,9 @@ public:
explicit DefinesWidget( QWidget* parent = nullptr );
void setDefines( const KDevelop::Defines& defines );
void clear();
signals:
Q_SIGNALS:
void definesChanged( const KDevelop::Defines& defines );
private slots:
private Q_SLOTS:
// Forward defines model changes
void definesChanged();
......
......@@ -42,9 +42,9 @@ public:
void setProject(KDevelop::IProject* w_project);
void setIncludes( const QStringList& );
void clear();
signals:
Q_SIGNALS:
void includesChanged( const QStringList& );
private slots:
private Q_SLOTS:
// Handling of include-path url-requester, add and remove buttons
void includePathSelected( const QModelIndex& selected );
void includePathEdited();
......
......@@ -49,10 +49,10 @@ public:
void setParserArguments(const ParserArguments& arguments);
ParserArguments parserArguments() const;
signals:
Q_SIGNALS:
void changed();
private slots:
private Q_SLOTS:
void textEdited();
void languageStandardChangedC(const QString& standard);
void languageStandardChangedCpp(const QString& standard);
......
......@@ -46,7 +46,7 @@ public:
QVector<ConfigEntry> paths() const;
void clear();
signals:
Q_SIGNALS:
void changed();
private:
......@@ -54,7 +54,7 @@ private:
CompilerPointer currentCompiler() const;
private slots:
private Q_SLOTS:
// Handling of project-path combobox, add and remove buttons
void projectPathSelected( int index );
void addProjectPath();
......
......@@ -29,7 +29,7 @@ class TestCore;
class TestDefinesAndIncludes : public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
void cleanup();
......
......@@ -25,7 +25,7 @@ namespace QmlJS {
class QmlCompletionTest : public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
......
......@@ -27,7 +27,7 @@
class TestContexts : public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
......
......@@ -27,7 +27,7 @@
class TestDeclarations : public QObject
{
Q_OBJECT
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
......
......@@ -209,17 +209,17 @@ public:
PathsAndLanguages paths,
ModelManagerInterface *modelManager,
bool emitDocChangedOnDisk, bool libOnly = true);
public slots:
public Q_SLOTS:
virtual void resetCodeModel();