mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 06:20:53 +01:00
Correction pour Fichier > Exporter
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@52 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
ExportDialog::ExportDialog(Diagram *dia, QWidget *parent) : QDialog(parent) {
|
||||
if (!dia) return;
|
||||
|
||||
// recupere le schema a exporter, sa taille et ses proportions
|
||||
diagram = dia;
|
||||
diagram_size = diagram -> imageSize();
|
||||
@@ -21,7 +22,6 @@ ExportDialog::ExportDialog(Diagram *dia, QWidget *parent) : QDialog(parent) {
|
||||
buttons = new QDialogButtonBox(this);
|
||||
buttons -> setOrientation(Qt::Horizontal);
|
||||
buttons -> setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Save);
|
||||
setTabOrder(keep_aspect_ratio, buttons);
|
||||
|
||||
// disposition des elements
|
||||
QGridLayout *layout = new QGridLayout(this);
|
||||
@@ -34,6 +34,8 @@ ExportDialog::ExportDialog(Diagram *dia, QWidget *parent) : QDialog(parent) {
|
||||
layout -> addWidget(rightPart(), 0, 1);
|
||||
layout -> addWidget(buttons, 1, 1);
|
||||
|
||||
setTabOrder(keep_aspect_ratio, buttons);
|
||||
|
||||
// connexions signaux/slots
|
||||
connect(button_browse, SIGNAL(released()), this, SLOT(slot_chooseAFile()));
|
||||
connect(width, SIGNAL(valueChanged(int)), this, SLOT(slot_correctHeight()));
|
||||
|
||||
Reference in New Issue
Block a user