}
PlaylistWidget::~PlaylistWidget()
-{}
-
-void PlaylistWidget::savingSettings()
{
+ getSettings()->beginGroup("playlistdialog");
getSettings()->setValue( "splitterSizes", saveState() );
+ getSettings()->endGroup();
}
view->setDropIndicatorShown( true );
view->setAutoScroll( true );
- /* Configure the size of the header */
- view->header()->resizeSection( 0, 200 );
- view->header()->resizeSection( 1, 80 );
- view->header()->setSortIndicatorShown( true );
- view->header()->setClickable( true );
- view->header()->setContextMenuPolicy( Qt::CustomContextMenu );
+#if HAS_QT43
+ if( getSettings()->contains( "headerState" ) )
+ {
+ view->header()->restoreState( getSettings()->value( "headerState" ).toByteArray() );
+ msg_Dbg( p_intf, "exists" );
+ }
+ else
+#endif
+ {
+ /* Configure the size of the header */
+ view->header()->resizeSection( 0, 200 );
+ view->header()->resizeSection( 1, 80 );
+ view->header()->setSortIndicatorShown( true );
+ view->header()->setClickable( true );
+ view->header()->setContextMenuPolicy( Qt::CustomContextMenu );
+ }
/* Connections for the TreeView */
CONNECT( view, activated( const QModelIndex& ) ,
}
StandardPLPanel::~StandardPLPanel()
-{}
+{
+#if HAS_QT43
+ getSettings()->beginGroup("playlistdialog");
+ getSettings()->setValue( "headerState", view->header()->saveState() );
+ getSettings()->endGroup();
+#endif
+}
+
+