forked from qt-creator/qt-creator
Vcs: Move Settings widget definitions to .cpp files
In preparation of replacing the VcsBase* layer by the new IOption* functions, which are almost the same now. Change-Id: I39f7da137434ed33d2d42f09f4213e74b3e29f7e Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -28,18 +28,32 @@
|
||||
#include "mercurialclient.h"
|
||||
#include "mercurialsettings.h"
|
||||
#include "mercurialplugin.h"
|
||||
#include "ui_optionspage.h"
|
||||
#include "ui_optionspage.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <utils/pathchooser.h>
|
||||
#include <vcsbase/vcsbaseconstants.h>
|
||||
|
||||
#include <QTextStream>
|
||||
|
||||
using namespace VcsBase;
|
||||
|
||||
namespace Mercurial {
|
||||
namespace Internal {
|
||||
|
||||
class OptionsPageWidget final : public VcsBase::VcsClientOptionsPageWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(Mercurial::Internal::OptionsPageWidget)
|
||||
|
||||
public:
|
||||
OptionsPageWidget();
|
||||
|
||||
VcsBase::VcsBaseClientSettings settings() const final;
|
||||
void setSettings(const VcsBase::VcsBaseClientSettings &s) final;
|
||||
|
||||
private:
|
||||
Ui::OptionsPage m_ui;
|
||||
};
|
||||
|
||||
OptionsPageWidget::OptionsPageWidget()
|
||||
{
|
||||
m_ui.setupUi(this);
|
||||
@@ -72,8 +86,8 @@ OptionsPage::OptionsPage(Core::IVersionControl *control, QObject *parent) :
|
||||
VcsClientOptionsPage(control, MercurialPlugin::client(), parent)
|
||||
{
|
||||
setId(VcsBase::Constants::VCS_ID_MERCURIAL);
|
||||
setDisplayName(tr("Mercurial"));
|
||||
setWidgetFactory([]() { return new OptionsPageWidget; });
|
||||
setDisplayName(OptionsPageWidget::tr("Mercurial"));
|
||||
setWidgetFactory([] { return new OptionsPageWidget; });
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user