Commit 50854a0c authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use only Q-prefix signal/slot keywords

parent a7d05788
......@@ -90,7 +90,7 @@ public:
Q_INVOKABLE void pick();
Q_INVOKABLE void copyToClipboard(const QString &text);
signals:
Q_SIGNALS:
void currentColorChanged();
private:
......
......@@ -33,7 +33,7 @@ class CheckNewStrips : public QObject
public:
CheckNewStrips( const QStringList &identifiers, Plasma::DataEngine *engine, int minutes, QObject *parent = 0 );
signals:
Q_SIGNALS:
/**
* @param index of the identifier in identifiers
* @param identifier of the comic
......@@ -42,10 +42,10 @@ class CheckNewStrips : public QObject
*/
void lastStrip( int index, const QString &identifier, const QString &suffix );
public slots:
public Q_SLOTS:
void dataUpdated( const QString &name, const Plasma::DataEngine::Data &data );
private slots:
private Q_SLOTS:
void start();
private:
......
......@@ -156,7 +156,7 @@ Q_SIGNALS:
void slotArchive( int archiveType, const QUrl &dest, const QString &fromIdentifier, const QString &toIdentifier );
void slotArchiveFinished( KJob *job );
public slots:
public Q_SLOTS:
void configChanged() Q_DECL_OVERRIDE;
void saveConfig();
Q_INVOKABLE void updateComic(const QString &identifierSuffix = QString());
......
......@@ -36,10 +36,10 @@ class ComicArchiveDialog : public QDialog
public:
ComicArchiveDialog( const QString &pluginName, const QString &comicName, IdentifierType identifierType, const QString &currentIdentifierSuffix, const QString &firstIdentifierSuffix, const QString &savingDir = QString(), QWidget *parent = 0 );
signals:
Q_SIGNALS:
void archive( int archiveType, const QUrl &dest, const QString &fromIdentifier, const QString &toIdentifier );
private slots:
private Q_SLOTS:
void archiveTypeChanged( int newType );
void fromDateChanged( const QDate &newDate );
void toDateChanged( const QDate &newDate );
......
......@@ -73,7 +73,7 @@ class ComicArchiveJob : public KJob
void start() Q_DECL_OVERRIDE;
public slots:
public Q_SLOTS:
void dataUpdated( const QString &source, const Plasma::DataEngine::Data& data );
protected:
......
......@@ -56,7 +56,7 @@ class ComicUpdater : public QObject
void setInterval( int interval );
int interval() const;
private slots:
private Q_SLOTS:
/**
* Will check if an update is needed, if so will search
* for updates and do them automatically
......
......@@ -48,7 +48,7 @@ class StripSelector : public QObject
*/
virtual void select(const ComicData &currentStrip) = 0;
signals:
Q_SIGNALS:
/**
* @param strip the selected strip, can be empty
*
......
......@@ -52,7 +52,7 @@ class DateStripSelector : public StripSelector
void select(const ComicData &currentStrip) Q_DECL_OVERRIDE;
private slots:
private Q_SLOTS:
void slotChosenDay(const QDate &date);
private:
......
......@@ -41,7 +41,7 @@ public:
emit wordClicked(word);
}
signals:
Q_SIGNALS:
void wordClicked(const QString &word);
};
......
......@@ -35,7 +35,7 @@ public:
Q_INVOKABLE void minimizeAll();
signals:
Q_SIGNALS:
void showingDesktopChanged(bool showingDesktop);
};
......
......@@ -55,7 +55,7 @@ class ImageWrapper : public QObject
*/
void setRawData(const QByteArray &rawData);
public slots:
public Q_SLOTS:
/**
* Returns the numbers of images contained in the image
* 0 if there is just one image, > 0 if the image format supports animation (the number of frames),
......@@ -93,7 +93,7 @@ class DateWrapper : public QObject
void setDate(const QDate &date);
static QDate fromVariant(const QVariant &variant);
public slots:
public Q_SLOTS:
QObject* addDays(int ndays);
QObject* addMonths(int nmonths);
QObject* addYears(int nyears);
......@@ -133,7 +133,7 @@ class StaticDateWrapper : public QObject
StaticDateWrapper(QObject *parent = 0);
public slots:
public Q_SLOTS:
QObject* currentDate();
QObject* fromJulianDay(int jd);
QObject* fromString(const QString & string, int format = Qt::TextDate);
......@@ -240,7 +240,7 @@ class ComicProviderWrapper : public QObject
QVariant nextIdentifierVariant() const;
QVariant previousIdentifierVariant() const;
public slots:
public Q_SLOTS:
void finished() const;
void error() const;
......
......@@ -34,7 +34,7 @@ private:
QReadWriteLock m_wordLock;
Plasma::DataEngine *m_dictionaryEngine;
private slots:
private Q_SLOTS:
void dataUpdated(const QString &name, const Plasma::DataEngine::Data &data);
void sourceAdded(const QString &source);
......
......@@ -21,7 +21,7 @@ private:
QString m_triggerWord;
DictionaryMatchEngine *m_engine;
protected slots:
protected Q_SLOTS:
void init() Q_DECL_OVERRIDE;
};
......
......@@ -18,7 +18,7 @@ class DictionaryRunnerConfig : public KCModule
public:
DictionaryRunnerConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
public slots:
public Q_SLOTS:
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
......
......@@ -40,7 +40,7 @@ public:
void reloadConfiguration() Q_DECL_OVERRIDE;
protected slots:
protected Q_SLOTS:
void init() Q_DECL_OVERRIDE;
void loaddata();
void destroydata();
......
......@@ -37,7 +37,7 @@ class SpellCheckConfig : public KCModule
explicit SpellCheckConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
~SpellCheckConfig();
public slots:
public Q_SLOTS:
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment