]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/extended.cpp
Qt4 - renaming functions cosmetic and KDE/GNome/Windows button fight.
[vlc] / modules / gui / qt4 / dialogs / extended.cpp
index c38186614ca11153e58865e3c51bb6ce39b0c400..1ac6185a23599f149c8b195e5d9eaf1a3f5b4920 100644 (file)
@@ -5,6 +5,7 @@
  * $Id$
  *
  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
+ *          Jean-Baptiste Kempf <jb@videolan.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -34,7 +35,6 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
 {
     setWindowFlags( Qt::Tool );
     setWindowOpacity( config_GetFloat( p_intf, "qt-opacity" ) );
-
     setWindowTitle( qtr( "Adjustments and Effects" ) );
 
     QGridLayout *layout = new QGridLayout( this );
@@ -42,7 +42,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
     QTabWidget *mainTab = new QTabWidget( this );
     mainTab->setTabPosition( QTabWidget::West );
 
-    QWidget *audioWidget = new QWidget( this );
+    QWidget *audioWidget = new QWidget;
     QHBoxLayout *audioLayout = new QHBoxLayout( audioWidget );
     QTabWidget *audioTab = new QTabWidget( mainTab );
 
@@ -63,9 +63,15 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
     QPushButton *closeButton = new QPushButton( qtr( "Close" ) );
     layout->addWidget( closeButton, 1, 4, 1, 1);
     CONNECT( closeButton, clicked(), this, close() );
+
+    readSettings( "EPanel", QSize( 400, 300 ), QPoint( 450, 0 ) );
 }
 
-ExtendedDialog::~ExtendedDialog()
+void ExtendedDialog::savingSettings()
 {
+    writeSettings( "EPanel" );
 }
 
+ExtendedDialog::~ExtendedDialog()
+{}
+