Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KAddressBook
Commits
cf38af54
Commit
cf38af54
authored
Sep 18, 2009
by
Tobias Koenig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the newContact() and newGroup() slot available in the part
svn path=/trunk/KDE/kdepim/kaddressbook/; revision=1025375
parent
ec228bf9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
kaddressbookpart.cpp
kaddressbookpart.cpp
+11
-1
kaddressbookpart.h
kaddressbookpart.h
+9
-0
No files found.
kaddressbookpart.cpp
View file @
cf38af54
...
...
@@ -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
()
{
}
...
...
kaddressbookpart.h
View file @
cf38af54
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment