From cb4ae0b104084e9c054d2a1b28ce531d104e9d76 Mon Sep 17 00:00:00 2001 From: Robert Jonsson Date: Sat, 27 Aug 2011 20:17:59 +0000 Subject: full screen + part edit focus --- muse2/muse/arranger/pcanvas.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'muse2/muse/arranger/pcanvas.cpp') diff --git a/muse2/muse/arranger/pcanvas.cpp b/muse2/muse/arranger/pcanvas.cpp index 56d68ceb..1bf7a541 100644 --- a/muse2/muse/arranger/pcanvas.cpp +++ b/muse2/muse/arranger/pcanvas.cpp @@ -16,13 +16,13 @@ #include #include -#include #include #include #include #include #include +#include #include "fastlog.h" #include "widgets/tools.h" #include "arranger.h" @@ -183,7 +183,8 @@ void PartCanvas::viewMouseDoubleClickEvent(QMouseEvent* event) editPart = (NPart*)curItem; QRect r = map(curItem->bbox()); if (lineEditor == 0) { - lineEditor = new QLineEdit(this); + lineEditor = new LineEdit(this); + connect(lineEditor, SIGNAL(returnPressed()),SLOT(returnPressed())); lineEditor->setFrame(true); } editMode = true; @@ -685,7 +686,8 @@ void PartCanvas::itemPopup(CItem* item, int n, const QPoint& pt) editPart = npart; QRect r = map(curItem->bbox()); if (lineEditor == 0) { - lineEditor = new QLineEdit(this); + lineEditor = new LineEdit(this); + connect(lineEditor, SIGNAL(returnPressed()),SLOT(returnPressed())); lineEditor->setFrame(true); } lineEditor->setText(editPart->name()); -- cgit v1.2.3