forked from qt-creator/qt-creator
Debugger: Modernize
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init modernize-use-equals-default Change-Id: I91a6874f0d7b94e9079ab4ef07c23c60c80be9c0 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -72,7 +72,7 @@ public:
|
||||
{}
|
||||
|
||||
private:
|
||||
void highlightBlock(const QString &text)
|
||||
void highlightBlock(const QString &text) override
|
||||
{
|
||||
using Utils::Theme;
|
||||
QTextCharFormat format;
|
||||
@@ -125,7 +125,7 @@ public:
|
||||
{}
|
||||
|
||||
private:
|
||||
void highlightBlock(const QString &text)
|
||||
void highlightBlock(const QString &text) override
|
||||
{
|
||||
using Utils::Theme;
|
||||
Theme *theme = Utils::creatorTheme();
|
||||
@@ -172,7 +172,7 @@ public:
|
||||
this, &DebuggerPane::reloadDebuggingHelpers);
|
||||
}
|
||||
|
||||
void contextMenuEvent(QContextMenuEvent *ev)
|
||||
void contextMenuEvent(QContextMenuEvent *ev) override
|
||||
{
|
||||
QMenu *menu = createStandardContextMenu();
|
||||
menu->addAction(m_clearContentsAction);
|
||||
@@ -254,7 +254,7 @@ signals:
|
||||
void commandSelected(int);
|
||||
|
||||
private:
|
||||
void keyPressEvent(QKeyEvent *ev)
|
||||
void keyPressEvent(QKeyEvent *ev) override
|
||||
{
|
||||
if (ev->modifiers() == Qt::ControlModifier && ev->key() == Qt::Key_Return)
|
||||
emit executeLineRequested();
|
||||
@@ -264,7 +264,7 @@ private:
|
||||
QPlainTextEdit::keyPressEvent(ev);
|
||||
}
|
||||
|
||||
void mouseDoubleClickEvent(QMouseEvent *ev)
|
||||
void mouseDoubleClickEvent(QMouseEvent *ev) override
|
||||
{
|
||||
QString line = cursorForPosition(ev->pos()).block().text();
|
||||
int n = 0;
|
||||
@@ -283,13 +283,13 @@ private:
|
||||
emit commandSelected(n);
|
||||
}
|
||||
|
||||
void focusInEvent(QFocusEvent *ev)
|
||||
void focusInEvent(QFocusEvent *ev) override
|
||||
{
|
||||
emit statusMessageRequested(tr("Type Ctrl-<Return> to execute a line."), -1);
|
||||
QPlainTextEdit::focusInEvent(ev);
|
||||
}
|
||||
|
||||
void focusOutEvent(QFocusEvent *ev)
|
||||
void focusOutEvent(QFocusEvent *ev) override
|
||||
{
|
||||
emit statusMessageRequested(QString(), -1);
|
||||
QPlainTextEdit::focusOutEvent(ev);
|
||||
|
||||
Reference in New Issue
Block a user