19 #include "ui_elementinfowidget.h" 35 m_first_activation (false)
72 if (f->
text().isEmpty())
94 m_element -> diagram() -> undoStack().push(undo);
109 if (old_info != new_info)
145 if (
event -> type() == QEvent::WindowActivate ||
event -> type() == QEvent::Show)
151 return(QWidget::event(
event));
183 ui->scroll_vlayout->addWidget(eipw);
186 ui->scroll_vlayout->addStretch();
198 if (eipw->
key() == key)
218 eipw -> setText (element_info[eipw->key()].toString());
237 if (!eipw->text().isEmpty())
239 QString txt = eipw->text();
bool addValue(const QString &, const QVariant &, bool show=true)
static QStringList elementInfoKeys()
QETApp::elementInfoKeys.
void elementInfoChange(DiagramContext old_info, DiagramContext new_info)
static QString elementTranslatedInfoKey(const QString &)
ElementsProperties::translatedInfo Return the translated information key given by If don't match...