mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Get rid of last non-standard piece in Linux FileDialog getter
This commit is contained in:
parent
90fb59348c
commit
70f22293cf
2 changed files with 18 additions and 25 deletions
|
@ -17,29 +17,4 @@ bool UnsafeShowOpenWith(const QString &filepath) {
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace File
|
} // 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
|
} // namespace Platform
|
||||||
|
|
|
@ -43,5 +43,23 @@ inline void InitLastPath() {
|
||||||
::FileDialog::internal::InitLastPathDefault();
|
::FileDialog::internal::InitLastPathDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline bool Get(
|
||||||
|
QPointer<QWidget> parent,
|
||||||
|
QStringList &files,
|
||||||
|
QByteArray &remoteContent,
|
||||||
|
const QString &caption,
|
||||||
|
const QString &filter,
|
||||||
|
::FileDialog::internal::Type type,
|
||||||
|
QString startFile) {
|
||||||
|
return ::FileDialog::internal::GetDefault(
|
||||||
|
parent,
|
||||||
|
files,
|
||||||
|
remoteContent,
|
||||||
|
caption,
|
||||||
|
filter,
|
||||||
|
type,
|
||||||
|
startFile);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace FileDialog
|
} // namespace FileDialog
|
||||||
} // namespace Platform
|
} // namespace Platform
|
||||||
|
|
Loading…
Add table
Reference in a new issue