You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
753 B
35 lines
753 B
15 years ago
|
|
||
|
#include <qlabel.h>
|
||
|
#include <kinstance.h>
|
||
|
#include <qstring.h>
|
||
|
#include <qwidget.h>
|
||
|
|
||
|
#include "%{APPNAMELC}.h"
|
||
|
#include "%{APPNAMELC}.moc"
|
||
|
|
||
|
%{APPNAME}::%{APPNAME}(KInstance *inst,QObject *parent,QWidget *widgetParent, QString &desktopName, const char* name):
|
||
|
KonqSidebarPlugin(inst,parent,widgetParent,desktopName,name)
|
||
|
{
|
||
|
widget=new QLabel("Init Value",widgetParent);
|
||
|
}
|
||
|
|
||
|
|
||
|
%{APPNAME}::~%{APPNAME}()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void %{APPNAME}::handleURL(const KURL &url)
|
||
|
{
|
||
|
widget->setText(QString("%{APPNAME}")+"::"+url.url());
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
extern "C"
|
||
|
{
|
||
|
void* create_konqsidebar_%{APPNAME}(KInstance *instance,QObject *par,QWidget *widp,QString &desktopname,const char *name)
|
||
|
{
|
||
|
return new %{APPNAME}(instance,par,widp,desktopname,name);
|
||
|
}
|
||
|
};
|