mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
GProgressDialog Mac QT 5.3.1 fixups
.. being more careful with modality and mainwindow
This commit is contained in:
@@ -18,16 +18,16 @@
|
||||
|
||||
#include "GProgressDialog.h"
|
||||
|
||||
GProgressDialog::GProgressDialog(QString title, int min, int max, QWidget *parent) :
|
||||
GProgressDialog::GProgressDialog(QString title, int min, int max, bool modal, QWidget *parent) :
|
||||
|
||||
// sheet on mac and no window manager chrome
|
||||
QDialog(parent, Qt::Sheet | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint),
|
||||
QDialog(modal ? parent : NULL, Qt::Sheet | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint),
|
||||
|
||||
// defaults
|
||||
title(title), min(min), max(max)
|
||||
{
|
||||
// only block mainwindow
|
||||
setWindowModality(Qt::WindowModal); // only block mainwindow
|
||||
if (modal) setWindowModality(Qt::WindowModal); // only block mainwindow
|
||||
|
||||
// zap me when closed and make me see through
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
||||
Reference in New Issue
Block a user