blob: 349413b1a4deaff59261c0975bb2f03c0bc3e2ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "today.h"
#include <qwidget.h>
#include <qcombobox.h>
#include <oappplugin.h>
#define Q_BASEINSTANCE( i ) \
QUnknownInterface* iface = 0; \
i->queryInterface( IID_QUnknown, &iface ); \
return iface
Q_EXPORT_INTERFACE()
{
Today *t = new Today;
t->setCaption( Today::tr("Today") );
OAppPlugin *comp = new OAppPlugin(t);
Q_BASEINSTANCE( comp );
}
|