Commit 4f99a7b6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Astyle kdelibs

parent 660f9e8d
......@@ -51,7 +51,6 @@ void SelectHeadersDialogTest::shouldHaveDefaultValue()
QVERIFY(lay);
QCOMPARE(lay->margin(), 0);
KSieveUi::SelectHeadersWidget *mListWidget = dlg.findChild<KSieveUi::SelectHeadersWidget *>(QStringLiteral("listwidget"));
QVERIFY(mListWidget);
......@@ -64,8 +63,6 @@ void SelectHeadersDialogTest::shouldHaveDefaultValue()
QVERIFY(mNewHeader->isClearButtonEnabled());
QVERIFY(mNewHeader->trapReturnKey());
QPushButton *mAddNewHeader = dlg.findChild<QPushButton *>(QStringLiteral("addnewheader"));
QVERIFY(mAddNewHeader);
QVERIFY(!mAddNewHeader->isEnabled());
......
......@@ -53,7 +53,7 @@ void SelectHeaderTypeComboBoxTest::shouldHaveDefaultValue()
QVERIFY(!combox.itemText(combox.count() - 1).isEmpty());
QCOMPARE(combox.itemData(combox.count() - 1).toString(), QString());
//Don't verify first element and last as we already did
for(int i = 1; i < combox.count()-1; ++i) {
for (int i = 1; i < combox.count() - 1; ++i) {
QVERIFY(!combox.itemData(i).toString().isEmpty());
QVERIFY(!combox.itemText(i).isEmpty());
}
......@@ -68,7 +68,7 @@ void SelectHeaderTypeComboBoxTest::shouldHaveDefaultValue()
QCOMPARE(combox1.itemData(combox1.count() - 1).toString(), QString());
//Don't verify first element and last as we already did
for(int i = 1; i < combox1.count() - 1; ++i) {
for (int i = 1; i < combox1.count() - 1; ++i) {
QVERIFY(!combox1.itemData(i).toString().isEmpty());
QVERIFY(!combox1.itemText(i).isEmpty());
}
......
......@@ -50,7 +50,6 @@ SelectHeadersDialog::SelectHeadersDialog(QWidget *parent)
connect(buttonBox, &QDialogButtonBox::rejected, this, &SelectHeadersDialog::reject);
okButton->setFocus();
QVBoxLayout *lay = new QVBoxLayout;
lay->setObjectName(QStringLiteral("widgetlayout"));
lay->setMargin(0);
......@@ -220,7 +219,6 @@ SelectHeaderTypeComboBox::~SelectHeaderTypeComboBox()
{
}
void SelectHeaderTypeComboBox::changeReadOnlyStatus()
{
const bool readOnly = (currentIndex() > 0);
......
......@@ -17,7 +17,6 @@
Boston, MA 02110-1301, USA.
*/
#include "sieveconditionwidgetlister.h"
#include "autocreatescriptdialog.h"
#include "autocreatescriptutil_p.h"
......
......@@ -84,7 +84,6 @@ void SieveEditorMenuBarTest::shouldDisableActions()
QVERIFY(!bar.printAction()->isEnabled());
QVERIFY(!bar.printPreviewAction()->isEnabled());
bar.setEditorMode(true);
QVERIFY(bar.goToLineAction()->isEnabled());
QVERIFY(bar.findAction()->isEnabled());
......@@ -208,7 +207,6 @@ void SieveEditorMenuBarTest::shouldEmitSignals()
QSignalSpy spyPrintPreview(&bar, SIGNAL(printPreview()));
bar.printPreviewAction()->trigger();
QCOMPARE(spyZoomOut.count(), 1);
QCOMPARE(spyZoomIn.count(), 1);
QCOMPARE(spyUnComment.count(), 1);
......
......@@ -91,7 +91,6 @@ void SieveEditorMenuBar::initActions()
mPrintAction = KStandardAction::print(this, &SieveEditorMenuBar::print, this);
mPrintPreviewAction = KStandardAction::printPreview(this, &SieveEditorMenuBar::printPreview, this);
mZoomResetAction = new QAction(i18nc("Reset the zoom", "Reset"), this);
mZoomResetAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_0));
connect(mZoomResetAction, &QAction::triggered, this, &SieveEditorMenuBar::zoomReset);
......
......@@ -342,7 +342,7 @@ bool SieveEditorTextModeWidget::hasSelection() const
void SieveEditorTextModeWidget::zoomIn()
{
QWidget *w = mTabWidget->currentWidget();
QWidget *w = mTabWidget->currentWidget();
if (w == mEditorWidget) {
mTextEdit->zoomIn();
} else if (SieveEditorHelpHtmlWidget *page = qobject_cast<SieveEditorHelpHtmlWidget *>(w)) {
......
......@@ -32,7 +32,7 @@ public:
protected:
void contextMenuEvent(QContextMenuEvent *ev) Q_DECL_OVERRIDE;
private:
void downloadRequested(QWebEngineDownloadItem*);
void downloadRequested(QWebEngineDownloadItem *);
};
}
......
......@@ -99,6 +99,6 @@ void SieveScriptDebuggerDialog::readConfig()
if (sizeDialog.isValid()) {
resize(sizeDialog);
}
const QList<int> size{ 100 , 400};
const QList<int> size{ 100, 400};
mSieveScriptDebuggerWidget->setSplitterSizes(group.readEntry("Splitter", size));
}
......@@ -133,7 +133,6 @@ QList<int> SieveScriptDebuggerFrontEndWidget::splitterSizes() const
return mSplitter->sizes();
}
void SieveScriptDebuggerFrontEndWidget::slotEmailChanged(const QString &text)
{
mDebugScript->setEnabled(!text.trimmed().isEmpty());
......
......@@ -68,7 +68,6 @@ void SieveScriptDebuggerWidget::setSplitterSizes(const QList<int> &sizes)
mSieveScriptFrontEnd->setSplitterSizes(sizes);
}
bool SieveScriptDebuggerWidget::canAccept() const
{
return mSieveScriptFrontEnd->canAccept();
......
......@@ -70,7 +70,6 @@ void VacationEditWidgetTest::shouldHaveDefaultValue()
KTimeComboBox *mStartTime = w.findChild<KTimeComboBox *>(QStringLiteral("mStartTime"));
QVERIFY(mStartTime);
QCheckBox *mStartTimeActive = w.findChild<QCheckBox *>(QStringLiteral("mStartTimeActive"));
QVERIFY(mStartTimeActive);
QVERIFY(!mStartTimeActive->isChecked());
......@@ -94,7 +93,6 @@ void VacationEditWidgetTest::shouldHaveDefaultValue()
QVERIFY(mEndDateLabel);
QVERIFY(!mEndDateLabel->text().isEmpty());
QSpinBox *mIntervalSpin = w.findChild<QSpinBox *>(QStringLiteral("mIntervalSpin"));
QVERIFY(mIntervalSpin);
......@@ -136,7 +134,6 @@ void VacationEditWidgetTest::shouldHaveDefaultValue()
QVERIFY(!mDomainCheck->text().isEmpty());
QVERIFY(!mDomainCheck->isChecked());
QLineEdit *mDomainEdit = w.findChild<QLineEdit *>(QStringLiteral("mDomainEdit"));
QVERIFY(mDomainEdit);
QVERIFY(mDomainEdit->text().isEmpty());
......@@ -162,7 +159,6 @@ void VacationEditWidgetTest::shouldGetValues()
QCheckBox *mEndTimeActive = w.findChild<QCheckBox *>(QStringLiteral("mEndTimeActive"));
QSpinBox *mIntervalSpin = w.findChild<QSpinBox *>(QStringLiteral("mIntervalSpin"));
QLineEdit *mMailAliasesEdit = w.findChild<QLineEdit *>(QStringLiteral("mMailAliasesEdit"));
......@@ -174,7 +170,6 @@ void VacationEditWidgetTest::shouldGetValues()
//QCheckBox *mSpamCheck = w.findChild<QCheckBox *>(QStringLiteral("mSpamCheck"));
//QCheckBox *mDomainCheck = w.findChild<QCheckBox *>(QStringLiteral("mDomainCheck"));
//QLineEdit *mDomainEdit = w.findChild<QLineEdit *>(QStringLiteral("mDomainEdit"));
bool activateVacation = true;
......@@ -203,28 +198,27 @@ void VacationEditWidgetTest::shouldGetValues()
#if 0
KMime::Types::AddrSpecList mailAliases() const;
void setMailAliases(const KMime::Types::AddrSpecList &aliases);
void setMailAliases(const QString &aliases);
void setMailAliases(const KMime::Types::AddrSpecList & aliases);
void setMailAliases(const QString & aliases);
bool sendForSpam() const;
void setSendForSpam(bool enable);
QDate startDate() const;
void setStartDate(const QDate &startDate);
void setStartDate(const QDate & startDate);
QTime startTime() const;
void setStartTime(const QTime &startTime);
void setStartTime(const QTime & startTime);
QDate endDate() const;
void setEndDate(const QDate &endDate);
void setEndDate(const QDate & endDate);
QTime endTime() const;
void setEndTime(const QTime &endTime);
void setEndTime(const QTime & endTime);
VacationUtils::MailAction mailAction() const;
QString mailActionRecipient() const;
void setMailAction(VacationUtils::MailAction action, const QString &recipient);
void setMailAction(VacationUtils::MailAction action, const QString & recipient);
#endif
}
......
......@@ -17,7 +17,6 @@
Boston, MA 02110-1301, USA.
*/
#ifndef VACATIONEDITWIDGETTEST_H
#define VACATIONEDITWIDGETTEST_H
......
......@@ -55,7 +55,7 @@ VacationEditWidget::VacationEditWidget(QWidget *parent)
// explanation label:
++row;
QLabel *configureVacationLabel = new QLabel(i18n("Configure vacation "
"notifications to be sent:"), this);
"notifications to be sent:"), this);
configureVacationLabel->setObjectName(QStringLiteral("configureVacationLabel"));
glay->addWidget(configureVacationLabel, row, 0, 1, 2);
......
......@@ -691,12 +691,10 @@ private:
void testEnd() Q_DECL_OVERRIDE {}
void testListStart() Q_DECL_OVERRIDE {}
void testListEnd() Q_DECL_OVERRIDE {}
void blockStart(int lineNumber) Q_DECL_OVERRIDE
{
void blockStart(int lineNumber) Q_DECL_OVERRIDE {
Q_UNUSED(lineNumber)
}
void blockEnd(int lineNumber) Q_DECL_OVERRIDE
{
void blockEnd(int lineNumber) Q_DECL_OVERRIDE {
Q_UNUSED(lineNumber)
}
void hashComment(const QString &) Q_DECL_OVERRIDE {}
......@@ -705,12 +703,10 @@ private:
void error(const KSieve::Error &e) Q_DECL_OVERRIDE;
void finished() Q_DECL_OVERRIDE;
void taggedArgument(const QString &tag) Q_DECL_OVERRIDE
{
void taggedArgument(const QString &tag) Q_DECL_OVERRIDE {
Q_UNUSED(tag)
}
void numberArgument(unsigned long number, char) Q_DECL_OVERRIDE
{
void numberArgument(unsigned long number, char) Q_DECL_OVERRIDE {
Q_UNUSED(number)
}
......
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