1 /***************************************************************************
4 begin : Sat June 2 16:25:27 CEST 2001
5 copyright : (C) 2001 Joseph Wenninger
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
17 #ifndef _konq_sidebar_test_h_
18 #define _konq_sidebar_test_h_
19 #include <konqsidebarplugin.h>
20 #include <QtGui/QLabel>
21 #include <QtGui/QLayout>
23 class SidebarTest
: public KonqSidebarPlugin
27 SidebarTest(const KComponentData
&componentData
,QObject
*parent
,QWidget
*widgetParent
, QString
&desktopName_
, const char* name
=0):
28 KonqSidebarPlugin(componentData
,parent
,widgetParent
,desktopName_
,name
)
30 widget
=new QLabel("Init Value",widgetParent
);
33 virtual QWidget
*getWidget(){return widget
;}
34 virtual void *provides(const QString
&) {return 0;}
37 virtual void handleURL(const KUrl
&url
)
39 widget
->setText(url
.url());