Extend supported filetypes / resize controls

This commit is contained in:
hawkeyexp 2018-09-23 15:18:20 +02:00
parent be2fb2ccb3
commit 90ccf5b55a
3 changed files with 202 additions and 20 deletions

View File

@ -1379,7 +1379,7 @@ void f1x::openauto::autoapp::ui::MainWindow::scanFiles()
QList<QMediaContent> content;
QDir directory(this->musicfolder + "/" + this->albumfolder);
QStringList mp3s = directory.entryList(QStringList() << "*.mp3",QDir::Files, QDir::Name);
QStringList mp3s = directory.entryList(QStringList() << "*.mp3" << "*.flac" << "*.aac" << "*.ogg",QDir::Files, QDir::Name);
foreach (QString filename, mp3s) {
// add to mediacontent
content.push_back(QMediaContent(QUrl::fromLocalFile(this->musicfolder + "/" + this->albumfolder + "/" + filename)));

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>956</width>
<height>1295</height>
<width>907</width>
<height>1291</height>
</rect>
</property>
<property name="sizePolicy">
@ -30,6 +30,9 @@
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(255, 255, 255);</string>
</property>
<widget class="QWidget" name="centralWidget">
<property name="enabled">
<bool>true</bool>
@ -1950,8 +1953,16 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(186, 189, 182);
color: rgb(0, 0, 0);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
@ -1980,8 +1991,16 @@ outline: none;</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(186, 189, 182);
color: rgb(0, 0, 0);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
@ -2010,8 +2029,16 @@ outline: none;</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(186, 189, 182);
color: rgb(0, 0, 0);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
@ -2040,8 +2067,16 @@ outline: none;</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(186, 189, 182);
color: rgb(0, 0, 0);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
@ -2135,7 +2170,9 @@ background-color: rgba(0, 0, 0, 0);
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(0, 0, 0, 0.5);</string>
<string notr="true">background-color: rgba(0, 0, 0, 0.5);
color: rgb(255, 255, 255);
heigth: 45px;</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<property name="spacing">
@ -2234,18 +2271,24 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
<height>45</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>30</height>
<height>45</height>
</size>
</property>
<property name="baseSize">
<size>
<width>0</width>
<height>45</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<pointsize>14</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
@ -2254,21 +2297,73 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<enum>Qt::DefaultContextMenu</enum>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(117, 80, 123, 0.9);
color: rgb(255, 255, 255);
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
<string notr="true">QComboBox {
background-color: rgba(117, 80, 123, 0.9);
color: rgb(255, 255, 255);
border: 2px solid rgba(255,255,255,0.5);
outline: none;
height: 40px;
}
QComboBox::drop-down {
width: 40px;
color: rgb(255, 255, 255);
}
QScrollBar {
width: 40px;
background-color: rgba(117, 80, 123, 0.9);
}
</string>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContents</enum>
</property>
<property name="frame">
<bool>true</bool>
</property>
<item>
<property name="text">
<string>Neues Element</string>
</property>
</item>
<item>
<property name="text">
<string>Neues Element</string>
</property>
</item>
<item>
<property name="text">
<string>Neues Element</string>
</property>
</item>
<item>
<property name="text">
<string>Neues Element</string>
</property>
</item>
<item>
<property name="text">
<string>Neues Element</string>
</property>
</item>
<item>
<property name="text">
<string>Neues Element</string>
</property>
</item>
<item>
<property name="text">
<string>Neues Element</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QListWidget" name="mp3List">
<property name="font">
<font>
<pointsize>12</pointsize>
<pointsize>14</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
@ -2276,12 +2371,21 @@ outline: none;</string>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 87, 83, 0.7);
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}
QWidget {
background-color: rgba(85, 87, 83, 0.7);
color: rgb(255, 255, 255);
border: 2px solid rgba(255,255,255,0.5);
outline: none;
</string>
}</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
@ -2293,7 +2397,7 @@ outline: none;
<enum>Qt::ScrollBarAsNeeded</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustIgnored</enum>
<enum>QAbstractScrollArea::AdjustToContents</enum>
</property>
<property name="autoScrollMargin">
<number>16</number>
@ -2311,7 +2415,7 @@ outline: none;
<bool>false</bool>
</property>
<property name="resizeMode">
<enum>QListView::Adjust</enum>
<enum>QListView::Fixed</enum>
</property>
<property name="layoutMode">
<enum>QListView::SinglePass</enum>
@ -2319,15 +2423,12 @@ outline: none;
<property name="gridSize">
<size>
<width>0</width>
<height>30</height>
<height>40</height>
</size>
</property>
<property name="viewMode">
<enum>QListView::ListMode</enum>
</property>
<property name="sortingEnabled">
<bool>false</bool>
</property>
</widget>
</item>
</layout>

View File

@ -534,6 +534,12 @@ outline: none;</string>
<height>24</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}</string>
</property>
</widget>
</item>
</layout>
@ -1510,6 +1516,12 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}</string>
</property>
</widget>
</item>
<item row="1" column="0">
@ -1527,6 +1539,12 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}</string>
</property>
</widget>
</item>
</layout>
@ -3508,6 +3526,12 @@ subcontrol-position: center left;
<height>30</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}</string>
</property>
<property name="currentText">
<string>- - -</string>
</property>
@ -3691,6 +3715,12 @@ subcontrol-position: center left;
<height>30</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}</string>
</property>
<item>
<property name="text">
<string>- - -</string>
@ -3865,6 +3895,12 @@ subcontrol-position: center left;
<height>30</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}</string>
</property>
<item>
<property name="text">
<string>- - -</string>
@ -4083,6 +4119,12 @@ subcontrol-position: center left;
<height>30</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}</string>
</property>
<item>
<property name="text">
<string>- - -</string>
@ -4257,6 +4299,12 @@ subcontrol-position: center left;
<height>30</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}</string>
</property>
<item>
<property name="text">
<string>- - -</string>
@ -4493,6 +4541,9 @@ subcontrol-position: center left;
<height>30</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>- - -</string>
@ -5115,6 +5166,12 @@ outline: none;</string>
<height>30</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}</string>
</property>
<item>
<property name="text">
<string>Custom</string>
@ -5220,6 +5277,12 @@ outline: none;</string>
<height>30</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}</string>
</property>
<item>
<property name="text">
<string>none</string>
@ -5305,6 +5368,12 @@ outline: none;</string>
<height>30</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}</string>
</property>
</widget>
</item>
<item row="3" column="0">
@ -5340,6 +5409,12 @@ outline: none;</string>
<height>30</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}</string>
</property>
<item>
<property name="text">
<string>none</string>
@ -5385,6 +5460,12 @@ outline: none;</string>
<height>30</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}</string>
</property>
<item>
<property name="text">
<string>none</string>