Commit 3073d7d3 authored by Laurent Montel's avatar Laurent Montel 😁

Clean up code

parent 66e0e579
......@@ -51,12 +51,6 @@ public:
void setLocaleVariable(const SieveGlobalVariableActionWidget::VariableElement &var);
private Q_SLOTS:
void slotAddWidget();
void slotRemoveWidget();
void slotActionChanged(int index);
void slotHelp();
void slotAddComment();
Q_SIGNALS:
void addWidget(QWidget *w);
......@@ -65,6 +59,11 @@ Q_SIGNALS:
void valueChanged();
private:
void slotAddWidget();
void slotRemoveWidget();
void slotActionChanged(int index);
void slotHelp();
void slotAddComment();
void setFilterAction(QWidget *widget);
void initWidget();
QList<KSieveUi::SieveAction *> mActionList;
......
......@@ -37,11 +37,8 @@ public:
Q_SIGNALS:
void valueChanged();
private Q_SLOTS:
void slotBodyTypeChanged(int);
private:
void slotBodyTypeChanged(int);
void initialize();
KComboBox *mBodyCombobox = nullptr;
QLineEdit *mBodyLineEdit = nullptr;
......
......@@ -59,10 +59,8 @@ public:
Q_SIGNALS:
void valueChanged();
private Q_SLOTS:
void slotDateTypeActivated(int);
private:
void slotDateTypeActivated(int);
SelectDateWidget::DateType dateTypeFromString(const QString &str);
void initialize();
QString dateType(DateType type) const;
......
......@@ -55,11 +55,10 @@ public:
QString headers() const;
void setListHeaders(const QMap<QString, QString> &lst, const QStringList &selectedHeaders);
private Q_SLOTS:
void slotNewHeaderTextChanged(const QString &text);
void slotAddNewHeader();
private:
void slotNewHeaderTextChanged(const QString &text);
void slotAddNewHeader();
void readConfig();
void writeConfig();
SelectHeadersWidget *mListWidget = nullptr;
......
......@@ -47,19 +47,17 @@ public:
void setCondition(const QString &conditionName, QXmlStreamReader &element, bool notCondition, QString &error);
void clear();
private Q_SLOTS:
void slotAddWidget();
void slotRemoveWidget();
void slotConditionChanged(int index);
void slotHelp();
void slotAddComment();
Q_SIGNALS:
void addWidget(QWidget *w);
void removeWidget(QWidget *w);
void valueChanged();
private:
void slotAddWidget();
void slotRemoveWidget();
void slotConditionChanged(int index);
void slotHelp();
void slotAddComment();
void initWidget();
void setFilterCondition(QWidget *widget);
QList<KSieveUi::SieveCondition *> mConditionList;
......
......@@ -37,10 +37,8 @@ public:
void generatedScript(QString &script, QStringList &requires, bool inForEveryPartLoop) override;
void loadScript(QXmlStreamReader &element, QString &error);
private Q_SLOTS:
void slotHelp();
private:
void slotHelp();
QCheckBox *mForLoop = nullptr;
QLineEdit *mName = nullptr;
SieveHelpButton *mHelpButton = nullptr;
......
......@@ -60,11 +60,9 @@ public:
Q_SIGNALS:
void addNewBlock(QWidget *widget, KSieveUi::SieveWidgetPageAbstract::PageType type);
private Q_SLOTS:
private:
void slotRadioClicked(QAbstractButton *);
void slotAddBlock();
private:
void updateWidget();
void updateCondition();
MatchCondition mMatchCondition;
......
......@@ -68,7 +68,7 @@ Q_SIGNALS:
void enableButtonOk(bool);
void valueChanged();
private Q_SLOTS:
private:
void slotNew();
void slotDelete();
void slotRename();
......@@ -80,7 +80,6 @@ private Q_SLOTS:
void slotDown();
void slotUp();
private:
enum ParseSieveScriptTypeBlock {
TypeUnknown = 0,
TypeBlockIf,
......
......@@ -34,10 +34,8 @@ public:
void setError(QString script, QString);
private Q_SLOTS:
void slotSaveAs();
private:
void slotSaveAs();
void readConfig();
void writeConfig();
......
......@@ -48,10 +48,6 @@ public:
void setListOfIncludeFile(const QStringList &listOfIncludeFile);
void setModified(bool b);
private Q_SLOTS:
void slotEnableButtonOk(bool b);
void slotAccepted();
void slotCanceled();
Q_SIGNALS:
void checkSyntax();
......@@ -63,6 +59,9 @@ protected:
bool event(QEvent *e) override;
void closeEvent(QCloseEvent *e) override;
private:
void slotEnableButtonOk(bool b);
void slotAccepted();
void slotCanceled();
void writeConfig();
void readConfig();
SieveEditorPrivate *const d;
......
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