Commit 2de74345 authored by Laurent Montel's avatar Laurent Montel 😁

Astyle kdelibs

parent 97724a3b
......@@ -37,7 +37,7 @@ void PluginEditorCheckBeforeSendParamsTest::shouldHaveDefaultValues()
MessageComposer::PluginEditorCheckBeforeSendParams params;
QVERIFY(params.subject().isEmpty());
QVERIFY(params.plainText().isEmpty());
QCOMPARE(params.identity(), (uint)-1);
QCOMPARE(params.identity(), (uint) - 1);
QVERIFY(!params.isHtmlMail());
QVERIFY(params.addresses().isEmpty());
......
......@@ -17,7 +17,6 @@
Boston, MA 02110-1301, USA.
*/
#include "plugineditorcheckbeforesendconfigurewidget.h"
using namespace MessageComposer;
......
......@@ -17,7 +17,6 @@
Boston, MA 02110-1301, USA.
*/
#ifndef PLUGINEDITORCHECKBEFORESENDCONFIGUREWIDGET_H
#define PLUGINEDITORCHECKBEFORESENDCONFIGUREWIDGET_H
......
......@@ -21,7 +21,6 @@
using namespace MessageComposer;
class MessageComposer::PluginEditorCheckBeforeSendInterfacePrivate
{
public:
......
......@@ -47,7 +47,6 @@ public:
public Q_SLOTS:
virtual void reloadConfig();
private:
PluginEditorCheckBeforeSendInterfacePrivate *const d;
};
......
......@@ -51,7 +51,6 @@ PluginEditorCheckBeforeSendParams::PluginEditorCheckBeforeSendParams(const Plugi
(*this) = other;
}
PluginEditorCheckBeforeSendParams::~PluginEditorCheckBeforeSendParams()
{
delete d;
......@@ -72,10 +71,10 @@ PluginEditorCheckBeforeSendParams &PluginEditorCheckBeforeSendParams::operator=(
bool PluginEditorCheckBeforeSendParams::operator ==(const PluginEditorCheckBeforeSendParams &other) const
{
return (d->subject == other.subject()) &&
(d->identity == other.identity()) &&
(d->isHtml == other.isHtmlMail()) &&
(d->plainText == other.plainText()) &&
(d->listAddress == other.addresses());
(d->identity == other.identity()) &&
(d->isHtml == other.isHtmlMail()) &&
(d->plainText == other.plainText()) &&
(d->listAddress == other.addresses());
}
void PluginEditorCheckBeforeSendParams::setSubject(const QString &subject)
......
......@@ -27,7 +27,6 @@
#include <QIcon>
#include <QLocale>
void MessageViewer::Test::setupEnv()
{
setenv("KDEHOME", QFile::encodeName(QDir::homePath() + QString::fromLatin1("/.qttest")), 1);
......
......@@ -23,7 +23,6 @@
#include "interfaces/bodypart.h"
#include "temporaryfile/attachmenttemporaryfilesdirs.h"
#include <KMime/Content>
#include <KMime/Message>
#include <KMime/Headers>
......
......@@ -17,7 +17,6 @@
Boston, MA 02110-1301, USA.
*/
#ifndef FINDBARBASETEST_H
#define FINDBARBASETEST_H
......
......@@ -17,7 +17,6 @@
Boston, MA 02110-1301, USA.
*/
#include "printselectpagedialogtest.h"
#include "../printselectpagewidget.h"
#include "../printselectpagedialog.h"
......
......@@ -17,7 +17,6 @@
Boston, MA 02110-1301, USA.
*/
#ifndef PRINTSELECTPAGEDIALOGTEST_H
#define PRINTSELECTPAGEDIALOGTEST_H
......
......@@ -29,7 +29,6 @@
#include <QPushButton>
#include <QPointer>
using namespace WebEngineViewer;
PrintPreviewDialog::PrintPreviewDialog(QWidget *parent)
......
......@@ -137,7 +137,7 @@ void PrintPreviewPageWidget::showPage(int index)
void PrintPreviewPageWidget::print(const QList<int> &page)
{
qDebug()<<" void PrintPreviewPageWidget::print(const QList<int> &page) not implemented";
qDebug() << " void PrintPreviewPageWidget::print(const QList<int> &page) not implemented";
//TODO
}
......
......@@ -47,7 +47,7 @@ public:
private Q_SLOTS:
void showPage(int index);
void slotReloadPage();
void slotReloadPage();
void slotPageDown();
void slotPageUp();
......
......@@ -37,7 +37,7 @@ PrintSelectPageDialog::PrintSelectPageDialog(QWidget *parent)
mPrintSelectPage->setObjectName(QStringLiteral("printselectpage"));
mainLayout->addWidget(mPrintSelectPage);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel, this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
buttonBox->setObjectName(QStringLiteral("buttonbox"));
mainLayout->addWidget(buttonBox);
connect(buttonBox, &QDialogButtonBox::accepted, this, &PrintSelectPageDialog::accept);
......@@ -67,7 +67,6 @@ void PrintSelectPageDialog::readConfig()
}
}
QList<int> PrintSelectPageDialog::pages() const
{
return mPrintSelectPage->pages();
......
......@@ -43,7 +43,7 @@ PrintSelectPageWidget::~PrintSelectPageWidget()
void PrintSelectPageWidget::setPages(int page)
{
for (int i = 0; i < page; ++i) {
QListWidgetItem *item = new QListWidgetItem(i18n("Page %1", (i+1)), mListPage);
QListWidgetItem *item = new QListWidgetItem(i18n("Page %1", (i + 1)), mListPage);
item->setFlags(item->flags() | Qt::ItemIsUserCheckable);
item->setCheckState(Qt::Unchecked);
item->setData(PageIndex, i);
......
......@@ -17,7 +17,6 @@
Boston, MA 02110-1301, USA.
*/
#include "../printpreviewdialog.h"
#include <QApplication>
......
......@@ -20,5 +20,4 @@
#ifndef PRINTPREVIEWDIALOG_GUI_H
#define PRINTPREVIEWDIALOG_GUI_H
#endif // PRINTPREVIEWDIALOG_GUI_H
......@@ -27,7 +27,8 @@ template<typename Arg, typename R, typename C>
struct InvokeWrapper {
R *receiver;
void (C::*memberFun)(Arg);
void operator()(Arg result) {
void operator()(Arg result)
{
(receiver->*memberFun)(result);
}
};
......
......@@ -107,19 +107,19 @@ void WebEngineView::forwardMouseReleaseEvent(QMouseEvent *event)
void WebEngineView::dragMoveEvent(QDragMoveEvent *e)
{
Q_UNUSED(e);
qDebug()<<" void WebEngineView::dragMoveEvent(QDragMoveEvent *e)";
qDebug() << " void WebEngineView::dragMoveEvent(QDragMoveEvent *e)";
}
void WebEngineView::dragEnterEvent(QDragEnterEvent *event)
{
Q_UNUSED(event);
qDebug()<<" void WebEngineView::dragEnterEvent(QDragEnterEvent *event)";
qDebug() << " void WebEngineView::dragEnterEvent(QDragEnterEvent *event)";
}
void WebEngineView::dropEvent(QDropEvent *e)
{
Q_UNUSED(e);
qDebug()<<" WebEngineView::dropEvent ";
qDebug() << " WebEngineView::dropEvent ";
}
bool WebEngineView::eventFilter(QObject *obj, QEvent *event)
......
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