Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
PIM Messagelib
Commits
f45a073f
Commit
f45a073f
authored
May 16, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port QDebug
parent
6f88199b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
webengineviewer/src/print/autotests/CMakeLists.txt
webengineviewer/src/print/autotests/CMakeLists.txt
+1
-1
webengineviewer/src/print/printconfigurewidget.cpp
webengineviewer/src/print/printconfigurewidget.cpp
+2
-3
webengineviewer/src/print/printwebengineviewjob.cpp
webengineviewer/src/print/printwebengineviewjob.cpp
+0
-1
webengineviewer/src/print/tests/printwebenginetest_gui.cpp
webengineviewer/src/print/tests/printwebenginetest_gui.cpp
+2
-0
No files found.
webengineviewer/src/print/autotests/CMakeLists.txt
View file @
f45a073f
...
...
@@ -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
...
...
webengineviewer/src/print/printconfigurewidget.cpp
View file @
f45a073f
...
...
@@ -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"
;
q
C
Debug
(
WEBENGINEVIEWER_LOG
)
<<
"Print Setup unsupported"
;
}
QPageSetupDialog
dlg
(
&
printer
,
this
);
if
(
dlg
.
exec
()
!=
QDialog
::
Accepted
)
...
...
webengineviewer/src/print/printwebengineviewjob.cpp
View file @
f45a073f
...
...
@@ -18,7 +18,6 @@
#include "printwebengineviewjob.h"
#include "webengineviewer_debug.h"
#include <QWebEngineView>
#include <QDebug>
using
namespace
WebEngineViewer
;
...
...
webengineviewer/src/print/tests/printwebenginetest_gui.cpp
View file @
f45a073f
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment