1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-15 04:15:26 +03:00

Model print and compare user customisable style (#5866)

* New feature: Model print and compare customisable style

* Layout cosmetics.

* File handling tweak
Message cosmetics
This commit is contained in:
Neil Horne 2018-05-21 18:07:49 +10:00 committed by Bertrand Songis
parent 25049d041d
commit 2f91eba85d
16 changed files with 624 additions and 77 deletions

View file

@ -23,6 +23,7 @@
#include "appdata.h"
#include "helpers.h"
#include "modelslist.h"
#include "styleeditdialog.h"
#include <QPrinter>
#include <QPrintDialog>
@ -189,3 +190,10 @@ void CompareDialog::on_printFileButton_clicked()
ui->textEdit->print(&printer);
}
}
void CompareDialog::on_styleButton_clicked()
{
StyleEditDialog *g = new StyleEditDialog(this, MODEL_PRINT_CSS);
if (g->exec() == QDialog::Accepted)
compare();
}