forked from qt-creator/qt-creator
Synchronize horizontal scroll bars in diff editor
Synchronize horizontal scroll bars by default. Added corner widget to toggle synchronization off. Change-Id: I52316f1d9399b9ad21a346d65873b37ce0a9b98f Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -92,10 +92,13 @@ protected:
|
||||
TextEditor::SnippetEditorWidget *rightEditor() const;
|
||||
|
||||
private slots:
|
||||
void leftSliderChanged();
|
||||
void rightSliderChanged();
|
||||
void leftVSliderChanged();
|
||||
void rightVSliderChanged();
|
||||
void leftHSliderChanged();
|
||||
void rightHSliderChanged();
|
||||
void leftDocumentSizeChanged();
|
||||
void rightDocumentSizeChanged();
|
||||
void toggleScrollBarSynchronization(bool on);
|
||||
|
||||
private:
|
||||
struct DiffList {
|
||||
@@ -130,6 +133,7 @@ private:
|
||||
QList<FileData> m_contextFileData; // ultimate data to be shown, contextLinesNumber taken into account
|
||||
int m_contextLinesNumber;
|
||||
bool m_ignoreWhitespaces;
|
||||
bool m_syncScrollBars;
|
||||
|
||||
bool m_foldingBlocker;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user