Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Improve padwidget layout

Set style hint for monospace font to get a good font on windows.
Resize to sizeHint when activating the padwidget.
parent 3b10124a
......@@ -274,6 +274,7 @@ public:
ui.stackWidget->addWidget(ui.padWidget);
}
ui.stackWidget->setCurrentWidget(ui.padWidget);
ui.stackWidget->resize(ui.padWidget->sizeHint());
}
private:
......
......@@ -151,7 +151,8 @@ public:
mEdit->setPlaceholderText("Enter a message to encrypt or decrypt...");
auto fixedFont = QFont("Monospace", 10);
// This does not work well:
fixedFont.setStyleHint(QFont::TypeWriter);
// This does not work well
// QFontDatabase::systemFont(QFontDatabase::FixedFont);
mEdit->setCurrentFont(fixedFont);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment