I dont have main because it is a plasma widget
It's setup like the example you gave me
mum
::mum(QObject *parent,
const QVariantList
&args
) : Plasma::Applet(parent, args),
m_svg(this),
m_icon("document"),
m_webapp(NULL),
m_setapp(NULL)
{
m_webapp = new webapp(this);
m_setapp = new setapp();
}
void mum::settings() {
m_setapp->show();
}
void mum::web() {
m_webapp->show();
}
mum::mum(QObject *parent, const QVariantList &args)
: Plasma::Applet(parent, args),
m_svg(this),
m_icon("document"),
m_webapp(NULL),
m_setapp(NULL)
{
m_webapp = new webapp(this);
m_setapp = new setapp();
}
void mum::settings() {
m_setapp->show();
}
void mum::web() {
m_webapp->show();
}
To copy to clipboard, switch view to plain text mode
setapp works as expected
webapp gives the following error
mum.cpp: In constructor 'mum::mum(QObject*, const QVariantList&)':
mum.cpp:30: error: no matching function for call to 'webapp::webapp(mum* const)'
webapp.
h:33: note
: candidates are
: webapp
::webapp(QWidget*)
mum.cpp: In constructor 'mum::mum(QObject*, const QVariantList&)':
mum.cpp:30: error: no matching function for call to 'webapp::webapp(mum* const)'
webapp.h:33: note: candidates are: webapp::webapp(QWidget*)
To copy to clipboard, switch view to plain text mode
Bookmarks