1
0
Fork 0
forked from blue/squawk

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:
Blue 2021-05-06 17:44:43 +03:00
parent d514db9c4a
commit ebf0c64ffb
23 changed files with 289 additions and 51 deletions

View file

@ -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)

View file

@ -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);
});
}