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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user