2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-24 19:27:17 +00:00
tdesktop/Telegram/SourceFiles/platform/linux/file_utilities_linux.cpp

46 lines
958 B
C++
Raw Normal View History

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "platform/linux/file_utilities_linux.h"
#include "platform/linux/linux_xdp_open_with_dialog.h"
namespace Platform {
namespace File {
2020-11-08 01:28:24 +04:00
bool UnsafeShowOpenWith(const QString &filepath) {
return internal::ShowXDPOpenWithDialog(filepath);
}
} // namespace File
namespace FileDialog {
bool Get(
QPointer<QWidget> parent,
QStringList &files,
QByteArray &remoteContent,
const QString &caption,
const QString &filter,
2021-01-10 07:51:38 +04:00
::FileDialog::internal::Type type,
QString startFile) {
if (parent) {
parent = parent->window();
}
return ::FileDialog::internal::GetDefault(
parent,
files,
remoteContent,
caption,
filter,
type,
startFile);
}
} // namespace FileDialog
} // namespace Platform