actionOneToOne fixed

This commit is contained in:
Arin Alexander 2016-05-24 01:39:56 +04:00
parent 11a06456b1
commit 2132bc9e34
2 changed files with 8 additions and 7 deletions

View File

@ -37,6 +37,7 @@ MainWindow::MainWindow(QWidget *parent) :
connect(ui->actionExport_to_PDF, SIGNAL(triggered()), m_preview, SLOT(printToPDF())); connect(ui->actionExport_to_PDF, SIGNAL(triggered()), m_preview, SLOT(printToPDF()));
connect(ui->actionPrint_Report, SIGNAL(triggered()), m_preview, SLOT(print())); connect(ui->actionPrint_Report, SIGNAL(triggered()), m_preview, SLOT(print()));
connect(ui->actionDesign_Report, SIGNAL(triggered()), this, SLOT(slotDesignReport())); connect(ui->actionDesign_Report, SIGNAL(triggered()), this, SLOT(slotDesignReport()));
connect(ui->actionOne_to_One, SIGNAL(triggered()), this, SLOT(slotOneToOne()));
initPercentCombobox(); initPercentCombobox();
enableUI(false); enableUI(false);
QDesktopWidget *desktop = QApplication::desktop(); QDesktopWidget *desktop = QApplication::desktop();
@ -131,10 +132,10 @@ void MainWindow::initPercentCombobox()
m_scalePercent->setCurrentIndex(4); m_scalePercent->setCurrentIndex(4);
} }
void MainWindow::on_sbPageNavigator_valueChanged(int arg1) //void MainWindow::on_sbPageNavigator_valueChanged(int arg1)
{ //{
m_preview->pageNavigatorChanged(arg1); // m_preview->pageNavigatorChanged(arg1);
} //}
void MainWindow::slotDesignReport() void MainWindow::slotDesignReport()
{ {
@ -142,7 +143,7 @@ void MainWindow::slotDesignReport()
m_preview->refreshPages(); m_preview->refreshPages();
} }
void MainWindow::on_tbOneToOne_clicked() void MainWindow::slotOneToOne()
{ {
m_preview->setScalePercent(100); m_preview->setScalePercent(100);
} }

View File

@ -29,9 +29,9 @@ private slots:
void slotPageChanged(int page); void slotPageChanged(int page);
void slotPageNavigatorChanged(int page); void slotPageNavigatorChanged(int page);
void on_treeWidget_itemClicked(QTreeWidgetItem *item, int); void on_treeWidget_itemClicked(QTreeWidgetItem *item, int);
void on_sbPageNavigator_valueChanged(int arg1); //void on_sbPageNavigator_valueChanged(int arg1);
void slotDesignReport(); void slotDesignReport();
void on_tbOneToOne_clicked(); void slotOneToOne();
private: private:
template< typename T > template< typename T >
void buildReportsTree(const QString &path, T* parentItem) void buildReportsTree(const QString &path, T* parentItem)