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
Unmaintained
KDE Pim
Commits
3f35e0bb
Commit
3f35e0bb
authored
Nov 26, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use KPrintPreview::isAvailable
parent
a959629f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
korganizer/koeventpopupmenu.cpp
korganizer/koeventpopupmenu.cpp
+6
-6
No files found.
korganizer/koeventpopupmenu.cpp
View file @
3f35e0bb
...
...
@@ -37,7 +37,7 @@
#include <KActionCollection>
#include <KMimeTypeTrader>
#include <KPrintPreview>
KOEventPopupMenu
::
KOEventPopupMenu
(
Akonadi
::
ETMCalendar
*
calendar
,
QWidget
*
parent
)
:
QMenu
(
parent
),
mCalendar
(
calendar
)
{
...
...
@@ -51,11 +51,11 @@ KOEventPopupMenu::KOEventPopupMenu( Akonadi::ETMCalendar * calendar, QWidget *pa
mEditOnlyItems
.
append
(
addSeparator
()
);
addAction
(
KOGlobals
::
self
()
->
smallIcon
(
QLatin1String
(
"document-print"
)
),
i18n
(
"&Print..."
),
this
,
SLOT
(
print
())
);
QAction
*
preview
=
addAction
(
KOGlobals
::
self
()
->
smallIcon
(
QLatin1String
(
"document-print-preview"
)
),
i18n
(
"P
rint
P
revie
&w..."
),
this
,
SLOT
(
p
rintPrevie
w
())
)
;
preview
->
setEnabled
(
!
KMimeTypeTrader
::
self
()
->
query
(
QLatin1String
(
"application/pdf"
),
QLatin1String
(
"KParts/ReadOnlyPart"
)
).
isEmpty
()
);
if
(
KPrintPreview
::
isAvailable
())
{
addAction
(
KOGlobals
::
self
()
->
smallIcon
(
QLatin1String
(
"document-p
rint
-p
revie
w"
)
),
i18n
(
"P
rint
Previe
&w..."
)
,
this
,
SLOT
(
printPreview
())
);
}
//------------------------------------------------------------------------
mEditOnlyItems
.
append
(
addSeparator
()
);
mEditOnlyItems
.
append
(
addAction
(
KOGlobals
::
self
()
->
smallIcon
(
QLatin1String
(
"edit-cut"
)
),
...
...
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