mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-01 17:30:52 +01:00
element editor: add dialog for edit element properties (master, slave etc...)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3102 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -23,7 +23,8 @@
|
||||
ReportElement::ReportElement(const ElementsLocation &location, QString link_type,QGraphicsItem *qgi, Diagram *s, int *state) :
|
||||
CustomElement(location, qgi, s, state)
|
||||
{
|
||||
texts().at(0)->setNoEditable();
|
||||
if (!texts().isEmpty())
|
||||
texts().first()->setNoEditable();
|
||||
link_type == "next_report"? link_type_=NextReport : link_type_=PreviousReport;
|
||||
link_type == "next_report"? inverse_report=PreviousReport : inverse_report=NextReport;
|
||||
if (s) {
|
||||
@@ -108,6 +109,7 @@ void ReportElement::setLabel(QString label) {
|
||||
* ie the folio and position of the linked folio report
|
||||
*/
|
||||
void ReportElement::updateLabel() {
|
||||
if (texts().isEmpty()) return;
|
||||
ElementTextItem *text = texts().first();
|
||||
|
||||
if (!connected_elements.isEmpty()){
|
||||
|
||||
Reference in New Issue
Block a user