mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-18 18:38:51 +00:00
Fixed TypeWidget font to monospace. (#1755)
Also the tab width was set to 4 chars.
This commit is contained in:
parent
b4535227cf
commit
1d1e2af9c3
@ -14,7 +14,10 @@ TypesInteractionDialog::TypesInteractionDialog(QWidget *parent, bool readOnly) :
|
||||
ui(new Ui::TypesInteractionDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
QFont font = Config()->getFont();
|
||||
ui->plainTextEdit->setFont(font);
|
||||
ui->plainTextEdit->setPlainText("");
|
||||
ui->plainTextEdit->setTabStopDistance(4 * QFontMetrics(font).horizontalAdvance(' '));
|
||||
syntaxHighLighter = Config()->createSyntaxHighlighter(ui->plainTextEdit->document());
|
||||
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
||||
ui->plainTextEdit->setReadOnly(readOnly);
|
||||
@ -72,4 +75,4 @@ void TypesInteractionDialog::done(int r)
|
||||
void TypesInteractionDialog::fillTextArea(QString content) {
|
||||
ui->layoutWidget->hide();
|
||||
ui->plainTextEdit->setPlainText(content);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user