forked from qt-creator/qt-creator
Remove some ancient, dead, test code
Change-Id: Id252fbddd90c2ca3658318c3f256d3a7a0016cef Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -113,8 +113,6 @@
|
|||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QToolBar>
|
#include <QToolBar>
|
||||||
|
|
||||||
//#define DO_FOO
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\namespace TextEditor
|
\namespace TextEditor
|
||||||
\brief The TextEditor namespace contains the base text editor and several classes which
|
\brief The TextEditor namespace contains the base text editor and several classes which
|
||||||
@@ -727,14 +725,6 @@ void TextEditorWidgetPrivate::ctor(const QSharedPointer<TextDocument> &doc)
|
|||||||
QObject::connect(q, &QPlainTextEdit::selectionChanged,
|
QObject::connect(q, &QPlainTextEdit::selectionChanged,
|
||||||
this, &TextEditorWidgetPrivate::slotSelectionChanged);
|
this, &TextEditorWidgetPrivate::slotSelectionChanged);
|
||||||
|
|
||||||
// (void) new QShortcut(tr("CTRL+L"), this, SLOT(centerCursor()), 0, Qt::WidgetShortcut);
|
|
||||||
// (void) new QShortcut(tr("F9"), this, SLOT(slotToggleMark()), 0, Qt::WidgetShortcut);
|
|
||||||
// (void) new QShortcut(tr("F11"), this, SLOT(slotToggleBlockVisible()));
|
|
||||||
|
|
||||||
#ifdef DO_FOO
|
|
||||||
(void) new QShortcut(TextEditorWidget::tr("CTRL+D"), this, SLOT(doFoo()));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// parentheses matcher
|
// parentheses matcher
|
||||||
m_formatRange = true;
|
m_formatRange = true;
|
||||||
m_parenthesesMatchingTimer.setSingleShot(true);
|
m_parenthesesMatchingTimer.setSingleShot(true);
|
||||||
@@ -7217,19 +7207,6 @@ void TextEditorWidget::setRefactorMarkers(const RefactorMarkers &markers)
|
|||||||
requestBlockUpdate(marker.cursor.block());
|
requestBlockUpdate(marker.cursor.block());
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextEditorWidget::doFoo()
|
|
||||||
{
|
|
||||||
#ifdef DO_FOO
|
|
||||||
qDebug() << Q_FUNC_INFO;
|
|
||||||
RefactorMarkers markers = d->m_refactorOverlay->markers();
|
|
||||||
RefactorMarker marker;
|
|
||||||
marker.tooltip = "Hello World";
|
|
||||||
marker.cursor = textCursor();
|
|
||||||
markers += marker;
|
|
||||||
setRefactorMarkers(markers);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
TextBlockSelection::TextBlockSelection(const TextBlockSelection &other)
|
TextBlockSelection::TextBlockSelection(const TextBlockSelection &other)
|
||||||
{
|
{
|
||||||
positionBlock = other.positionBlock;
|
positionBlock = other.positionBlock;
|
||||||
|
|||||||
@@ -593,8 +593,6 @@ protected slots:
|
|||||||
bool inFindScope(const QTextCursor &cursor);
|
bool inFindScope(const QTextCursor &cursor);
|
||||||
bool inFindScope(int selectionStart, int selectionEnd);
|
bool inFindScope(int selectionStart, int selectionEnd);
|
||||||
|
|
||||||
void doFoo();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Internal::TextEditorWidgetPrivate *d;
|
Internal::TextEditorWidgetPrivate *d;
|
||||||
friend class BaseTextEditor;
|
friend class BaseTextEditor;
|
||||||
|
|||||||
Reference in New Issue
Block a user