[vlc-commits] Qt: change default sizes
Jean-Baptiste Kempf
git at videolan.org
Mon Apr 25 22:41:53 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 25 22:41:30 2011 +0200| [41d283278bc388e610a102f5c4189790ba22e8cd] | committer: Jean-Baptiste Kempf
Qt: change default sizes
Close #3340
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=41d283278bc388e610a102f5c4189790ba22e8cd
---
modules/gui/qt4/components/playlist/playlist.cpp | 2 +-
modules/gui/qt4/components/playlist/selector.cpp | 1 +
modules/gui/qt4/main_interface.cpp | 6 +++---
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp
index 3c4d95a..76ba459 100644
--- a/modules/gui/qt4/components/playlist/playlist.cpp
+++ b/modules/gui/qt4/components/playlist/playlist.cpp
@@ -90,7 +90,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
playlist_item_t *p_root = THEPL->p_playing;
PL_UNLOCK;
- setMinimumWidth( 350 );
+ setMinimumWidth( 400 );
PLModel *model = new PLModel( p_playlist, p_intf, p_root, this );
mainView = new StandardPLPanel( this, p_intf, p_root, selector, model );
diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp
index 32bf8e6..e2ed853 100644
--- a/modules/gui/qt4/components/playlist/selector.cpp
+++ b/modules/gui/qt4/components/playlist/selector.cpp
@@ -148,6 +148,7 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf )
palette.setColor( QPalette::Window, QColor(209,215,226) );
setPalette( palette );
#endif
+ setMinimumHeight( 120 );
}
PLSelector::~PLSelector()
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index bfc44b4..9148950 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -253,7 +253,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
/**** FINAL SIZING and placement of interface */
settings->beginGroup( "MainWindow" );
- QVLCTools::restoreWidgetPosition( settings, this, QSize(400, 100) );
+ QVLCTools::restoreWidgetPosition( settings, this, QSize(600, 420) );
settings->endGroup();
b_interfaceFullScreen = isFullScreen();
@@ -398,7 +398,7 @@ void MainInterface::createMainWidget( QSettings *settings )
mainLayout->insertWidget( 1, stackCentralW );
settings->beginGroup( "MainWindow" );
- stackWidgetsSizes[bgWidget] = settings->value( "bgSize", QSize( 400, 0 ) ).toSize();
+ stackWidgetsSizes[bgWidget] = settings->value( "bgSize", QSize( 600, 0 ) ).toSize();
/* Resize even if no-auto-resize, because we are at creation */
resizeStack( stackWidgetsSizes[bgWidget].width(), stackWidgetsSizes[bgWidget].height() );
@@ -739,7 +739,7 @@ void MainInterface::createPlaylist()
if( b_plDocked )
{
stackCentralW->addWidget( playlistWidget );
- stackWidgetsSizes[playlistWidget] = settings->value( "playlistSize", QSize( 500, 250 ) ).toSize();
+ stackWidgetsSizes[playlistWidget] = settings->value( "playlistSize", QSize( 600, 300 ) ).toSize();
}
else
{
More information about the vlc-commits
mailing list