mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 22:00:35 +01:00
Added Abhishek new patch:
Diagram::background_color is now selectable for white or grey remove QColorDialog for Background print dialog is always in white background Thanks git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2673 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -39,6 +39,8 @@ DiagramPrintDialog::DiagramPrintDialog(QETProject *project, QWidget *parent) :
|
||||
|
||||
// orientation paysage par defaut
|
||||
printer_ -> setOrientation(QPrinter::Landscape);
|
||||
backup_diagram_background_color = Diagram::background_color;
|
||||
Diagram::background_color = Qt::white;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -47,6 +49,7 @@ DiagramPrintDialog::DiagramPrintDialog(QETProject *project, QWidget *parent) :
|
||||
DiagramPrintDialog::~DiagramPrintDialog() {
|
||||
delete dialog_;
|
||||
delete printer_;
|
||||
Diagram::background_color = backup_diagram_background_color;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user