mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Minor: minimum XRef offset corrected. Assign variables to XRef link menu
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4548 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -459,7 +459,6 @@ void ProjectAutoNumConfigPage::applyAutoNum() {
|
||||
emit (saveCurrentTbp());
|
||||
emit (setAutoNum(m_faw->autoNumSelected()));
|
||||
while (foliosRemaining > 0){
|
||||
qDebug() << foliosRemaining;
|
||||
project()->autoFolioNumberingNewFolios();
|
||||
foliosRemaining = foliosRemaining-1;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ bool centerToBottomDiagram (QGraphicsItem *item_to_center, Element *element_to_f
|
||||
QRectF border = element_to_follow -> diagram() -> border_and_titleblock.insideBorderRect();
|
||||
QPointF point = element_to_follow -> sceneBoundingRect().center();
|
||||
|
||||
if (offset >= 50) //applies offset
|
||||
if (offset >= 40) //applies offset
|
||||
point.setY(border.bottom() - offset );
|
||||
else //applies default
|
||||
point.setY(border.bottom() - item_to_center -> boundingRect().height() - 5);
|
||||
|
||||
@@ -134,13 +134,13 @@ void ElementSelectorWidget::buildInterface() {
|
||||
DiagramContext dc = elmt -> elementInformations();
|
||||
|
||||
if (!dc["label"].toString().isEmpty())
|
||||
button_text = dc["label"].toString() + " ";
|
||||
button_text = elmt->assignVariables(dc["label"].toString(), elmt) + " ";
|
||||
|
||||
if (!dc["comment"].toString().isEmpty())
|
||||
button_text += dc["comment"].toString();
|
||||
button_text += elmt->assignVariables(dc["comment"].toString(), elmt);
|
||||
|
||||
if (!dc["location"].toString().isEmpty())
|
||||
button_text += dc["location"].toString();
|
||||
button_text += elmt->assignVariables(dc["location"].toString(), elmt);
|
||||
|
||||
if (!button_text.isEmpty())
|
||||
button_text += "\n";
|
||||
|
||||
Reference in New Issue
Block a user