summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2015-03-17 07:51:36 (GMT)
committerMontel Laurent <montel@kde.org>2015-03-17 07:51:36 (GMT)
commit840355dc780e58810a4c5798b3c958dbc35f3047 (patch)
tree0911799a945a4d2a1519e38087219c28f9b72c2d
parentd780d15ea9d78ea9ed3914382b844cf796af2f70 (diff)
Fix warning
-rw-r--r--ui/pageview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/pageview.cpp b/ui/pageview.cpp
index ff221c2..1608e5c 100644
--- a/ui/pageview.cpp
+++ b/ui/pageview.cpp
@@ -510,7 +510,7 @@ void PageView::setupViewerActions( KActionCollection * ac )
d->aFitWindowToPage = new QAction(QIcon::fromTheme( "zoom-fit-width" ), i18n("Fit Wi&ndow to Page"), this);
d->aFitWindowToPage->setEnabled( Okular::Settings::viewMode() == (int)Okular::Settings::EnumViewMode::Single );
- d->aFitWindowToPage->setShortcut( QKeySequence(Qt::CTRL + Qt::Key_J) );
+ ac->setDefaultShortcut(d->aFitWindowToPage, QKeySequence(Qt::CTRL + Qt::Key_J) );
ac->addAction( "fit_window_to_page", d->aFitWindowToPage );
connect( d->aFitWindowToPage, SIGNAL(triggered()), this, SLOT(slotFitWindowToPage()) );
@@ -2884,9 +2884,11 @@ void PageView::mouseReleaseEvent( QMouseEvent * e )
QMenu menu( this );
QAction *textToClipboard = menu.addAction( QIcon::fromTheme( "edit-copy" ), i18n( "Copy Text" ) );
QAction *httpLink = 0;
+#ifdef HAVE_SPEECH
QAction *speakText = 0;
if ( Okular::Settings::useTTS() )
speakText = menu.addAction( QIcon::fromTheme( "text-speak" ), i18n( "Speak Text" ) );
+#endif
if ( !d->document->isAllowed( Okular::AllowCopy ) )
{
textToClipboard->setEnabled( false );