Styling widgets

This commit is contained in:
Jakub Melka
2021-08-12 19:51:30 +02:00
parent edd5fd5a26
commit 0559cd7c50
23 changed files with 63 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ PDFAboutDialog::PDFAboutDialog(QWidget* parent) :
}
pdf::PDFWidgetUtils::scaleWidget(this, QSize(750, 600));
pdf::PDFWidgetUtils::style(this);
}
PDFAboutDialog::~PDFAboutDialog()

View File

@@ -55,6 +55,7 @@ PDFDocumentPropertiesDialog::PDFDocumentPropertiesDialog(const pdf::PDFDocument*
}
pdf::PDFWidgetUtils::scaleWidget(this, QSize(750, 600));
pdf::PDFWidgetUtils::style(this);
}
PDFDocumentPropertiesDialog::~PDFDocumentPropertiesDialog()

View File

@@ -19,6 +19,7 @@
#include "ui_pdfencryptionsettingsdialog.h"
#include "pdfutils.h"
#include "pdfwidgetutils.h"
#include "pdfsecurityhandler.h"
#include <QMessageBox>
@@ -73,6 +74,8 @@ PDFEncryptionSettingsDialog::PDFEncryptionSettingsDialog(QByteArray documentId,
updateUi();
updatePasswordScore();
pdf::PDFWidgetUtils::style(this);
}
PDFEncryptionSettingsDialog::~PDFEncryptionSettingsDialog()

View File

@@ -65,6 +65,7 @@ PDFOptimizeDocumentDialog::PDFOptimizeDocumentDialog(const pdf::PDFDocument* doc
pdf::PDFWidgetUtils::scaleWidget(this, QSize(640, 380));
updateUi();
pdf::PDFWidgetUtils::style(this);
}
PDFOptimizeDocumentDialog::~PDFOptimizeDocumentDialog()

View File

@@ -2149,7 +2149,7 @@ void PDFProgramController::onActionDeveloperCreateInstaller()
void PDFProgramController::onActionGetSource()
{
QDesktopServices::openUrl(QUrl("https://github.com/JakubMelka/PdfForQt"));
QDesktopServices::openUrl(QUrl("https://github.com/JakubMelka/PDF4QT"));
}
void PDFProgramController::onPageRenderingErrorsChanged(pdf::PDFInteger pageIndex, int errorsCount)

View File

@@ -82,6 +82,7 @@ PDFRenderToImagesDialog::PDFRenderToImagesDialog(const pdf::PDFDocument* documen
loadImageExportSettings();
pdf::PDFWidgetUtils::scaleWidget(this, QSize(1000, 600));
pdf::PDFWidgetUtils::style(this);
}
PDFRenderToImagesDialog::~PDFRenderToImagesDialog()

View File

@@ -193,6 +193,7 @@ PDFViewerSettingsDialog::PDFViewerSettingsDialog(const PDFViewerSettings::Settin
connect(ui->pluginsTableWidget, &QTableWidget::itemSelectionChanged, this, &PDFViewerSettingsDialog::updatePluginInformation);
setMinimumSize(pdf::PDFWidgetUtils::scaleDPI(this, QSize(1000, 700)));
pdf::PDFWidgetUtils::style(this);
ui->optionsPagesWidget->setCurrentRow(0);
adjustSize();