Commit cb19738a authored by L. E. Segovia's avatar L. E. Segovia

Do not specify font or size inside SeExpr

Follow the embedding application's theming.
parent 18e8cfe4
......@@ -89,10 +89,11 @@ ExprEditor::ExprEditor(QWidget* parent, ExprControlCollection* controls)
exprTe->setMinimumHeight(50);
// calibrate the font size
int fontsize = 12;
// This should be done inside the target application. --amyspark
// int fontsize = 12
// QFont font("Liberation Sans", fontsize);
QFont font = exprTe->font();
font.setPointSize(fontsize);
// QFont font = exprTe->font();
// font.setPointSize(fontsize);
// while (QFontMetrics(font).boundingRect("yabcdef").width() < 38 && fontsize < 20) {
// fontsize++;
// font.setPointSize(fontsize);
......@@ -101,8 +102,7 @@ ExprEditor::ExprEditor(QWidget* parent, ExprControlCollection* controls)
// fontsize--;
// font.setPointSize(fontsize);
// };
exprTe->setFont(font);
// exprTe->setFont(font);
exprAndErrors->addWidget(exprTe);
......
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