mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Minor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5740 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -352,9 +352,17 @@ void IndiTextPropertiesWidget::updateUi()
|
||||
}
|
||||
}
|
||||
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_advanced_editor_pb_clicked() {
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user