Commit cf38af54 authored by Tobias Koenig's avatar Tobias Koenig
Browse files

Make the newContact() and newGroup() slot available in the part

svn path=/trunk/KDE/kdepim/kaddressbook/; revision=1025375
parent ec228bf9
......@@ -47,12 +47,22 @@ KAddressBookPart::KAddressBookPart( QWidget *parentWidget, QObject *parent,
setWidget( canvas );
QVBoxLayout *topLayout = new QVBoxLayout( canvas );
MainWidget *mMainWidget = new MainWidget( this, canvas );
mMainWidget = new MainWidget( this, canvas );
topLayout->addWidget( mMainWidget );
topLayout->setMargin(0);
}
void KAddressBookPart::newContact()
{
mMainWidget->newContact();
}
void KAddressBookPart::newGroup()
{
mMainWidget->newGroup();
}
KAddressBookPart::~KAddressBookPart()
{
}
......
......@@ -24,6 +24,8 @@
#include <kparts/event.h>
#include <kparts/part.h>
class MainWidget;
class KAddressBookPart: public KParts::ReadOnlyPart
{
Q_OBJECT
......@@ -32,9 +34,16 @@ class KAddressBookPart: public KParts::ReadOnlyPart
KAddressBookPart( QWidget *parentWidget, QObject *parent, const QVariantList& );
virtual ~KAddressBookPart();
public Q_SLOTS:
void newContact();
void newGroup();
protected:
virtual bool openFile();
virtual void guiActivateEvent( KParts::GUIActivateEvent* );
private:
MainWidget *mMainWidget;
};
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment