aboutsummaryrefslogblamecommitdiff
path: root/qmpsettingswindow.cpp
blob: d27547d4fdec4fb91663bba757a79cfbd9500e7f (plain) (tree)
































                                                                          
#include "qmpsettingswindow.hpp"
#include "ui_qmpsettingswindow.h"
#include "qmpmainwindow.hpp"

qmpSettingsWindow::qmpSettingsWindow(QWidget *parent) :
	QDialog(parent),
	ui(new Ui::qmpSettingsWindow)
{
	ui->setupUi(this);
	connect(this,SIGNAL(dialogClosing()),parent,SLOT(dialogClosed()));
}

qmpSettingsWindow::~qmpSettingsWindow()
{
	delete ui;
}

void qmpSettingsWindow::closeEvent(QCloseEvent *event)
{
	setVisible(false);
	emit dialogClosing();
	event->accept();
}

void qmpSettingsWindow::on_buttonBox_accepted()
{
	emit dialogClosing();
}

void qmpSettingsWindow::on_buttonBox_rejected()
{
	emit dialogClosing();
}