[Qt][Win] Removed question-buttons in dialog boxes

This commit is contained in:
Alex Zolotarev 2011-03-09 03:16:13 +00:00 committed by Alex Zolotarev
parent 353ea12f1e
commit 4252f1b11e
4 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@
#include <QtGui/QLabel>
AboutDialog::AboutDialog(QWidget * parent)
: QDialog(parent)
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint)
{
QIcon icon(":logo.png");
setWindowIcon(icon);

View file

@ -11,7 +11,7 @@ namespace qt
{
InfoDialog::InfoDialog(QString const & title, QString const & text, QWidget * parent,
QStringList const & buttons)
: QDialog(parent)
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint)
{
QIcon icon(":logo.png");
setWindowIcon(icon);

View file

@ -7,7 +7,7 @@
namespace qt
{
PreferencesDialog::PreferencesDialog(QWidget * parent, bool & autoUpdatesEnabled)
: QDialog(parent), m_autoUpdatesEnabled(autoUpdatesEnabled)
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint), m_autoUpdatesEnabled(autoUpdatesEnabled)
{
QIcon icon(":logo.png");
setWindowIcon(icon);

View file

@ -56,7 +56,7 @@ namespace qt
////////////////////////////////////////////////////////////////////////////////
UpdateDialog::UpdateDialog(QWidget * parent, Storage & storage)
: QDialog(parent), m_storage(storage)
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint), m_storage(storage)
{
setWindowModality(Qt::WindowModal);