Fix font in padwidget text edit

Setting the font instead of the current font and removing
the size change. This works better for me.
parent fdadecfb
......@@ -154,12 +154,12 @@ public:
mEdit->setPlaceholderText("Enter a message to encrypt or decrypt...");
auto fixedFont = QFont("Monospace", 10);
auto fixedFont = QFont("Monospace");
fixedFont.setStyleHint(QFont::TypeWriter);
// This does not work well
// QFontDatabase::systemFont(QFontDatabase::FixedFont);
mEdit->setCurrentFont(fixedFont);
mEdit->setFont(fixedFont);
mEdit->setMinimumWidth(QFontMetrics(fixedFont).averageCharWidth() * 70);
if (KeyCache::instance()->pgpOnly()) {
......
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