Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Parley
Commits
dfce083a
Commit
dfce083a
authored
Dec 11, 2020
by
Alexander Lohnau
💬
Browse files
Port KNS method
parent
482cc792
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/parleyactions.cpp
View file @
dfce083a
...
...
@@ -215,9 +215,9 @@ QAction* ParleyActions::createDownloadAction(const QObject* recvr, const char* s
QAction
*
ParleyActions
::
createUploadAction
(
const
QObject
*
recvr
,
const
char
*
slot
,
KActionCollection
*
collection
)
{
QAction
*
pAction
=
KNS3
::
standardActionUpload
(
i18n
(
"&Upload Vocabulary Document..."
),
recvr
,
slot
,
collection
,
"file_upload"
);
pA
ction
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"get-hot-new-stuff"
))
);
QAction
*
pAction
=
new
QAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"get-hot-new-stuff"
)),
i18n
(
"&Upload Vocabulary Document..."
),
collection
);
colle
ction
->
addAction
(
QStringLiteral
(
"file_upload"
),
pAction
);
QObject
::
connect
(
pAction
,
SIGNAL
(
triggered
(
bool
)),
recvr
,
slot
);
pAction
->
setToolTip
(
i18n
(
"Share the current vocabulary collection with other users"
));
return
pAction
;
}
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