Commit fbd57de0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to QVector + use Q_REQUIRED_RESULT

parent 96ac9175
......@@ -21,7 +21,7 @@
#define SIEVECONDITIONWIDGETLISTER_H
#include <Libkdepim/KWidgetLister>
#include <QVector>
class QPushButton;
class QGridLayout;
class QXmlStreamReader;
......@@ -57,7 +57,7 @@ private:
void slotAddComment();
void initWidget();
void setFilterCondition(QWidget *widget);
QList<KSieveUi::SieveCondition *> mConditionList;
QVector<KSieveUi::SieveCondition *> mConditionList;
QPushButton *mAdd = nullptr;
QPushButton *mRemove = nullptr;
QComboBox *mComboBox = nullptr;
......
......@@ -40,11 +40,11 @@ public:
explicit SieveScriptDebuggerFrontEndWidget(QWidget *parent = nullptr);
~SieveScriptDebuggerFrontEndWidget();
QString script() const;
Q_REQUIRED_RESULT QString script() const;
void setScript(const QString &script);
bool canAccept() const;
Q_REQUIRED_RESULT bool canAccept() const;
QList<int> splitterSizes() const;
Q_REQUIRED_RESULT QList<int> splitterSizes() const;
void setSplitterSizes(const QList<int> &sizes);
Q_SIGNALS:
......
......@@ -40,9 +40,9 @@ public:
void setScript(const QString &script);
Q_REQUIRED_RESULT QString script() const;
bool canAccept() const;
Q_REQUIRED_RESULT bool canAccept() const;
QList<int> splitterSizes() const;
Q_REQUIRED_RESULT QList<int> splitterSizes() const;
void setSplitterSizes(const QList<int> &sizes);
Q_REQUIRED_RESULT bool haveDebugApps() const;
......
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