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; QList<QMediaContent> content;
QDir directory(this->musicfolder + "/" + this->albumfolder); 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) { foreach (QString filename, mp3s) {
// add to mediacontent // add to mediacontent
content.push_back(QMediaContent(QUrl::fromLocalFile(this->musicfolder + "/" + this->albumfolder + "/" + filename))); content.push_back(QMediaContent(QUrl::fromLocalFile(this->musicfolder + "/" + this->albumfolder + "/" + filename)));

View File

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

View File

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