r22455 by jghali - #15229: remove m_oldSnapToElem from scribusview.h <ale>
scribus-commit
scribus-commit at lists.scribus.net
Fri Mar 30 08:18:21 UTC 2018
Author: jghali
Date: Fri Mar 30 08:18:21 2018
New Revision: 22455
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22455
Log:
#15229: remove m_oldSnapToElem from scribusview.h <ale>
Modified:
trunk/Scribus/scribus/scribusview.cpp
trunk/Scribus/scribus/scribusview.h
Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22455&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp (original)
+++ trunk/Scribus/scribus/scribusview.cpp Fri Mar 30 08:18:21 2018
@@ -230,7 +230,6 @@
endEditButton->setVisible(false);
connect(endEditButton, SIGNAL(clicked()), m_ScMW, SLOT(slotEndSpecialEdit()));
- m_oldSnapToElem = Doc->SnapElement;
languageChange();
}
@@ -3582,13 +3581,6 @@
else if (event->type() == QEvent::KeyPress)
{
QKeyEvent* m = static_cast<QKeyEvent*> (event);
- /* #12453... what do we use this for?
- if(m->key() == Qt::Key_Shift)
- {
- m_oldSnapToElem = Doc->SnapElement;
- m_ScMW->SetSnapElements(false);
- }
- */
if (m_canvasMode->handleKeyEvents())
m_canvasMode->keyPressEvent(m);
else
@@ -3598,10 +3590,6 @@
else if (event->type() == QEvent::KeyRelease)
{
QKeyEvent* m = static_cast<QKeyEvent*> (event);
- /* #12453... what do we use this for?
- if(m->key() == Qt::Key_Shift)
- m_ScMW->SetSnapElements(m_oldSnapToElem);
- */
if (m_canvasMode->handleKeyEvents())
m_canvasMode->keyReleaseEvent(m);
else
Modified: trunk/Scribus/scribus/scribusview.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22455&path=/trunk/Scribus/scribus/scribusview.h
==============================================================================
--- trunk/Scribus/scribus/scribusview.h (original)
+++ trunk/Scribus/scribus/scribusview.h Fri Mar 30 08:18:21 2018
@@ -277,7 +277,6 @@
bool _isGlobalMode;
bool linkAfterDraw;
bool ImageAfterDraw;
- bool m_oldSnapToElem;
private slots:
void setZoom();
More information about the scribus-commit
mailing list