akonadi
Akonadi Macros
Defines | |
#define | AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY(factoryName, className) |
Define Documentation
#define AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY | ( | factoryName, | |||
className | ) |
Value:
class factoryName: public CollectionPropertiesPageFactory \ { \ public: \ inline CollectionPropertiesPage* createWidget( QWidget *parent = 0 ) const \ { \ return new className( parent ); \ } \ };
class MyPage : public Akonadi::CollectionPropertiesPage { ... } AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY( MyPageFactory, MyPage )
The macro takes two arguments, where the first one is the name of the factory class that shall be created and the second arguments is the name of the custom collection properties page class.
Definition at line 207 of file collectionpropertiespage.h.