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

Astyle kdelibs

parent fd971c9c
......@@ -45,7 +45,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);
}
};
......@@ -57,8 +58,6 @@ InvokeWrapper<Arg, R, C> invoke(R *receiver, void (C::*memberFun)(Arg))
return wrapper;
}
ArticleViewerWebEngineWidgetNg::ArticleViewerWebEngineWidgetNg(ArticleViewerWebEngine *customViewer, KActionCollection *ac, QWidget *parent)
: QWidget(parent),
mCurrentPrinter(Q_NULLPTR)
......@@ -151,8 +150,9 @@ void ArticleViewerWebEngineWidgetNg::slotPrint()
void ArticleViewerWebEngineWidgetNg::printRequested(QWebEnginePage *page)
{
#ifdef WEBENGINEVIEWER_PRINT_SUPPORT
if (mCurrentPrinter)
if (mCurrentPrinter) {
return;
}
mCurrentPrinter = new QPrinter();
QPointer<QPrintDialog> dialog = new QPrintDialog(mCurrentPrinter, this);
dialog->setWindowTitle(i18n("Print Document"));
......@@ -175,7 +175,6 @@ void ArticleViewerWebEngineWidgetNg::slotHandlePagePrinted(bool result)
mCurrentPrinter = Q_NULLPTR;
}
void ArticleViewerWebEngineWidgetNg::slotPrintPreview()
{
QPointer<WebEngineViewer::WebEnginePrintMessageBox> dialog = new WebEngineViewer::WebEnginePrintMessageBox(this);
......
......@@ -77,7 +77,6 @@ FeedPropertiesDialog::FeedPropertiesDialog(QWidget *parent, const QString &name)
setObjectName(name);
setWindowTitle(i18n("Feed Properties"));
widget = new FeedPropertiesWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
......
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