summaryrefslogtreecommitdiff
path: root/muse2/muse/arranger/pcanvas.cpp
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2011-08-27 20:17:59 +0000
committerRobert Jonsson <spamatica@gmail.com>2011-08-27 20:17:59 +0000
commitcb4ae0b104084e9c054d2a1b28ce531d104e9d76 (patch)
tree28fd952bf2e1ab34826b8162e4980833c546e747 /muse2/muse/arranger/pcanvas.cpp
parent543dbb22e201208aee602a1c56ab92d8b9adb53f (diff)
full screen + part edit focus
Diffstat (limited to 'muse2/muse/arranger/pcanvas.cpp')
-rw-r--r--muse2/muse/arranger/pcanvas.cpp8
1 files changed, 5 insertions, 3 deletions
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 <map>
#include <QClipboard>
-#include <QLineEdit>
#include <QMenu>
#include <QMessageBox>
#include <QPainter>
#include <QUrl>
#include <QPoint>
+#include <awl/lineedit.h>
#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());