Changeset View
Changeset View
Standalone View
Standalone View
src/Gui/ExportMenu.cpp
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | 83 | { | |||
---|---|---|---|---|---|
99 | 99 | | |||
100 | // now let the user manually chose an application to open the | 100 | // now let the user manually chose an application to open the | ||
101 | // image with | 101 | // image with | ||
102 | 102 | | |||
103 | addSeparator(); | 103 | addSeparator(); | ||
104 | 104 | | |||
105 | QAction *openWith = new QAction(this); | 105 | QAction *openWith = new QAction(this); | ||
106 | openWith->setText(i18n("Other Application")); | 106 | openWith->setText(i18n("Other Application")); | ||
107 | openWith->setIcon(QIcon::fromTheme(QStringLiteral("application-x-executable"))); | 107 | openWith->setIcon(QIcon::fromTheme(QStringLiteral("document-share"))); | ||
108 | openWith->setShortcuts(KStandardShortcut::open()); | 108 | openWith->setShortcuts(KStandardShortcut::open()); | ||
109 | 109 | | |||
110 | connect(openWith, &QAction::triggered, [=]() { | 110 | connect(openWith, &QAction::triggered, [=]() { | ||
111 | QList<QUrl> whereIs({ mExportManager->tempSave() }); | 111 | QList<QUrl> whereIs({ mExportManager->tempSave() }); | ||
112 | KRun::displayOpenWithDialog(whereIs, parentWidget(), true); | 112 | KRun::displayOpenWithDialog(whereIs, parentWidget(), true); | ||
113 | }); | 113 | }); | ||
114 | addAction(openWith); | 114 | addAction(openWith); | ||
115 | } | 115 | } | ||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |