Amelioration de l'integration de certains dialogues sous MacOS.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@730 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2009-08-09 16:43:03 +00:00
parent 7c29c7a528
commit d14b99937d
5 changed files with 44 additions and 16 deletions

View File

@@ -750,6 +750,9 @@ void ElementScene::slot_editSizeHotSpot() {
// cree un dialogue
QDialog dialog_sh(element_editor);
dialog_sh.setModal(true);
#ifdef Q_WS_MAC
dialog_sh.setWindowFlags(Qt::Sheet);
#endif
dialog_sh.setWindowTitle(tr("\311diter la taille et le point de saisie", "window title"));
QVBoxLayout *dialog_layout = new QVBoxLayout(&dialog_sh);
@@ -789,6 +792,9 @@ void ElementScene::slot_editOrientations() {
// cree un dialogue
QDialog dialog_ori(element_editor);
dialog_ori.setModal(true);
#ifdef Q_WS_MAC
dialog_ori.setWindowFlags(Qt::Sheet);
#endif
dialog_ori.setMinimumSize(400, 260);
dialog_ori.setWindowTitle(tr("\311diter les orientations", "window title"));
QVBoxLayout *dialog_layout = new QVBoxLayout(&dialog_ori);
@@ -834,6 +840,9 @@ void ElementScene::slot_editNames() {
// cree un dialogue
QDialog dialog(element_editor);
#ifdef Q_WS_MAC
dialog.setWindowFlags(Qt::Sheet);
#endif
dialog.setModal(true);
dialog.setMinimumSize(400, 330);
dialog.setWindowTitle(tr("\311diter les noms", "window title"));