fix #933 + work on richtext
This commit is contained in:
parent
4d7203d715
commit
d0b69cbdcb
@ -524,7 +524,7 @@ void FormMain::switchVisibility(bool force_hide) {
|
|||||||
QSystemTrayIcon::MessageIcon::Warning});
|
QSystemTrayIcon::MessageIcon::Warning});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
hide();
|
close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -351,7 +351,7 @@ void MRichTextEdit::setTextStyle(int index) {
|
|||||||
m_ui.f_textedit->setCurrentCharFormat(fmt);
|
m_ui.f_textedit->setCurrentCharFormat(fmt);
|
||||||
|
|
||||||
if (index == ParagraphItems::ParagraphHeading1 || index == ParagraphItems::ParagraphHeading2 ||
|
if (index == ParagraphItems::ParagraphHeading1 || index == ParagraphItems::ParagraphHeading2 ||
|
||||||
ParagraphItems::index == ParagraphHeading3 || index == ParagraphItems::ParagraphHeading4) {
|
index == ParagraphItems::ParagraphHeading3 || index == ParagraphItems::ParagraphHeading4) {
|
||||||
if (index == ParagraphHeading1) {
|
if (index == ParagraphHeading1) {
|
||||||
fmt.setFontPointSize(m_fontsize_h1);
|
fmt.setFontPointSize(m_fontsize_h1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user