Fix list index out of bounds crash on loading of .pls playlists, thanks to Tim Beaule...
[amarok.git] / src / toolbar.h
blob9b553292f8a37e103fa1407fc554707e013586c8
1 /***************************************************************************
2 * copyright: Max Howell <max.howell@methylblue.com>, (C) 2004 *
3 * Dan Meltzer <hydrogen@notyetimplemented.com>, (C) 2007 *
4 ***************************************************************************/
7 /***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
16 #ifndef AMAROKTOOLBAR_H
17 #define AMAROKTOOLBAR_H
19 #include "actionclasses.h"
20 #include "enginecontroller.h"
22 #include <ktoolbar.h>
24 namespace Amarok {
26 class ToolBar : public KToolBar
28 public:
29 /**
30 * Create a Toolbar with no Border.
31 * @param parent The Main Window that
32 * this toolbar belongs to.
33 * @param name The QObject name of this toolbar
35 ToolBar( QMainWindow *parent, const char *name )
36 : KToolBar( name, parent, Qt::TopToolBarArea, true, false, false )
40 /**
41 * Create a borderless toolbar that can live anywhere.
42 * @param parent The Widget that should be the parent of this toolbar
43 * @param name The QObject name of this toolbar
45 ToolBar( QWidget *parent )
46 : KToolBar( parent, false, false )
50 protected:
51 virtual void paintEvent( QPaintEvent * )
59 #endif