Changeset View
Changeset View
Standalone View
Standalone View
src/mainwidget.cpp
Show First 20 Lines • Show All 581 Lines • ▼ Show 20 Line(s) | 511 | { | |||
---|---|---|---|---|---|
582 | // the category filter widget which is embedded in the toolbar action | 582 | // the category filter widget which is embedded in the toolbar action | ||
583 | mCategorySelectWidget = new CategorySelectWidget; | 583 | mCategorySelectWidget = new CategorySelectWidget; | ||
584 | 584 | | |||
585 | // setup the default actions | 585 | // setup the default actions | ||
586 | Akonadi::ContactDefaultActions *actions = new Akonadi::ContactDefaultActions(this); | 586 | Akonadi::ContactDefaultActions *actions = new Akonadi::ContactDefaultActions(this); | ||
587 | actions->connectToView(mContactDetails); | 587 | actions->connectToView(mContactDetails); | ||
588 | actions->connectToView(mContactGroupDetails); | 588 | actions->connectToView(mContactGroupDetails); | ||
589 | mFormatter = new KAddressBookGrantlee::GrantleeContactFormatter; | 589 | mFormatter = new KAddressBookGrantlee::GrantleeContactFormatter; | ||
590 | mFormatter->setApplicationDomain("kaddressbook"); | ||||
590 | 591 | | |||
591 | mContactDetails->setContactFormatter(mFormatter); | 592 | mContactDetails->setContactFormatter(mFormatter); | ||
592 | 593 | | |||
593 | mGroupFormatter = new KAddressBookGrantlee::GrantleeContactGroupFormatter; | 594 | mGroupFormatter = new KAddressBookGrantlee::GrantleeContactGroupFormatter; | ||
594 | 595 | | |||
595 | mContactGroupDetails->setContactGroupFormatter(mGroupFormatter); | 596 | mContactGroupDetails->setContactGroupFormatter(mGroupFormatter); | ||
596 | } | 597 | } | ||
597 | 598 | | |||
▲ Show 20 Lines • Show All 467 Lines • Show Last 20 Lines |