Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Add-ons
Commits
c362da00
Commit
c362da00
authored
Mar 09, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expand url
parent
26f830c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
plugins/messageviewerplugins/expandurlplugin/viewerpluginexpandurlinterface.cpp
...lugins/expandurlplugin/viewerpluginexpandurlinterface.cpp
+10
-1
plugins/messageviewerplugins/expandurlplugin/viewerpluginexpandurlinterface.h
...rplugins/expandurlplugin/viewerpluginexpandurlinterface.h
+3
-0
No files found.
plugins/messageviewerplugins/expandurlplugin/viewerpluginexpandurlinterface.cpp
View file @
c362da00
...
...
@@ -16,6 +16,7 @@
*/
#include "viewerpluginexpandurlinterface.h"
#include <MessageViewer/ScamExpandUrlJob>
#include <QHBoxLayout>
#include <QIcon>
...
...
@@ -45,7 +46,10 @@ QAction *ViewerPluginExpandurlInterface::action() const
void
ViewerPluginExpandurlInterface
::
showWidget
()
{
//TODO expand url
if
(
mCurrentUrl
.
isValid
())
{
MessageViewer
::
ScamExpandUrlJob
*
job
=
new
MessageViewer
::
ScamExpandUrlJob
(
this
);
job
->
expandedUrl
(
mCurrentUrl
);
}
}
ViewerPluginInterface
::
SpecificFeatureTypes
ViewerPluginExpandurlInterface
::
featureTypes
()
const
...
...
@@ -62,3 +66,8 @@ void ViewerPluginExpandurlInterface::createAction(KActionCollection *ac)
connect
(
mAction
,
&
QAction
::
triggered
,
this
,
&
ViewerPluginExpandurlInterface
::
slotActivatePlugin
);
}
}
void
ViewerPluginExpandurlInterface
::
setUrl
(
const
QUrl
&
url
)
{
mCurrentUrl
=
url
;
}
plugins/messageviewerplugins/expandurlplugin/viewerpluginexpandurlinterface.h
View file @
c362da00
...
...
@@ -19,6 +19,7 @@
#define VIEWERPLUGINEXPANDURLINTERFACE_H
#include <messageviewer/viewerplugininterface.h>
#include <QUrl>
class
KActionCollection
;
namespace
MessageViewer
{
...
...
@@ -33,8 +34,10 @@ public:
void
showWidget
()
Q_DECL_OVERRIDE
;
ViewerPluginInterface
::
SpecificFeatureTypes
featureTypes
()
const
Q_DECL_OVERRIDE
;
void
setUrl
(
const
QUrl
&
url
)
Q_DECL_OVERRIDE
;
private:
void
createAction
(
KActionCollection
*
ac
);
QUrl
mCurrentUrl
;
QAction
*
mAction
;
};
}
...
...
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