qt-light/examples/custom-widgets/main.cpp

30 lines
335 B
C++
Raw Normal View History

#include "goodbye-widgets.h"
#define gbbutton OurButton *
OurButton::OurButton(QWidget* parent)
: QPushButton(parent)
{
}
void
OurButton::SayGoodbye()
{
setText("Goodbye");
}
#define cwbutton OurButton *
extern "C" {
#include "prototypes.h"
}
void
gb_saygoodbye(cwbutton button)
{
button->SayGoodbye();
}