[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeextragear-1/amarok/src
From:       Alexandre Pereira de Oliveira <alexnewmail-bugs () yahoo ! com ! br>
Date:       2005-03-22 23:04:01
Message-ID: 20050322230401.EF9BF3C7 () office ! kde ! org
[Download RAW message or body]

CVS commit by aoliveira: 

Trying to make the Collection part of the config dialog look better on low \
resolutions. Removed an unecessary spacer (we already have the ListView to expand) \
and made the QListView have a smaller default size (it will be expanded to fit the \
                dialog, so having a low value in sizeHint shouldn't be a problem).
CCMAIL: amarok-devel@lists.sf.net


  M +0 -17     Options7.ui   1.11
  M +1 -1      directorylist.cpp   1.27
  M +13 -1     directorylist.h   1.13


--- kdeextragear-1/amarok/src/Options7.ui  #1.10:1.11
@@ -49,21 +49,4 @@
             </vbox>
         </widget>
-        <spacer>
-            <property name="name">
-                <cstring>spacer1</cstring>
-            </property>
-            <property name="orientation">
-                <enum>Vertical</enum>
-            </property>
-            <property name="sizeType">
-                <enum>Expanding</enum>
-            </property>
-            <property name="sizeHint">
-                <size>
-                    <width>20</width>
-                    <height>196</height>
-                </size>
-            </property>
-        </spacer>
     </vbox>
 </widget>

--- kdeextragear-1/amarok/src/directorylist.cpp  #1.26:1.27
@@ -41,5 +41,5 @@ CollectionSetup::CollectionSetup( QWidge
         "media to make up your collection."), this ))->setAlignment( Qt::WordBreak \
);  
-    m_view = new QListView( this );
+    m_view = new QFixedListView( this );
     m_recursive = new QCheckBox( i18n("&Scan folders recursively"), this );
     m_monitor   = new QCheckBox( i18n("&Watch folders for changes"), this );

--- kdeextragear-1/amarok/src/directorylist.h  #1.12:1.13
@@ -30,4 +30,16 @@
 namespace Collection { class Item; }
 
+class QFixedListView : public QListView
+// Reimplement sizeHint to have directorylist not being too big for "low" (1024x768 \
is not exactly low) resolutions +{
+public:
+    QFixedListView ( QWidget * parent = 0, const char * name = 0, WFlags f = 0 )
+                   :QListView(parent, name, f) {};
+    QSize sizeHint() const
+    {
+        return QSize(400, 100);
+    }
+
+};
 
 class CollectionSetup : public QVBox
@@ -49,5 +61,5 @@ private:
     static CollectionSetup* s_instance;
 
-    QListView *m_view;
+    QFixedListView *m_view;
     QStringList m_dirs;
     QCheckBox *m_recursive;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic