forked from qt-creator/qt-creator
DiffEditor: Move SelectableTextEditorWidget to internal
Change-Id: I4fefca2c780f17c68e73bbdaee9528c8945c00e4 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include <QTextBlock>
|
||||
|
||||
namespace DiffEditor {
|
||||
namespace Internal {
|
||||
|
||||
SelectableTextEditorWidget::SelectableTextEditorWidget(Core::Id id, QWidget *parent)
|
||||
: TextEditorWidget(parent)
|
||||
@@ -157,5 +158,5 @@ void SelectableTextEditorWidget::paintBlock(QPainter *painter,
|
||||
TextEditorWidget::paintBlock(painter, block, offset, newSelections, clipRect);
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace DiffEditor
|
||||
|
||||
|
@@ -31,12 +31,12 @@
|
||||
#ifndef SELECTABLETEXTEDITORWIDGET_H
|
||||
#define SELECTABLETEXTEDITORWIDGET_H
|
||||
|
||||
#include "diffeditor_global.h"
|
||||
#include <texteditor/texteditor.h>
|
||||
|
||||
namespace DiffEditor {
|
||||
namespace Internal {
|
||||
|
||||
class DIFFEDITOR_EXPORT DiffSelection
|
||||
class DiffSelection
|
||||
{
|
||||
public:
|
||||
DiffSelection() : start(-1), end(-1), format(0) {}
|
||||
@@ -48,8 +48,7 @@ public:
|
||||
QTextCharFormat *format;
|
||||
};
|
||||
|
||||
class DIFFEDITOR_EXPORT SelectableTextEditorWidget
|
||||
: public TextEditor::TextEditorWidget
|
||||
class SelectableTextEditorWidget : public TextEditor::TextEditorWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -70,6 +69,7 @@ private:
|
||||
QMap<int, QList<DiffSelection> > m_diffSelections;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace DiffEditor
|
||||
|
||||
#endif // SELECTABLETEXTEDITORWIDGET_H
|
||||
|
Reference in New Issue
Block a user