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

Add option to choose file dialog

This commit is contained in:
Ilya Fedin
2021-03-31 12:34:17 +04:00
parent a618181120
commit ecb10dca8a
14 changed files with 101 additions and 6 deletions

View File

@@ -159,6 +159,19 @@ bool GetQt(
}
QString ImplementationTypeLabel(ImplementationType value) {
switch (value) {
#ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION
case ImplementationType::XDP: return qsl("XDG Desktop Portal");
#endif // !DESKTOP_APP_DISABLE_DBUS_INTEGRATION
#ifndef DESKTOP_APP_DISABLE_GTK_INTEGRATION
case ImplementationType::GTK: return qsl("GTK");
#endif // !DESKTOP_APP_DISABLE_GTK_INTEGRATION
case ImplementationType::Qt: return qsl("Qt");
}
Unexpected("Value in Platform::FileDialog::ImplementationTypeLabel.");
}
bool Get(
QPointer<QWidget> parent,
QStringList &files,