Commit 51445cef authored by Laurent Montel's avatar Laurent Montel 😁

Coding style

parent 08063cdd
......@@ -26,7 +26,6 @@
RegexpEditorLineEditTest::RegexpEditorLineEditTest(QObject *parent)
: QObject(parent)
{
}
void RegexpEditorLineEditTest::shouldHaveDefaultValue()
......@@ -55,5 +54,4 @@ void RegexpEditorLineEditTest::shouldChangeValue()
QCOMPARE(w.code(), input);
}
QTEST_MAIN(RegexpEditorLineEditTest)
......@@ -25,7 +25,6 @@
SieveDateSpinBoxTest::SieveDateSpinBoxTest(QObject *parent)
: QObject(parent)
{
}
void SieveDateSpinBoxTest::shouldHaveDefaultValue()
......@@ -54,7 +53,6 @@ void SieveDateSpinBoxTest::shouldAssignValue_data()
QTest::newRow("second-1") << QStringLiteral("1") << QStringLiteral("01") << KSieveUi::SelectDateWidget::Second;
QTest::newRow("second-*") << QStringLiteral("*") << QStringLiteral("*") << KSieveUi::SelectDateWidget::Second;
QTest::newRow("second-500") << QStringLiteral("500") << QStringLiteral("59") << KSieveUi::SelectDateWidget::Second;
}
void SieveDateSpinBoxTest::shouldAssignValue()
......
......@@ -181,7 +181,6 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts_data()
//Failed
QTest::newRow("failed-1") << QStringLiteral("failed-1") << true << true;
}
QTEST_MAIN(SieveEditorGraphicalModeWidgetTest)
......@@ -121,7 +121,6 @@ QString SieveConditionHasFlag::serverNeedsCapability() const
return QStringLiteral("variables");
#if 0
if (sieveCapabilities().contains(QStringLiteral("variables"))) {
}
if (sieveCapabilities().contains(QStringLiteral("imap4flags"))) {
return QStringLiteral("imap4flags");
......
......@@ -35,10 +35,8 @@ RegexpEditorLineEdit::RegexpEditorLineEdit(QWidget *parent)
RegexpEditorLineEdit::~RegexpEditorLineEdit()
{
}
void RegexpEditorLineEdit::switchToRegexpEditorLineEdit()
{
//Nothing here
......
......@@ -24,8 +24,7 @@
#include "ksieveui_private_export.h"
class QLineEdit;
namespace KSieveUi
{
namespace KSieveUi {
class KSIEVEUI_TESTS_EXPORT RegexpEditorLineEdit : public KSieveUi::AbstractRegexpEditorLineEdit
{
Q_OBJECT
......@@ -39,7 +38,6 @@ public:
private:
QLineEdit *mLineEdit;
};
}
......
......@@ -32,7 +32,6 @@
#include "libksieve_debug.h"
#include <QDate>
using namespace KSieveUi;
SelectDateWidget::SelectDateWidget(QWidget *parent)
: QWidget(parent)
......
......@@ -23,15 +23,14 @@
using namespace KSieveUi;
SieveDateSpinBox::SieveDateSpinBox(QWidget *parent)
: QSpinBox(parent),
mType(SelectDateWidget::Year)
: QSpinBox(parent)
, mType(SelectDateWidget::Year)
{
setSpecialValueText(QStringLiteral("*"));
}
SieveDateSpinBox::~SieveDateSpinBox()
{
}
void SieveDateSpinBox::setRange(int minValue, int maxValue)
......
......@@ -23,8 +23,7 @@
#include <QSpinBox>
#include "selectdatewidget.h"
#include "ksieveui_private_export.h"
namespace KSieveUi
{
namespace KSieveUi {
class KSIEVEUI_TESTS_EXPORT SieveDateSpinBox : public QSpinBox
{
Q_OBJECT
......
......@@ -24,10 +24,8 @@ using namespace KSieveUi;
AbstractRegexpEditorLineEdit::AbstractRegexpEditorLineEdit(QWidget *parent)
: QWidget(parent)
{
}
AbstractRegexpEditorLineEdit::~AbstractRegexpEditorLineEdit()
{
}
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