#include <QtGui>
#include <QPicture>
#include "troll.h"
TrollFace::TrollFace(QWidget *parent) : QWidget(parent)
{
QPushButton *problemButton = new QPushButton(
QApplication::translate("problemButton", "Problem, officer?"));
problemButton->show();
connect(problemButton, SIGNAL(clicked()), this, SLOT(Troll()));
QPicture *image = new QPicture;
image->load(":/img/troll.png");
QLabel *trollImage = new QLabel("Troll");
trollImage->setPicture(*image);
trollImage->hide();
}
void TrollFace::Troll()
{
problemButton->hide();
trollImage->show();
}