[vlc-devel] commit: Qt: try to fix the arrow on the open dialog. (Jean-Baptiste Kempf )

git version control git at videolan.org
Mon Feb 23 00:59:02 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Feb 23 00:57:15 2009 +0100| [955947a8b1b7c0da9d2273b9e1b73919fccb7a8d] | committer: Jean-Baptiste Kempf 

Qt: try to fix the arrow on the open dialog.

Close #2508/

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=955947a8b1b7c0da9d2273b9e1b73919fccb7a8d
---

 modules/gui/qt4/dialogs/open.cpp |    1 +
 modules/gui/qt4/ui/open.ui       |   13 ++++++++-----
 modules/gui/qt4/ui/open_disk.ui  |    7 +------
 3 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp
index 003700a..e8db45e 100644
--- a/modules/gui/qt4/dialogs/open.cpp
+++ b/modules/gui/qt4/dialogs/open.cpp
@@ -127,6 +127,7 @@ OpenDialog::OpenDialog( QWidget *parent,
                                     QKeySequence( "Alt+C" ) );
 
     ui.menuButton->setMenu( openButtonMenu );
+    ui.menuButton->setIcon( QIcon( ":/down_arrow" ) );
 
     /* Add the three Buttons */
     ui.buttonsBox->addButton( selectButton, QDialogButtonBox::AcceptRole );
diff --git a/modules/gui/qt4/ui/open.ui b/modules/gui/qt4/ui/open.ui
index fd596ae..32c9565 100644
--- a/modules/gui/qt4/ui/open.ui
+++ b/modules/gui/qt4/ui/open.ui
@@ -207,7 +207,7 @@
     </spacer>
    </item>
    <item row="3" column="1" >
-    <widget class="QPushButton" name="menuButton" >
+    <widget class="QToolButton" name="menuButton" >
      <property name="sizePolicy" >
       <sizepolicy vsizetype="Minimum" hsizetype="Fixed" >
        <horstretch>0</horstretch>
@@ -216,19 +216,22 @@
      </property>
      <property name="maximumSize" >
       <size>
-       <width>20</width>
+       <width>16</width>
        <height>16777215</height>
       </size>
      </property>
      <property name="focusPolicy" >
       <enum>Qt::ClickFocus</enum>
      </property>
-     <property name="contextMenuPolicy" >
-      <enum>Qt::NoContextMenu</enum>
-     </property>
      <property name="toolTip" >
       <string>_("Select play mode")</string>
      </property>
+     <property name="popupMode" >
+      <enum>QToolButton::InstantPopup</enum>
+     </property>
+     <property name="arrowType" >
+      <enum>Qt::NoArrow</enum>
+     </property>
     </widget>
    </item>
    <item row="3" column="2" >
diff --git a/modules/gui/qt4/ui/open_disk.ui b/modules/gui/qt4/ui/open_disk.ui
index b313a08..ac42eaf 100644
--- a/modules/gui/qt4/ui/open_disk.ui
+++ b/modules/gui/qt4/ui/open_disk.ui
@@ -7,7 +7,7 @@
     <x>0</x>
     <y>0</y>
     <width>500</width>
-    <height>311</height>
+    <height>319</height>
    </rect>
   </property>
   <property name="minimumSize" >
@@ -351,11 +351,6 @@
        </widget>
       </item>
      </layout>
-     <zorder>subtitlesLabel</zorder>
-     <zorder>subtitlesSpin</zorder>
-     <zorder>audioLabel</zorder>
-     <zorder>audioSpin</zorder>
-     <zorder>diskGroupBox</zorder>
     </widget>
    </item>
    <item>




More information about the vlc-devel mailing list