mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Bug Fix: correct Folio List folio display. Bug Fix: correct arrow key move behavior
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4693 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -251,7 +251,7 @@ void Diagram::keyPressEvent(QKeyEvent *e)
|
||||
if (!this->selectedContent().items(255).isEmpty()) {
|
||||
switch(e -> key()) {
|
||||
case Qt::Key_Left:
|
||||
foreach (QGraphicsItem *item, selected_elmts) {
|
||||
foreach (Element *item, selectedContent().elements) {
|
||||
left_position = item->mapRectFromScene(item->boundingRect()).x();
|
||||
if (left_position >= this->sceneRect().left() - item->boundingRect().width())
|
||||
return;
|
||||
@@ -260,7 +260,7 @@ void Diagram::keyPressEvent(QKeyEvent *e)
|
||||
break;
|
||||
case Qt::Key_Right: movement = QPointF(+xGrid, 0.0); break;
|
||||
case Qt::Key_Up:
|
||||
foreach (QGraphicsItem *item, selected_elmts) {
|
||||
foreach (Element *item, selectedContent().elements) {
|
||||
top_position = item->mapRectFromScene(item->boundingRect()).y();
|
||||
if (top_position >= this->sceneRect().top() - item->boundingRect().height())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user