mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 22:00:35 +01:00
Change the way to add new element in a diagram.
Drag & drop an element in a diagram and click left to add it, click right to finish git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3803 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -75,6 +75,17 @@ void Element::setHighlighted(bool hl) {
|
||||
update();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Element::displayHelpLine
|
||||
* Display the help line of each terminal if b is true
|
||||
* @param b
|
||||
*/
|
||||
void Element::displayHelpLine(bool b)
|
||||
{
|
||||
foreach (Terminal *t, terminals())
|
||||
t->drawHelpLine(b);
|
||||
}
|
||||
|
||||
/**
|
||||
Methode principale de dessin de l'element
|
||||
@param painter Le QPainter utilise pour dessiner l'elment
|
||||
|
||||
Reference in New Issue
Block a user