mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 10:22:52 +00:00
generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
b09746db12
commit
31edff16e9
3 changed files with 5 additions and 8 deletions
|
@ -253,7 +253,7 @@ void Part::setupActions()
|
|||
m_previewAction->setText(i18nc("to preview a file inside an archive", "Pre&view"));
|
||||
m_previewAction->setIcon(KIcon( QLatin1String( "document-preview-archive" )));
|
||||
m_previewAction->setStatusTip(i18n("Click to preview the selected file"));
|
||||
m_previewAction->setShortcuts(QList<QKeySequence>() << Qt::Key_Return << Qt::Key_Space);
|
||||
m_previewAction->setShortcut(QKeySequence(Qt::Key_Return, Qt::Key_Space));
|
||||
connect(m_previewAction, SIGNAL(triggered(bool)),
|
||||
this, SLOT(slotPreviewWithInternalViewer()));
|
||||
|
||||
|
|
|
@ -462,14 +462,14 @@ struct MainWindow::Private
|
|||
action->setObjectName(KStandardAction::name(KStandardAction::Redo));
|
||||
action->setIcon(KIcon("edit-redo"));
|
||||
action->setIconText(i18n("Redo"));
|
||||
action->setShortcuts(KStandardShortcut::redo());
|
||||
action->setShortcut(KStandardShortcut::redo().primary());
|
||||
edit->addAction(action->objectName(), action);
|
||||
|
||||
action = undoGroup->createUndoAction(actionCollection);
|
||||
action->setObjectName(KStandardAction::name(KStandardAction::Undo));
|
||||
action->setIcon(KIcon("edit-undo"));
|
||||
action->setIconText(i18n("Undo"));
|
||||
action->setShortcuts(KStandardShortcut::undo());
|
||||
action->setShortcut(KStandardShortcut::undo().primary());
|
||||
edit->addAction(action->objectName(), action);
|
||||
}
|
||||
|
||||
|
|
|
@ -605,9 +605,6 @@ void Part::setupViewerActions()
|
|||
|
||||
// Find and other actions
|
||||
m_find = KStandardAction::find( this, SLOT(slotShowFindBar()), ac );
|
||||
QList<QKeySequence> s = m_find->shortcuts();
|
||||
s.append( QKeySequence( Qt::Key_Slash ) );
|
||||
m_find->setShortcuts( s );
|
||||
m_find->setEnabled( false );
|
||||
|
||||
m_findNext = KStandardAction::findNext( this, SLOT(slotFindNext()), ac);
|
||||
|
@ -693,7 +690,7 @@ void Part::setViewerShortcuts()
|
|||
KActionCollection * ac = actionCollection();
|
||||
|
||||
m_gotoPage->setShortcut( QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_G) );
|
||||
m_find->setShortcuts( QList<QKeySequence>() );
|
||||
m_find->setShortcut( QKeySequence() );
|
||||
|
||||
m_findNext->setShortcut( QKeySequence() );
|
||||
m_findPrev->setShortcut( QKeySequence() );
|
||||
|
@ -704,7 +701,7 @@ void Part::setViewerShortcuts()
|
|||
m_endOfDocument->setShortcut( QKeySequence( Qt::CTRL + Qt::ALT + Qt::Key_End ) );
|
||||
|
||||
KAction *action = static_cast<KAction*>( ac->action( "file_reload" ) );
|
||||
if( action ) action->setShortcuts( QList<QKeySequence>() << QKeySequence( Qt::ALT + Qt::Key_F5 ) );
|
||||
if( action ) action->setShortcut( QKeySequence( Qt::ALT + Qt::Key_F5 ) );
|
||||
}
|
||||
|
||||
void Part::setupActions()
|
||||
|
|
Loading…
Add table
Reference in a new issue