highlight in directory now is optional runtime plugin to KIO, several more file managers to fallback, refactor, 2 new icons
This commit is contained in:
parent
d514db9c4a
commit
ebf0c64ffb
23 changed files with 289 additions and 51 deletions
|
@ -21,7 +21,7 @@ set(squawkWidgets_SRC
|
|||
joinconference.cpp
|
||||
)
|
||||
|
||||
add_library(squawkWidgets ${squawkWidgets_SRC})
|
||||
add_library(squawkWidgets STATIC ${squawkWidgets_SRC})
|
||||
|
||||
# Use the Widgets module from Qt 5.
|
||||
target_link_libraries(squawkWidgets vCardUI)
|
||||
|
|
|
@ -417,14 +417,14 @@ void Conversation::onFeedContext(const QPoint& pos)
|
|||
QString path = item->getAttachPath();
|
||||
if (path.size() > 0) {
|
||||
showMenu = true;
|
||||
QAction* open = contextMenu->addAction(Shared::icon("document-new-from-template"), tr("Open"));
|
||||
QAction* open = contextMenu->addAction(Shared::icon("document-preview"), tr("Open"));
|
||||
connect(open, &QAction::triggered, [path]() {
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(path));
|
||||
});
|
||||
|
||||
QAction* show = contextMenu->addAction(Shared::icon("document-new-from-template"), tr("Show in folder"));
|
||||
QAction* show = contextMenu->addAction(Shared::icon("folder"), tr("Show in folder"));
|
||||
connect(show, &QAction::triggered, [path]() {
|
||||
Shared::showInDirectory(path);
|
||||
Shared::Global::highlightInFileManager(path);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue