Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kdiroperator.cpp
Show First 20 Lines • Show All 1975 Lines • ▼ Show 20 Line(s) | 1857 | { | |||
---|---|---|---|---|---|
1976 | connect(showHiddenAction, SIGNAL(toggled(bool)), SLOT(_k_slotToggleHidden(bool))); | 1976 | connect(showHiddenAction, SIGNAL(toggled(bool)), SLOT(_k_slotToggleHidden(bool))); | ||
1977 | 1977 | | |||
1978 | KToggleAction *previewAction = new KToggleAction(i18n("Show Aside Preview"), this); | 1978 | KToggleAction *previewAction = new KToggleAction(i18n("Show Aside Preview"), this); | ||
1979 | d->actionCollection->addAction(QStringLiteral("preview"), previewAction); | 1979 | d->actionCollection->addAction(QStringLiteral("preview"), previewAction); | ||
1980 | previewAction->setShortcut(Qt::Key_F11); | 1980 | previewAction->setShortcut(Qt::Key_F11); | ||
1981 | connect(previewAction, SIGNAL(toggled(bool)), | 1981 | connect(previewAction, SIGNAL(toggled(bool)), | ||
1982 | SLOT(_k_togglePreview(bool))); | 1982 | SLOT(_k_togglePreview(bool))); | ||
1983 | 1983 | | |||
1984 | KToggleAction *inlinePreview = new KToggleAction(QIcon::fromTheme(QStringLiteral("view-preview")), | 1984 | KToggleAction *inlinePreview = new KToggleAction(i18n("Show Preview"), this); | ||
1985 | i18n("Show Preview"), this); | | |||
1986 | d->actionCollection->addAction(QStringLiteral("inline preview"), inlinePreview); | 1985 | d->actionCollection->addAction(QStringLiteral("inline preview"), inlinePreview); | ||
1987 | inlinePreview->setShortcut(Qt::Key_F12); | 1986 | inlinePreview->setShortcut(Qt::Key_F12); | ||
1988 | connect(inlinePreview, SIGNAL(toggled(bool)), SLOT(_k_toggleInlinePreviews(bool))); | 1987 | connect(inlinePreview, SIGNAL(toggled(bool)), SLOT(_k_toggleInlinePreviews(bool))); | ||
1989 | 1988 | | |||
1990 | QAction *fileManager = new QAction(i18n("Open Containing Folder"), this); | 1989 | QAction *fileManager = new QAction(i18n("Open Containing Folder"), this); | ||
1991 | d->actionCollection->addAction(QStringLiteral("file manager"), fileManager); | 1990 | d->actionCollection->addAction(QStringLiteral("file manager"), fileManager); | ||
1992 | fileManager->setIcon(QIcon::fromTheme(QStringLiteral("system-file-manager"))); | 1991 | fileManager->setIcon(QIcon::fromTheme(QStringLiteral("system-file-manager"))); | ||
1993 | connect(fileManager, SIGNAL(triggered()), SLOT(_k_slotOpenFileManager())); | 1992 | connect(fileManager, SIGNAL(triggered()), SLOT(_k_slotOpenFileManager())); | ||
▲ Show 20 Lines • Show All 730 Lines • Show Last 20 Lines |