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
Network
KIO GDrive
Commits
cac51be2
Commit
cac51be2
authored
Aug 27, 2020
by
Elvis Angelaccio
Committed by
David Barchiesi
Sep 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use JSON metadata
parent
5f5ae8dc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
14 deletions
+21
-14
src/integration/propertiesplugin/CMakeLists.txt
src/integration/propertiesplugin/CMakeLists.txt
+5
-5
src/integration/propertiesplugin/gdrivepropertiesplugin.cpp
src/integration/propertiesplugin/gdrivepropertiesplugin.cpp
+1
-1
src/integration/propertiesplugin/gdrivepropertiesplugin.desktop
...tegration/propertiesplugin/gdrivepropertiesplugin.desktop
+0
-8
src/integration/propertiesplugin/gdrivepropertiesplugin.json
src/integration/propertiesplugin/gdrivepropertiesplugin.json
+15
-0
No files found.
src/integration/propertiesplugin/CMakeLists.txt
View file @
cac51be2
...
...
@@ -3,14 +3,14 @@ set(gdrivepropertiesplugin_SRCS
../../gdrivedebug.cpp
)
ki18n_wrap_ui
(
gdrivepropertiesplugin_
UI_
SRCS gdrivepropertiesplugin.ui
)
ki18n_wrap_ui
(
gdrivepropertiesplugin_SRCS gdrivepropertiesplugin.ui
)
add_library
(
gdrivepropertiesplugin MODULE
${
gdrivepropertiesplugin_UI_SRCS
}
${
gdrivepropertiesplugin_SRCS
}
)
kcoreaddons_add_plugin
(
gdrivepropertiesplugin
SOURCES
${
gdrivepropertiesplugin_SRCS
}
JSON gdrivepropertiesplugin.json
INSTALL_NAMESPACE
"kf5/propertiesdialog"
)
target_link_libraries
(
gdrivepropertiesplugin
KF5::I18n
KF5::KIOWidgets
)
install
(
TARGETS gdrivepropertiesplugin DESTINATION
${
PLUGIN_INSTALL_DIR
}
)
install
(
FILES gdrivepropertiesplugin.desktop DESTINATION
${
SERVICES_INSTALL_DIR
}
)
src/integration/propertiesplugin/gdrivepropertiesplugin.cpp
View file @
cac51be2
...
...
@@ -28,7 +28,7 @@
#include <QDesktopServices>
#include <KIO/StatJob>
K_PLUGIN_
FACTORY
(
GDrivePropertiesPlugin
Factory
,
registerPlugin
<
GD
rive
P
roperties
P
lugin
>
();
)
K_PLUGIN_
CLASS_WITH_JSON
(
GDrivePropertiesPlugin
,
"gd
rive
p
roperties
p
lugin
.json"
)
GDrivePropertiesPlugin
::
GDrivePropertiesPlugin
(
QObject
*
parent
,
const
QList
<
QVariant
>
&
args
)
:
KPropertiesDialogPlugin
(
qobject_cast
<
KPropertiesDialog
*>
(
parent
))
...
...
src/integration/propertiesplugin/gdrivepropertiesplugin.desktop
deleted
100644 → 0
View file @
5f5ae8dc
[Desktop Entry]
Type=Service
Icon=folder-gdrive
Name=Google Drive Properties Page
Comment=Properties page showing additional information regarding a Google Drive item
X-KDE-Library=gdrivepropertiesplugin
X-KDE-ServiceTypes=KPropertiesDialog/Plugin
MimeType=inode/directory;application/octet-stream
src/integration/propertiesplugin/gdrivepropertiesplugin.json
0 → 100644
View file @
cac51be2
{
"KPlugin"
:
{
"Description"
:
"Properties page showing additional information regarding a Google Drive item"
,
"Icon"
:
"folder-gdrive"
,
"MimeTypes"
:
[
"inode/directory"
,
"application/octet-stream"
],
"Name"
:
"Google Drive Properties Page"
,
"ServiceTypes"
:
[
"KPropertiesDialog/Plugin"
]
},
"MimeType"
:
"inode/directory;application/octet-stream"
}
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