1 /***************************************************************************
2 * copyright : (C) 2007 Ian Monroe <ian@monroe.nu> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License version 2 *
6 * as published by the Free Software Foundation. *
7 ***************************************************************************/
9 #include "PlaylistGraphicsView.h"
10 #include "PlaylistHeader.h"
11 #include "PlaylistModel.h"
12 //#include "PlaylistView.h"
13 #include "PlaylistWidget.h"
14 #include "TheInstances.h"
16 #include <QHBoxLayout>
18 using namespace PlaylistNS
;
20 Widget::Widget( QWidget
* parent
)
23 QVBoxLayout
* layout
= new QVBoxLayout( this );
24 layout
->setContentsMargins(0,0,0,0);
26 PlaylistNS::HeaderWidget
* header
= new PlaylistNS::HeaderWidget( this );
28 PlaylistNS::Model
* playmodel
= The::playlistModel();
30 playmodel
->testData();
31 // PlaylistNS::View* playView = new PlaylistNS::View( this );
32 // playView->setModel( playmodel );
33 PlaylistNS::GraphicsView
* playView
= new PlaylistNS::GraphicsView( this, playmodel
);
34 layout
->setSpacing( 0 );
35 layout
->addWidget( header
);
36 layout
->addWidget( playView
);
39 #include "PlaylistWidget.moc"