Exemplo n.º 1
0
void TDPreviewDialog::on_setupToolButton_clicked()
{
        QPageSetupDialog *dialog;
        dialog = new QPageSetupDialog(printer, this);
        if (dialog->exec() == QDialog::Rejected) {
                return;
        }
        setupPage();
        on_pageSpinBox_valueChanged(1);
        setupSpinBox();
}
Exemplo n.º 2
0
int TablePrintDialog::exec()
{
  //GUI
  ui.setupUi(this);
  connect(ui.horizontalSlider, SIGNAL(valueChanged(int)), ui.pageSpinBox, SLOT(setValue(int)));
  connect(ui.prevToolButton, SIGNAL(clicked()), ui.pageSpinBox, SLOT(stepDown()));
  connect(ui.nextToolButton, SIGNAL(clicked()), ui.pageSpinBox, SLOT(stepUp()));

  ui.graphicsView->setScene(&pageScene);
  ui.graphicsView->ensureVisible(0,0,10,10);
  setupSpinBox();
  on_pageSpinBox_valueChanged(1);
  return QDialog::exec();
}
Exemplo n.º 3
0
int TDPreviewDialog::exec()
{
        //GUI
        ui.setupUi(this);
        this->setWindowTitle(titulol);
        connect(ui.horizontalSlider, SIGNAL(valueChanged(int)), ui.pageSpinBox, SLOT(setValue(int)));
        connect(ui.prevToolButton, SIGNAL(clicked()), ui.pageSpinBox, SLOT(stepDown()));
        connect(ui.nextToolButton, SIGNAL(clicked()), ui.pageSpinBox, SLOT(stepUp()));
        connect(ui.print, SIGNAL(clicked()), SLOT(print()));
        connect(ui.PDF, SIGNAL(clicked()), SLOT(exportPdf()));

        ui.graphicsView->setScene(&pageScene);
        ui.graphicsView->ensureVisible(0,0,10,10);
        setupSpinBox();
        on_pageSpinBox_valueChanged(1);
        return QDialog::exec();
}