MainWindow: Fix Qt deprication
This commit is contained in:
parent
f67b7bbb21
commit
95d4a12005
@ -68,8 +68,7 @@ void MainWindow::connectSignals()
|
|||||||
connect(ui->treeResultsList, &QTreeWidget::customContextMenuRequested, this,
|
connect(ui->treeResultsList, &QTreeWidget::customContextMenuRequested, this,
|
||||||
&MainWindow::showSearchResultsContextMenu);
|
&MainWindow::showSearchResultsContextMenu);
|
||||||
connect(ui->tabWidget, &QTabWidget::currentChanged, this, &MainWindow::tabChanged);
|
connect(ui->tabWidget, &QTabWidget::currentChanged, this, &MainWindow::tabChanged);
|
||||||
connect(ui->comboScale, qOverload<const QString &>(&QComboBox::currentIndexChanged), this,
|
connect(ui->comboScale, qOverload<int>(&QComboBox::currentIndexChanged), this, &MainWindow::comboScaleChanged);
|
||||||
&MainWindow::comboScaleChanged);
|
|
||||||
connect(ui->spinPdfPreviewPage, qOverload<int>(&QSpinBox::valueChanged), this,
|
connect(ui->spinPdfPreviewPage, qOverload<int>(&QSpinBox::valueChanged), this,
|
||||||
&MainWindow::spinPdfPreviewPageValueChanged);
|
&MainWindow::spinPdfPreviewPageValueChanged);
|
||||||
}
|
}
|
||||||
@ -79,7 +78,7 @@ void MainWindow::spinPdfPreviewPageValueChanged(int val)
|
|||||||
makePdfPreview(val);
|
makePdfPreview(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::comboScaleChanged(QString text)
|
void MainWindow::comboScaleChanged(int i)
|
||||||
{
|
{
|
||||||
QSettings scaleSetting;
|
QSettings scaleSetting;
|
||||||
scaleSetting.setValue("currentScale", ui->comboScale->currentText());
|
scaleSetting.setValue("currentScale", ui->comboScale->currentText());
|
||||||
|
@ -51,7 +51,7 @@ class MainWindow : public QMainWindow
|
|||||||
void showSearchResultsContextMenu(const QPoint &point);
|
void showSearchResultsContextMenu(const QPoint &point);
|
||||||
void tabChanged();
|
void tabChanged();
|
||||||
void pdfPreviewReceived(PdfPreview preview);
|
void pdfPreviewReceived(PdfPreview preview);
|
||||||
void comboScaleChanged(QString text);
|
void comboScaleChanged(int i);
|
||||||
void spinPdfPreviewPageValueChanged(int val);
|
void spinPdfPreviewPageValueChanged(int val);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user