VCS: Modernize VcsBaseEditorWidgetPrivate initialization

Change-Id: Iff4f383ff7762994eb8ae77cea0f74044dfc73b9
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-03-28 22:18:07 +03:00
committed by Orgad Shaneh
parent a63681c1d2
commit cc81d0a7b2

View File

@@ -553,43 +553,34 @@ public:
QComboBox *entriesComboBox();
TextEditorWidget *q;
const VcsBaseEditorParameters *m_parameters;
const VcsBaseEditorParameters *m_parameters = nullptr;
QString m_workingDirectory;
QRegExp m_diffFilePattern;
QRegExp m_logEntryPattern;
QList<int> m_entrySections; // line number where this section starts
int m_cursorLine;
int m_cursorLine = -1;
QString m_annotateRevisionTextFormat;
QString m_annotatePreviousRevisionTextFormat;
QString m_copyRevisionTextFormat;
bool m_fileLogAnnotateEnabled;
VcsBaseEditorParameterWidget *m_configurationWidget;
bool m_mouseDragging;
VcsBaseEditorParameterWidget *m_configurationWidget = nullptr;
QList<AbstractTextCursorHandler *> m_textCursorHandlers;
QPointer<VcsCommand> m_command;
QObject *m_describeReceiver;
const char *m_describeSlot;
Utils::ProgressIndicator *m_progressIndicator;
QObject *m_describeReceiver = nullptr;
const char *m_describeSlot = nullptr;
Utils::ProgressIndicator *m_progressIndicator = nullptr;
bool m_fileLogAnnotateEnabled = false;
bool m_mouseDragging = false;
private:
QComboBox *m_entriesComboBox;
QComboBox *m_entriesComboBox = nullptr;
};
VcsBaseEditorWidgetPrivate::VcsBaseEditorWidgetPrivate(VcsBaseEditorWidget *editorWidget) :
q(editorWidget),
m_parameters(0),
m_cursorLine(-1),
m_annotateRevisionTextFormat(VcsBaseEditorWidget::tr("Annotate \"%1\"")),
m_copyRevisionTextFormat(VcsBaseEditorWidget::tr("Copy \"%1\"")),
m_fileLogAnnotateEnabled(false),
m_configurationWidget(0),
m_mouseDragging(false),
m_describeReceiver(0),
m_describeSlot(0),
m_progressIndicator(0),
m_entriesComboBox(0)
m_copyRevisionTextFormat(VcsBaseEditorWidget::tr("Copy \"%1\""))
{
m_textCursorHandlers.append(new ChangeTextCursorHandler(editorWidget));
m_textCursorHandlers.append(new UrlTextCursorHandler(editorWidget));