[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevplatform/vcs
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2009-07-23 12:07:35
Message-ID: 1248350855.295708.19402.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1001475 by apaku:
Implement support for the commit message in the annotation line and
model. Now only need to port vcs plugins.
CCBUG:183607
M +1 -1 models/vcsannotationmodel.cpp
M +14 -0 vcsannotation.cpp
M +11 -0 vcsannotation.h
--- trunk/KDE/kdevplatform/vcs/models/vcsannotationmodel.cpp #1001474:1001475
@@ -102,7 +102,7 @@
return QVariant( aline.revision().revisionValue() );
} else if( role == Qt::ToolTipRole )
{
- return QVariant( i18n("Author:%1\nDate:%2", aline.author(), \
aline.date().toString() ) ); + return QVariant( \
i18n("Author:%1\nDate:%2\nCommit Message:%3", aline.author(), \
aline.date().toString(), aline.commitMessage() ) ); }
return QVariant();
}
--- trunk/KDE/kdevplatform/vcs/vcsannotation.cpp #1001474:1001475
@@ -44,6 +44,7 @@
QString text;
QString line;
VcsRevision revision;
+ QString message;
int lineno;
};
@@ -62,6 +63,7 @@
d->lineno = rhs.d->lineno;
d->date = rhs.d->date;
d->text = rhs.d->text;
+ d->message = rhs.d->message;
}
VcsAnnotationLine::~VcsAnnotationLine()
@@ -129,9 +131,21 @@
d->lineno = rhs.d->lineno;
d->date = rhs.d->date;
d->text = rhs.d->text;
+ d->message = rhs.d->message;
return *this;
}
+QString VcsAnnotationLine::commitMessage() const
+{
+ return d->message;
+}
+
+
+void VcsAnnotationLine::setCommitMessage ( const QString& msg )
+{
+ d->message = msg;
+}
+
VcsAnnotation::VcsAnnotation()
: d(new VcsAnnotationPrivate)
{
--- trunk/KDE/kdevplatform/vcs/vcsannotation.h #1001474:1001475
@@ -63,6 +63,10 @@
*/
QDateTime date() const;
/**
+ * @return the commit message of the revision in this line
+ */
+ QString commitMessage() const;
+ /**
* set the line number of this annotation line
* @param lineno the line number
*/
@@ -87,6 +91,13 @@
* @param date the date of the last change
*/
void setDate( const QDateTime& );
+ /**
+ * set the commit message of the revision in this
+ * line
+ * @param msg the message of the commit
+ */
+ void setCommitMessage( const QString& msg );
+
VcsAnnotationLine& operator=( const VcsAnnotationLine& rhs);
private:
class VcsAnnotationLinePrivate* d;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic