forked from qt-creator/qt-creator
DiffEditor: Simplify makePatch
Store indices in controller and avoid passing them around. Change-Id: I49c80cb6cf6734a18f80ad5c7c441973d246708f Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
b01a6a4663
commit
20b836f59c
@@ -353,13 +353,12 @@ private slots:
|
||||
QString change, int lineNumber);
|
||||
void finishSubmoduleUpdate();
|
||||
void fetchFinished(const QVariant &cookie);
|
||||
void slotChunkActionsRequested(QMenu *menu, int diffFileIndex, int chunkIndex);
|
||||
void slotChunkActionsRequested(QMenu *menu, bool isValid);
|
||||
void slotStageChunk();
|
||||
void slotUnstageChunk();
|
||||
void branchesForCommit(const QString &revision);
|
||||
|
||||
private:
|
||||
QString makePatch(int diffFileIndex, int chunkIndex, bool revert) const;
|
||||
void stage(const QString &patch, bool revert);
|
||||
QByteArray readConfigBytes(const QString &workingDirectory, const QString &configVar) const;
|
||||
QTextCodec *getSourceCodec(const QString &file) const;
|
||||
@@ -442,8 +441,6 @@ private:
|
||||
QMap<QString, StashInfo> m_stashInfo;
|
||||
QStringList m_updatedSubmodules;
|
||||
bool m_disableEditor;
|
||||
int m_contextDiffFileIndex;
|
||||
int m_contextChunkIndex;
|
||||
QPointer<DiffEditor::DiffEditorController> m_contextController;
|
||||
QFutureSynchronizer<void> m_synchronizer; // for commit updates
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user