~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/plugins/perforce/perforcesubmiteditor.cpp

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "perforceplugin.h"
33
33
#include "perforceconstants.h"
34
34
 
 
35
#include <coreplugin/idocument.h>
35
36
#include <vcsbase/submitfilemodel.h>
36
37
#include <utils/qtcassert.h>
37
38
 
46
47
    VcsBaseSubmitEditor(parameters, new PerforceSubmitEditorWidget(parent)),
47
48
    m_fileModel(new VcsBase::SubmitFileModel(this))
48
49
{
49
 
    setDisplayName(tr("Perforce Submit"));
 
50
    document()->setDisplayName(tr("Perforce Submit"));
50
51
    setFileModel(m_fileModel);
51
52
}
52
53
 
70
71
    return text.toLocal8Bit();
71
72
}
72
73
 
73
 
bool PerforceSubmitEditor::setFileContents(const QString &contents)
 
74
bool PerforceSubmitEditor::setFileContents(const QByteArray &contents)
74
75
{
75
76
    if (Perforce::Constants::debug)
76
77
        qDebug() << Q_FUNC_INFO << contents;
77
 
    if (!parseText(contents))
 
78
    if (!parseText(QString::fromUtf8(contents)))
78
79
        return false;
79
80
    updateFields();
80
81
    return true;