Tweaked player layout, increased Landscape album art size.
authordruid23 <usr@dru-id.co.uk>
Thu, 9 Sep 2010 19:56:05 +0000 (20:56 +0100)
committerdruid23 <usr@dru-id.co.uk>
Thu, 9 Sep 2010 19:56:05 +0000 (20:56 +0100)
modified:   src/playermainwindow.cpp
modified:   src/playermainwindow.ui

src/playermainwindow.cpp
src/playermainwindow.ui

index f5b5d55..8e16fcc 100644 (file)
     QPixmap* image = new QPixmap();
     if (image->loadFromData(data)) {
         mHasImage = true;
-        ui->labelArtLandscape->setPixmap(image->scaledToHeight(120, Qt::SmoothTransformation));
+        ui->labelArtLandscape->setPixmap(image->scaledToHeight(160, Qt::SmoothTransformation));
         ui->labelArtPortrait->setPixmap(image->scaledToHeight(310, Qt::SmoothTransformation));
         if (mIsLandscape) {
             ui->labelArtPortrait->setVisible(false);
   }
   void PlayerMainWindow::setCoverArtFromPixmap(QPixmap image) {
     mHasImage = true;
-    ui->labelArtLandscape->setPixmap(image.scaledToHeight(120, Qt::SmoothTransformation));
-    ui->labelArtPortrait->setPixmap(image.scaledToHeight(320, Qt::SmoothTransformation));
+    ui->labelArtLandscape->setPixmap(image.scaledToHeight(160, Qt::SmoothTransformation));
+    ui->labelArtPortrait->setPixmap(image.scaledToHeight(310, Qt::SmoothTransformation));
     if (mIsLandscape) {
         ui->labelArtPortrait->setVisible(false);
         ui->labelArtLandscape->setVisible(true);
index 09a3436..9040a49 100644 (file)
@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>790</width>
-    <height>641</height>
+    <width>786</width>
+    <height>653</height>
    </rect>
   </property>
   <property name="windowTitle">
@@ -32,6 +32,9 @@
       <property name="alignment">
        <set>Qt::AlignCenter|Qt::AlignHCenter|Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
       </property>
+      <property name="margin">
+       <number>4</number>
+      </property>
      </widget>
     </item>
     <item>
       </item>
       <item>
        <widget class="QLabel" name="labelArtLandscape">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
         <property name="minimumSize">
          <size>
-          <width>140</width>
-          <height>140</height>
+          <width>170</width>
+          <height>170</height>
          </size>
         </property>
         <property name="maximumSize">
          <size>
-          <width>140</width>
-          <height>140</height>
+          <width>170</width>
+          <height>170</height>
          </size>
         </property>
+        <property name="layoutDirection">
+         <enum>Qt::LeftToRight</enum>
+        </property>
         <property name="alignment">
-         <set>Qt::AlignCenter|Qt::AlignHCenter|Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+         <set>Qt::AlignBottom|Qt::AlignRight|Qt::AlignTrailing</set>
+        </property>
+        <property name="margin">
+         <number>4</number>
         </property>
        </widget>
       </item>
        </widget>
       </item>
       <item>
+       <widget class="QSlider" name="slider">
+        <property name="enabled">
+         <bool>true</bool>
+        </property>
+        <property name="maximum">
+         <number>100</number>
+        </property>
+        <property name="orientation">
+         <enum>Qt::Horizontal</enum>
+        </property>
+       </widget>
+      </item>
+      <item>
        <widget class="QLabel" name="durationLabel">
         <property name="styleSheet">
          <string notr="true">color: rgb(201, 201, 201);</string>
      </layout>
     </item>
     <item>
-     <widget class="QSlider" name="slider">
-      <property name="enabled">
-       <bool>true</bool>
-      </property>
-      <property name="maximum">
-       <number>100</number>
-      </property>
-      <property name="orientation">
-       <enum>Qt::Horizontal</enum>
-      </property>
-     </widget>
-    </item>
-    <item>
      <layout class="QHBoxLayout" name="horizontalLayout">
       <item>
        <widget class="QToolButton" name="previousButton">
     <rect>
      <x>0</x>
      <y>0</y>
-     <width>790</width>
+     <width>786</width>
      <height>20</height>
     </rect>
    </property>