mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Ajout d'une classe QETMessageBox : desormais, sous MacOS, les MessageBox sont integrees a leur fenetre parente.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@729 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include <QSvgGenerator>
|
||||
#include <QtXml>
|
||||
#include "qeticons.h"
|
||||
#include "qetmessagebox.h"
|
||||
#include "exportpropertieswidget.h"
|
||||
#include "qetdiagrameditor.h"
|
||||
|
||||
@@ -390,7 +391,7 @@ void ExportDialog::slot_export() {
|
||||
}
|
||||
}
|
||||
if (filenames.count() != diagrams_to_export.count()) {
|
||||
QMessageBox::warning(
|
||||
QET::MessageBox::warning(
|
||||
this,
|
||||
tr("Noms des fichiers cibles", "message box title"),
|
||||
tr(
|
||||
@@ -406,7 +407,7 @@ void ExportDialog::slot_export() {
|
||||
|
||||
QDir target_dir_path(epw -> exportProperties().destination_directory);
|
||||
if (!target_dir_path.exists()) {
|
||||
QMessageBox::warning(
|
||||
QET::MessageBox::warning(
|
||||
this,
|
||||
tr("Dossier non sp\351cifi\351", "message box title"),
|
||||
tr("Vous devez sp\351cifier le chemin du dossier dans lequel seront enregistr\351s les fichiers images.", "message box content"),
|
||||
@@ -448,7 +449,7 @@ void ExportDialog::exportDiagram(ExportDiagramLine *diagram_line) {
|
||||
|
||||
// verifie qu'il est possible d'ecrire dans le fichier en question
|
||||
if (file_infos.exists() && !file_infos.isWritable()) {
|
||||
QMessageBox::critical(
|
||||
QET::MessageBox::critical(
|
||||
this,
|
||||
tr("Impossible d'\351crire dans ce fichier", "message box title"),
|
||||
QString(
|
||||
|
||||
Reference in New Issue
Block a user