Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PIM Messagelib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
PIM Messagelib
Commits
a84799df
Commit
a84799df
authored
May 18, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve print support
parent
fcb9207e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
146 additions
and
0 deletions
+146
-0
webengineviewer/src/CMakeLists.txt
webengineviewer/src/CMakeLists.txt
+2
-0
webengineviewer/src/autotests/CMakeLists.txt
webengineviewer/src/autotests/CMakeLists.txt
+7
-0
webengineviewer/src/autotests/webengineprintmessageboxtest.cpp
...gineviewer/src/autotests/webengineprintmessageboxtest.cpp
+32
-0
webengineviewer/src/autotests/webengineprintmessageboxtest.h
webengineviewer/src/autotests/webengineprintmessageboxtest.h
+31
-0
webengineviewer/src/webengineprintmessagebox.cpp
webengineviewer/src/webengineprintmessagebox.cpp
+40
-0
webengineviewer/src/webengineprintmessagebox.h
webengineviewer/src/webengineprintmessagebox.h
+34
-0
No files found.
webengineviewer/src/CMakeLists.txt
View file @
a84799df
...
...
@@ -46,9 +46,11 @@ set(libwebengineviewer_webengine_SRCS
webenginepage.cpp
webenginescript.cpp
webengineview.cpp
webengineaccesskey/webengineaccesskey.cpp
webengineaccesskey/webengineaccesskeyanchor.cpp
webengineaccesskey/webengineaccesskeyutils.cpp
webengineprintmessagebox.cpp
)
set
(
libwebengineviewer_findbar_SRCS
...
...
webengineviewer/src/autotests/CMakeLists.txt
View file @
a84799df
...
...
@@ -11,3 +11,10 @@ ecm_add_test(zoomactionmenutest.cpp
LINK_LIBRARIES Qt5::Test KF5::WebEngineViewer KF5::XmlGui
)
ecm_add_test
(
webengineprintmessageboxtest.cpp
TEST_NAME webengineprintmessageboxtest
NAME_PREFIX
"webengineviewer-"
LINK_LIBRARIES Qt5::Test KF5::WebEngineViewer
)
webengineviewer/src/autotests/webengineprintmessageboxtest.cpp
0 → 100644
View file @
a84799df
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "webengineprintmessageboxtest.h"
#include <QTest>
WebEnginePrintMessageBoxTest
::
WebEnginePrintMessageBoxTest
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
WebEnginePrintMessageBoxTest
::~
WebEnginePrintMessageBoxTest
()
{
}
QTEST_MAIN
(
WebEnginePrintMessageBoxTest
)
webengineviewer/src/autotests/webengineprintmessageboxtest.h
0 → 100644
View file @
a84799df
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef WEBENGINEPRINTMESSAGEBOXTEST_H
#define WEBENGINEPRINTMESSAGEBOXTEST_H
#include <QObject>
class
WebEnginePrintMessageBoxTest
:
public
QObject
{
Q_OBJECT
public:
explicit
WebEnginePrintMessageBoxTest
(
QObject
*
parent
=
Q_NULLPTR
);
~
WebEnginePrintMessageBoxTest
();
};
#endif // WEBENGINEPRINTMESSAGEBOXTEST_H
webengineviewer/src/webengineprintmessagebox.cpp
0 → 100644
View file @
a84799df
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "webengineprintmessagebox.h"
#include <KLocalizedString>
#include <QDialogButtonBox>
#include <QVBoxLayout>
#include <QLabel>
using
namespace
WebEngineViewer
;
WebEnginePrintMessageBox
::
WebEnginePrintMessageBox
(
QWidget
*
parent
)
:
QDialog
(
parent
)
{
QVBoxLayout
*
mainLayout
=
new
QVBoxLayout
;
setLayout
(
mainLayout
);
QDialogButtonBox
*
buttonBox
=
new
QDialogButtonBox
(
QDialogButtonBox
::
Cancel
);
buttonBox
->
setObjectName
(
QStringLiteral
(
"buttonbox"
));
connect
(
buttonBox
,
&
QDialogButtonBox
::
rejected
,
this
,
&
WebEnginePrintMessageBox
::
reject
);
}
WebEnginePrintMessageBox
::~
WebEnginePrintMessageBox
()
{
}
webengineviewer/src/webengineprintmessagebox.h
0 → 100644
View file @
a84799df
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef WEBENGINEPRINTMESSAGEBOX_H
#define WEBENGINEPRINTMESSAGEBOX_H
#include <QDialog>
namespace
WebEngineViewer
{
class
WebEnginePrintMessageBox
:
public
QDialog
{
Q_OBJECT
public:
explicit
WebEnginePrintMessageBox
(
QWidget
*
parent
=
Q_NULLPTR
);
~
WebEnginePrintMessageBox
();
};
}
#endif // WEBENGINEPRINTMESSAGEBOX_H
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