Commit 7e392dab authored by Laurent Montel's avatar Laurent Montel 😁

Clean up

parent e0f2d129
......@@ -316,13 +316,11 @@ public:
void addAvailableTool(const QString &visibleName);
bool isProgramSelected(const QString &visibleName) const;
private Q_SLOTS:
void processSelectionChange();
Q_SIGNALS:
void selectionChanged();
private:
void processSelectionChange();
QLabel *mScanProgressText;
QLabel *mSelectionHint;
QListWidget *mToolsList;
......@@ -353,13 +351,12 @@ protected:
Akonadi::Collection selectedSpamCollection() const;
Akonadi::Collection selectedUnsureCollection() const;
private Q_SLOTS:
void processSelectionChange();
Q_SIGNALS:
void selectionChanged();
private:
void processSelectionChange();
QCheckBox *mMarkRules;
QCheckBox *mMoveSpamRules;
QCheckBox *mMoveUnsureRules;
......@@ -381,12 +378,11 @@ public:
QString selectedFolderName() const;
private Q_SLOTS:
void processSelectionChange();
Q_SIGNALS:
void selectionChanged();
private:
void processSelectionChange();
QCheckBox *mPipeRules;
QCheckBox *mMoveRules;
MailCommon::FolderTreeWidget *mFolderTree;
......
......@@ -88,6 +88,9 @@ protected Q_SLOTS:
void step3GetThumbnail();
private:
void step1Result(KJob *job);
void step2Result(KJob *job);
void step3Result(KJob *job);
QDate mDate;
QString mDescription;
QSize mDlThumbSize;
......@@ -103,10 +106,6 @@ private:
KIO::SimpleJob *mThirdStepJob;
QTimer *mTimer;
private Q_SLOTS:
void step1Result(KJob *job);
void step2Result(KJob *job);
void step3Result(KJob *job);
};
#endif
......@@ -35,13 +35,11 @@ public:
QStringList attendees() const;
private Q_SLOTS:
private:
void addClicked();
void removeClicked();
void textChanged(const QString &text);
void selectionChanged();
private:
Ui::AttendeeSelectorWidget ui;
QPushButton *mOkButton;
};
......
......@@ -78,10 +78,10 @@ void CreateEventJob::createEvent()
newEventItem.setPayload<KCalCore::Event::Ptr>(mEventPtr);
Akonadi::ItemCreateJob *createJob = new Akonadi::ItemCreateJob(newEventItem, mCollection);
connect(createJob, &Akonadi::ItemCreateJob::result, this, &CreateEventJob::eventCreated);
connect(createJob, &Akonadi::ItemCreateJob::result, this, &CreateEventJob::slotEventCreated);
}
void CreateEventJob::eventCreated(KJob *job)
void CreateEventJob::slotEventCreated(KJob *job)
{
if (job->error()) {
qCDebug(CREATEEVENTPLUGIN_LOG) << "Error during create new Event " << job->errorString();
......@@ -92,11 +92,11 @@ void CreateEventJob::eventCreated(KJob *job)
Akonadi::ItemCreateJob *createJob = static_cast<Akonadi::ItemCreateJob *>(job);
Akonadi::Relation relation(Akonadi::Relation::GENERIC, mItem, createJob->item());
Akonadi::RelationCreateJob *rJob = new Akonadi::RelationCreateJob(relation);
connect(rJob, &Akonadi::RelationCreateJob::result, this, &CreateEventJob::relationCreated);
connect(rJob, &Akonadi::RelationCreateJob::result, this, &CreateEventJob::slotRelationCreated);
}
}
void CreateEventJob::relationCreated(KJob *job)
void CreateEventJob::slotRelationCreated(KJob *job)
{
if (job->error()) {
qCDebug(CREATEEVENTPLUGIN_LOG) << "Error during create new Event " << job->errorString();
......
......@@ -36,12 +36,10 @@ public:
void start() Q_DECL_OVERRIDE;
private Q_SLOTS:
void slotFetchDone(KJob *job);
void eventCreated(KJob *job);
void relationCreated(KJob *job);
private:
void slotFetchDone(KJob *job);
void slotEventCreated(KJob *job);
void slotRelationCreated(KJob *job);
void createEvent();
Akonadi::Item mItem;
Akonadi::Collection mCollection;
......
......@@ -52,11 +52,6 @@ public:
public Q_SLOTS:
void slotCloseWidget();
private Q_SLOTS:
void slotReturnPressed();
void slotCollectionChanged(int);
void slotUpdateButtons(const QString &subject);
Q_SIGNALS:
void createNote(const KMime::Message::Ptr &note, const Akonadi::Collection &collection);
void collectionChanged(const Akonadi::Collection &col);
......@@ -65,6 +60,9 @@ Q_SIGNALS:
protected:
bool eventFilter(QObject *object, QEvent *e) Q_DECL_OVERRIDE;
private:
void slotReturnPressed();
void slotCollectionChanged(int);
void slotUpdateButtons(const QString &subject);
void readConfig();
Akonadi::Collection mCollection;
KMime::Message::Ptr mMessage;
......
......@@ -54,12 +54,6 @@ public:
public Q_SLOTS:
void slotCloseWidget();
private Q_SLOTS:
void slotReturnPressed();
void slotCollectionChanged(int);
void slotOpenEditor();
void slotTextEdited(const QString &subject);
Q_SIGNALS:
void createTodo(const KCalCore::Todo::Ptr &todo, const Akonadi::Collection &collection);
void collectionChanged(const Akonadi::Collection &col);
......@@ -68,6 +62,10 @@ Q_SIGNALS:
protected:
bool eventFilter(QObject *object, QEvent *e) Q_DECL_OVERRIDE;
private:
void slotReturnPressed();
void slotCollectionChanged(int);
void slotOpenEditor();
void slotTextEdited(const QString &subject);
void updateButtons(const QString &subject);
void readConfig();
Akonadi::Collection mCollection;
......
......@@ -42,10 +42,8 @@ public:
void setMessageItem(const Akonadi::Item &item) Q_DECL_OVERRIDE;
ViewerPluginInterface::SpecificFeatureTypes featureTypes() const Q_DECL_OVERRIDE;
private Q_SLOTS:
void slotCreateTodo(const KCalCore::Todo::Ptr &todoPtr, const Akonadi::Collection &collection);
private:
void slotCreateTodo(const KCalCore::Todo::Ptr &todoPtr, const Akonadi::Collection &collection);
void createAction(KActionCollection *ac);
TodoEdit *mTodoEdit;
QList<QAction *> mAction;
......
......@@ -47,14 +47,12 @@ public:
void setAdBlockListPath(const QString &localPath, const QString &url);
void setListName(const QString &listName);
private Q_SLOTS:
void slotFinished(KJob *job);
void slotDeleteBrokenList();
Q_SIGNALS:
void deleteList(const QString &name);
private:
void slotFinished(KJob *job);
void slotDeleteBrokenList();
void readConfig();
void writeConfig();
void downLoadList(const QString &url);
......
......@@ -37,9 +37,8 @@ public:
public Q_SLOTS:
void slotSearchAdblock();
private Q_SLOTS:
void slotSearchItemsDone(const QVector<AdBlock::AdBlockResult> &result);
private:
void slotSearchItemsDone(const QVector<AdBlock::AdBlockResult> &result);
QWebEngineView *mWebEngineView;
};
......
Markdown is supported
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