mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-05-01 05:23:57 +02:00
45 lines
958 B
C++
45 lines
958 B
C++
/*
|
|
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 {
|
|
|
|
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,
|
|
::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
|