mirror of https://github.com/JakubMelka/PDF4QT.git
Issue #35: Window state is not remembered for viewers
This commit is contained in:
parent
dead0dc519
commit
b4c124216b
|
@ -530,9 +530,10 @@ void PDFProgramController::initialize(Features features,
|
|||
}
|
||||
}
|
||||
|
||||
readSettings(Settings(WindowSettings | GeneralSettings | PluginsSettings | RecentFileSettings | CertificateSettings));
|
||||
readSettings(Settings(GeneralSettings | PluginsSettings | RecentFileSettings | CertificateSettings));
|
||||
|
||||
m_pdfWidget = new pdf::PDFWidget(m_CMSManager, m_settings->getRendererEngine(), m_settings->isMultisampleAntialiasingEnabled() ? m_settings->getRendererSamples() : -1, m_mainWindow);
|
||||
m_pdfWidget->setObjectName("pdfWidget");
|
||||
m_pdfWidget->updateCacheLimits(m_settings->getCompiledPageCacheLimit() * 1024, m_settings->getThumbnailsCacheLimit(), m_settings->getFontCacheLimit(), m_settings->getInstancedFontCacheLimit());
|
||||
m_pdfWidget->getDrawWidgetProxy()->setProgress(m_progress);
|
||||
|
||||
|
@ -581,7 +582,7 @@ void PDFProgramController::initialize(Features features,
|
|||
|
||||
void PDFProgramController::finishInitialization()
|
||||
{
|
||||
readSettings(ActionSettings);
|
||||
readSettings(Settings(WindowSettings | ActionSettings));
|
||||
|
||||
if (m_textToSpeech)
|
||||
{
|
||||
|
|
|
@ -188,7 +188,9 @@ PDFViewerMainWindow::PDFViewerMainWindow(QWidget* parent) :
|
|||
connect(ui->actionQuit, &QAction::triggered, this, &PDFViewerMainWindow::onActionQuitTriggered);
|
||||
|
||||
m_pageNumberSpinBox = new QSpinBox(this);
|
||||
m_pageNumberSpinBox->setObjectName("pageNumberSpinBox");
|
||||
m_pageNumberLabel = new QLabel(this);
|
||||
m_pageNumberLabel->setObjectName("pageNumberLabel");
|
||||
m_pageNumberSpinBox->setFixedWidth(pdf::PDFWidgetUtils::scaleDPI_x(m_pageNumberSpinBox, 80));
|
||||
m_pageNumberSpinBox->setAlignment(Qt::AlignCenter);
|
||||
connect(m_pageNumberSpinBox, &QSpinBox::editingFinished, this, &PDFViewerMainWindow::onPageNumberSpinboxEditingFinished);
|
||||
|
@ -213,6 +215,7 @@ PDFViewerMainWindow::PDFViewerMainWindow(QWidget* parent) :
|
|||
ui->mainToolBar->addAction(ui->actionZoom_Out);
|
||||
|
||||
m_pageZoomSpinBox = new QDoubleSpinBox(this);
|
||||
m_pageZoomSpinBox->setObjectName("pageZoomSpinBox");
|
||||
m_pageZoomSpinBox->setMinimum(pdf::PDFDrawWidgetProxy::getMinZoom() * 100);
|
||||
m_pageZoomSpinBox->setMaximum(pdf::PDFDrawWidgetProxy::getMaxZoom() * 100);
|
||||
m_pageZoomSpinBox->setDecimals(2);
|
||||
|
@ -511,7 +514,7 @@ void PDFViewerMainWindow::closeEvent(QCloseEvent* event)
|
|||
|
||||
void PDFViewerMainWindow::showEvent(QShowEvent* event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
QMainWindow::showEvent(event);
|
||||
m_progressTaskbarIndicator->setWindow(windowHandle());
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
CURRENT:
|
||||
- Issue #34: Reset option
|
||||
- Issue #35: Window state is not remembered for viewers
|
||||
|
||||
V: 1.3.0 25.12.2022
|
||||
- Issue #21: Table selection tool
|
||||
|
|
Loading…
Reference in New Issue