Make playlist items use the full width available to them and adjust correctly when...
[amarok.git] / src / playlist / PlaylistHeader.h
blob51bc5a3bf25291d1200eae80e8f02d859e279a6d
1 /***************************************************************************
2 * copyright : (C) 2007 Ian Monroe <ian@monroe.nu> *
3 * *
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 #ifndef AMAROK_PLAYLISTHEADER_H
10 #define AMAROK_PLAYLISTHEADER_H
12 #include <QMap>
13 #include <QStringList>
14 #include <QWidget>
16 class QHBoxLayout;
17 class QVBoxLayout;
18 class QLabel;
20 namespace PlaylistNS
22 class HeaderWidget : public QWidget
24 Q_OBJECT
25 static const QString HeaderMimeType;
26 public:
27 HeaderWidget( QWidget* parent );
28 protected:
29 void enterEvent( QEvent* event );
30 void leaveEvent( QEvent* event );
31 void dragEnterEvent(QDragEnterEvent *event);
32 void dropEvent( QDropEvent *event);
33 void mousePressEvent(QMouseEvent *event);
35 private:
36 QHBoxLayout* m_topLayout;
38 QList<QVBoxLayout*> m_verticalLayouts;
39 QList<QLabel*> m_labels;
40 QMap<QString, QLabel*> m_textToLabel;
41 QStringList m_test;
44 #endif