[fondue-commits] [SCM] Fondue Font Editor branch, master, updated. 097b323e15f08ea5e8c1070c59c211e384fc8003

Eugeniy Meshcheryakov eugen at debian.org
Thu May 15 18:58:03 UTC 2008


The following commit has been merged in the master branch:
commit 13f50e2d89cf7cc37edd70b489bea526316df4d8
Author: Eugeniy Meshcheryakov <eugen at debian.org>
Date:   Thu May 15 16:23:52 2008 +0200

    remove double click event handler

diff --git a/gui/glyphcell.cxx b/gui/glyphcell.cxx
index c945941..5a8eaf8 100644
--- a/gui/glyphcell.cxx
+++ b/gui/glyphcell.cxx
@@ -100,34 +100,6 @@ void GlyphCell::drawForeground(QPainter *painter, const QRectF &rect)
 	}
 }
 
-void GlyphCell::mouseDoubleClickEvent(QMouseEvent *e)
-{
-	qDebug() << "Double click";
-
-	QGraphicsItem *item = itemAt(e->pos());
-	if (!item || item->type() != ControlPoint::Type) {
-		GlyphContour *contour = 0;
-		foreach (GlyphContentBase *i, m_glyph->content()) {
-			// Try to find a contour
-			if (i->type() == GlyphContentBase::Contour) {
-				contour = qobject_cast<GlyphContour *>(i);
-				Q_ASSERT(contour);
-				break;
-			}
-		}
-		if (contour) {
-			// add a point to the first contour
-			QPointF pointPos = mapToScene(e->pos());
-			pointPos.setY(-pointPos.y());
-			contour->appendPoint(pointPos);
-			qDebug() << "Appended point at pos" << pointPos;
-		}
-	}
-	else
-		qDebug() << "Item at double click pos!";
-	QGraphicsView::mouseDoubleClickEvent(e);
-}
-
 void GlyphCell::keyPressEvent(QKeyEvent *e)
 {
 	switch (e->key()) {
diff --git a/gui/glyphcell.h b/gui/glyphcell.h
index a4505e1..4c8ce1c 100644
--- a/gui/glyphcell.h
+++ b/gui/glyphcell.h
@@ -45,7 +45,6 @@ signals:
 	void editModeChanged(GlyphCell::EditMode);
 protected:
 	void drawForeground(QPainter *painter, const QRectF &rect);
-	void mouseDoubleClickEvent(QMouseEvent *e);
 	void keyPressEvent(QKeyEvent *e);
 	void moveSelection(const QPointF &offset);
 	void mousePressEvent(QMouseEvent *event);

-- 
Fondue Font Editor



More information about the fondue-commits mailing list