Definition of the QPanel class.
More...
#include "qce-config.h"
#include <QHash>
#include <QWidget>
#include <QPointer>
Go to the source code of this file.
Macros |
#define | Q_PANEL(T, SID) |
#define | Q_PANEL_ID(T) T::Creator::instance()->id() \ |
#define | Q_CREATE_PANEL(T) QPanel::panel(Q_PANEL_ID(T)) \ |
Detailed Description
Definition of the QPanel class.
- See also:
- QPanel
Macro Definition Documentation
#define Q_PANEL |
( |
|
T, |
|
|
|
SID |
|
) |
| |
Value:public: \
{ \
public: \
virtual QString id() const \
{ \
return SID; \
} \
\
{ \
return new T(p); \
} \
\
{ \
static Creator global; \
return &global; \
} \
\
Creator() {} \
virtual ~Creator() {} \
}; \
\
QString id() const { return SID; } \
\
static void _register() \
{ \
QPanel::registerCreator(Creator::instance()); \
} \