Commit aa42d3e0 authored by Laurent Montel's avatar Laurent Montel 😁

Use directly setMimeTypeFilters

parent be34c67d
......@@ -61,6 +61,7 @@ AlarmDialog::AlarmDialog(KCalCore::Incidence::IncidenceType incidenceType, QWidg
}
mUi->mOffsetUnit->setCurrentIndex(defaultReminderUnits);
mUi->mSoundFile->setMimeTypeFilters({QStringLiteral("audio/x-wav"), QStringLiteral("audio/x-mp3"), QStringLiteral("application/ogg")});
if (IncidenceEditorNG::EditorConfig::instance()->defaultAudioFileReminders()) {
mUi->mSoundFile->setUrl(IncidenceEditorNG::EditorConfig::instance()->audioFilePath());
......
......@@ -318,9 +318,6 @@
<property name="whatsThis">
<string>Use the adjacent file browser to help you find the file you want to use when playing a sound when the reminder triggers.</string>
</property>
<property name="filter">
<string>audio/x-wav audio/x-mp3 application/ogg</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
......@@ -487,16 +484,6 @@ default email configured in Kmail (Settings menu/Configure Kmail/Identities).</s
<extends>KLineEdit</extends>
<header>LibkdepimAkonadi/AddresseeLineEdit</header>
</customwidget>
<customwidget>
<class>KTextEdit</class>
<extends>QTextEdit</extends>
<header>ktextedit.h</header>
</customwidget>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<extends>QLineEdit</extends>
......@@ -506,6 +493,17 @@ default email configured in Kmail (Settings menu/Configure Kmail/Identities).</s
<class>KUrlRequester</class>
<extends>QWidget</extends>
<header>kurlrequester.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>KTextEdit</class>
<extends>QTextEdit</extends>
<header>ktextedit.h</header>
</customwidget>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
</customwidgets>
<includes>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment