Remove some ancient, dead, test code

Change-Id: Id252fbddd90c2ca3658318c3f256d3a7a0016cef
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2016-10-07 08:51:54 +02:00
committed by Jarek Kobus
parent ad615ece16
commit a2ec71b30a
2 changed files with 0 additions and 25 deletions

View File

@@ -113,8 +113,6 @@
#include <QTimer>
#include <QToolBar>
//#define DO_FOO
/*!
\namespace TextEditor
\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,
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
m_formatRange = true;
m_parenthesesMatchingTimer.setSingleShot(true);
@@ -7217,19 +7207,6 @@ void TextEditorWidget::setRefactorMarkers(const RefactorMarkers &markers)
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)
{
positionBlock = other.positionBlock;