Commit f45a073f authored by Laurent Montel's avatar Laurent Montel 😁

Port QDebug

parent 6f88199b
......@@ -31,7 +31,7 @@ ecm_add_test(printconfiguredialogtest.cpp ../printconfiguredialog.cpp ../printc
LINK_LIBRARIES Qt5::Test Qt5::Widgets Qt5::Gui KF5::I18n Qt5::PrintSupport
)
ecm_add_test(printconfigurewidgettest.cpp ../printconfigurewidget.cpp
ecm_add_test(printconfigurewidgettest.cpp ../printconfigurewidget.cpp ${print_autotest_SRCS}
TEST_NAME printconfigurewidgettest
NAME_PREFIX "webengineviewer-print-"
LINK_LIBRARIES Qt5::Test Qt5::Widgets Qt5::Gui KF5::I18n Qt5::PrintSupport
......
......@@ -16,13 +16,13 @@
*/
#include "printconfigurewidget.h"
#include "webengineviewer_debug.h"
#include <QHBoxLayout>
#include <KLocalizedString>
#include <QLabel>
#include <QToolButton>
#include <QPageSetupDialog>
#include <QPrinter>
#include <QDebug>
using namespace WebEngineViewer;
......@@ -62,9 +62,8 @@ void PrintConfigureWidget::slotSelectPrintLayout()
{
QPrinter printer;
//TODO port to qCDebug
if (!printer.setPageLayout(mCurrentPageLayout)) {
qDebug() << "Print Setup unsupported";
qCDebug(WEBENGINEVIEWER_LOG) << "Print Setup unsupported";
}
QPageSetupDialog dlg(&printer, this);
if (dlg.exec() != QDialog::Accepted)
......
......@@ -18,7 +18,6 @@
#include "printwebengineviewjob.h"
#include "webengineviewer_debug.h"
#include <QWebEngineView>
#include <QDebug>
using namespace WebEngineViewer;
......
......@@ -21,12 +21,14 @@
#include "../printconfiguredialog.h"
#include "../printpreviewdialog.h"
#include <QApplication>
#include <QStandardPaths>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPushButton>
#include <QWebEngineView>
#include <QDebug>
PrintWebEngineTest_Gui::PrintWebEngineTest_Gui(QWidget *parent)
: QWidget(parent)
......
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