Files
qt-creator/src/plugins/bazaar/bazaarcommitwidget.h
hjk 6da227925a Bazaar: Inline bazaarcommitpanel.ui
Change-Id: I5b72560b283584075b30e4bb313a5c143f5c2548
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-26 06:00:36 +00:00

33 lines
848 B
C++

// Copyright (C) 2016 Hugues Delorme
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <vcsbase/submiteditorwidget.h>
namespace Bazaar::Internal {
class BranchInfo;
class BazaarCommitPanel;
/*submit editor widget based on git SubmitEditor
Some extra fields have been added to the standard SubmitEditorWidget,
to help to conform to the commit style that is used by both git and Bazaar*/
class BazaarCommitWidget : public VcsBase::SubmitEditorWidget
{
public:
BazaarCommitWidget();
void setFields(const BranchInfo &branch, const QString &userName, const QString &email);
QString committer() const;
QStringList fixedBugs() const;
bool isLocalOptionEnabled() const;
private:
BazaarCommitPanel *m_bazaarCommitPanel;
};
} // Bazaar::Insteral