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
K
KDE Pim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
Unmaintained
KDE Pim
Commits
678c22f0
Commit
678c22f0
authored
May 23, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
not necessary to store mpart
parent
bb7f702f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
27 deletions
+6
-27
akregator/src/frame/framemanager.cpp
akregator/src/frame/framemanager.cpp
+0
-1
akregator/src/openurlrequest.cpp
akregator/src/openurlrequest.cpp
+6
-12
akregator/src/openurlrequest.h
akregator/src/openurlrequest.h
+0
-14
No files found.
akregator/src/frame/framemanager.cpp
View file @
678c22f0
...
...
@@ -234,7 +234,6 @@ void FrameManager::openUrl(OpenUrlRequest &request)
if
(
frame
->
openUrl
(
request
))
{
request
.
setWasHandled
(
true
);
}
request
.
setPart
(
frame
->
part
());
}
if
(
!
request
.
openInBackground
())
{
...
...
akregator/src/openurlrequest.cpp
View file @
678c22f0
...
...
@@ -27,8 +27,12 @@
using
namespace
Akregator
;
OpenUrlRequest
::
OpenUrlRequest
(
const
QUrl
&
url
)
:
m_frameId
(
-
1
),
m_url
(
url
),
m_options
(
None
),
m_part
(),
m_inBackground
(
false
),
m_wasHandled
(
false
)
OpenUrlRequest
::
OpenUrlRequest
(
const
QUrl
&
url
)
:
m_frameId
(
-
1
),
m_url
(
url
),
m_options
(
None
),
m_inBackground
(
false
),
m_wasHandled
(
false
)
{
}
...
...
@@ -100,16 +104,6 @@ void OpenUrlRequest::setOptions(OpenUrlRequest::Options options)
m_options
=
options
;
}
void
OpenUrlRequest
::
setPart
(
KParts
::
ReadOnlyPart
*
part
)
{
m_part
=
part
;
}
KParts
::
ReadOnlyPart
*
OpenUrlRequest
::
part
()
const
{
return
m_part
;
}
QString
OpenUrlRequest
::
debugInfo
()
const
{
return
QStringLiteral
(
"url=%1 mimeType=%2 newTab=%3 forcesNewWindow=%4 options=%5"
)
...
...
akregator/src/openurlrequest.h
View file @
678c22f0
...
...
@@ -26,7 +26,6 @@
#define AKREGATOR_OPENURLREQUEST_H
#include <kparts/browserextension.h>
#include <kparts/part.h>
#include <QUrl>
...
...
@@ -73,18 +72,6 @@ public:
bool
openInBackground
()
const
;
void
setOpenInBackground
(
bool
background
);
/**
* The part that was created for a "NewTab" request.
*
* It must be set after creating the tab, so that the initiating
* part can load the URL into the new part. This works only synchronously
* and requires args().serviceType to be set.
*
* @see KParts::BrowserExtension::createNewWindow()
*/
KParts
::
ReadOnlyPart
*
part
()
const
;
void
setPart
(
KParts
::
ReadOnlyPart
*
part
);
QString
debugInfo
()
const
;
bool
wasHandled
()
const
;
...
...
@@ -97,7 +84,6 @@ private:
KParts
::
OpenUrlArguments
m_args
;
KParts
::
BrowserArguments
m_browserArgs
;
Options
m_options
;
QPointer
<
KParts
::
ReadOnlyPart
>
m_part
;
bool
m_inBackground
;
bool
m_wasHandled
;
};
...
...
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