#include "mainwindow.h"
#include "ui_mainwindow.h"

#include <QGraphicsBlurEffect>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    connect( ui->pushButton, SIGNAL(clicked()), this, SLOT(doClick()));
}
MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::doClick()
{
    QGraphicsBlurEffect* effect = new QGraphicsBlurEffect(this);

    ui->groupBox->setGraphicsEffect(effect);
}

void MainWindow::changeEvent(QEvent *e)
{
    QMainWindow::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        ui->retranslateUi(this);
        break;
    default:
        break;
    }
}
