[qet] qet/qet: [5740] Minor |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 5740
Author: blacksun
Date: 2019-02-20 22:04:08 +0100 (Wed, 20 Feb 2019)
Log Message:
-----------
Minor
Modified Paths:
--------------
trunk/sources/ui/inditextpropertieswidget.cpp
Modified: trunk/sources/ui/inditextpropertieswidget.cpp
===================================================================
--- trunk/sources/ui/inditextpropertieswidget.cpp 2019-02-20 20:47:40 UTC (rev 5739)
+++ trunk/sources/ui/inditextpropertieswidget.cpp 2019-02-20 21:04:08 UTC (rev 5740)
@@ -352,9 +352,17 @@
}
}
ui->m_angle_sb->setValue(angle_equal ? rotation_ : 0);
+
+ bool valid_ = true;
+ for (QPointer<IndependentTextItem> piti : m_text_list) {
+ if (piti->isHtml()) {
+ valid_ = false;
+ }
+ }
+ ui->m_size_sb->setEnabled(valid_);
ui->m_size_sb->setValue(size_equal ? size_ : 0);
ui->m_label->setVisible(false);
- ui->m_break_html_pb->setVisible(false);
+ ui->m_break_html_pb->setVisible(true);
}
@@ -373,9 +381,12 @@
void IndiTextPropertiesWidget::on_m_break_html_pb_clicked()
{
- if (m_text)
- {
+ if (m_text) {
m_text->setPlainText(m_text->toPlainText());
- updateUi();
}
+ for (QPointer<IndependentTextItem> piti : m_text_list) {
+ piti->setPlainText(piti->toPlainText());
+ }
+
+ updateUi();
}