Fix XrefsDialog Preview Font (#1548)

This commit is contained in:
Florian Märkl 2019-05-17 14:19:47 +02:00 committed by GitHub
parent 2734ff026a
commit db4dcb5964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View File

@ -24,8 +24,8 @@ XrefsDialog::XrefsDialog(QWidget *parent) :
QTextDocument *asm_docu = ui->previewTextEdit->document(); QTextDocument *asm_docu = ui->previewTextEdit->document();
asm_docu->setDocumentMargin(10); asm_docu->setDocumentMargin(10);
setupPreviewFont();
setupPreviewColors(); setupPreviewColors();
setupPreviewFont();
// Highlight current line // Highlight current line
connect(ui->previewTextEdit, SIGNAL(cursorPositionChanged()), this, SLOT(highlightCurrentLine())); connect(ui->previewTextEdit, SIGNAL(cursorPositionChanged()), this, SLOT(highlightCurrentLine()));
@ -69,7 +69,6 @@ void XrefsDialog::fillRefs(QList<XrefDescription> refs, QList<XrefDescription> x
if (!qhelpers::selectFirstItem(ui->toTreeWidget)) { if (!qhelpers::selectFirstItem(ui->toTreeWidget)) {
qhelpers::selectFirstItem(ui->fromTreeWidget); qhelpers::selectFirstItem(ui->fromTreeWidget);
} }
} }
void XrefsDialog::on_fromTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column) void XrefsDialog::on_fromTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column)

View File

@ -131,12 +131,6 @@
</item> </item>
<item> <item>
<widget class="QPlainTextEdit" name="previewTextEdit"> <widget class="QPlainTextEdit" name="previewTextEdit">
<property name="font">
<font>
<family>Anonymous Pro</family>
<pointsize>13</pointsize>
</font>
</property>
<property name="frameShape"> <property name="frameShape">
<enum>QFrame::NoFrame</enum> <enum>QFrame::NoFrame</enum>
</property> </property>