summaryrefslogtreecommitdiff
path: root/muse2/muse/widgets/comment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/muse/widgets/comment.cpp')
-rw-r--r--muse2/muse/widgets/comment.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/muse2/muse/widgets/comment.cpp b/muse2/muse/widgets/comment.cpp
index ef727859..4a091ddb 100644
--- a/muse2/muse/widgets/comment.cpp
+++ b/muse2/muse/widgets/comment.cpp
@@ -8,15 +8,15 @@
#include "comment.h"
#include "song.h"
#include "track.h"
-#include <q3multilineedit.h>
-#include <qlabel.h>
+
+#include <QWidget>
//---------------------------------------------------------
// Comment
//---------------------------------------------------------
-Comment::Comment(QWidget* parent, const char* name)
- : CommentBase(parent, name)
+Comment::Comment(QWidget* parent)
+ : CommentBaseWidget(parent)
{
}
@@ -33,13 +33,14 @@ void Comment::textChanged()
// TrackComment
//---------------------------------------------------------
-TrackComment::TrackComment(Track* t, QWidget* parent, const char* name)
- : Comment(parent, name)
+TrackComment::TrackComment(Track* t, QWidget* parent)
+ : Comment(parent)
{
setCaption(tr("MusE: Track Comment"));
track = t;
connect(song, SIGNAL(songChanged(int)), SLOT(songChanged(int)));
textentry->setText(track->comment());
+ textentry->moveCursor(QTextCursor::End);
connect(textentry, SIGNAL(textChanged()), SLOT(textChanged()));
label1->setText(tr("Track Comment:"));
label2->setText(track->name());
@@ -69,7 +70,7 @@ void TrackComment::songChanged(int flags)
if (track->comment() != textentry->text()) {
disconnect(textentry, SIGNAL(textChanged()), this, SLOT(textChanged()));
textentry->setText(track->comment());
- textentry->setCursorPosition(1000, 1000);
+ textentry->moveCursor(QTextCursor::End);
connect(textentry, SIGNAL(textChanged()), this, SLOT(textChanged()));
}
}