2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-18 14:00:09 +00:00

Make Linux file dialog API better

This commit is contained in:
Ilya Fedin
2021-06-23 03:20:40 +04:00
committed by John Preston
parent 8b839f46b2
commit f011c84ce8
8 changed files with 38 additions and 54 deletions

View File

@@ -13,16 +13,13 @@ namespace Platform {
namespace FileDialog {
namespace Gtk {
using Type = ::FileDialog::internal::Type;
bool Use(Type type = Type::ReadFile);
bool Get(
std::optional<bool> Get(
QPointer<QWidget> parent,
QStringList &files,
QByteArray &remoteContent,
const QString &caption,
const QString &filter,
Type type,
::FileDialog::internal::Type type,
QString startFile);
} // namespace Gtk