code clean up

This commit is contained in:
Roy Qu 2024-03-13 19:19:10 +08:00
parent e67e329ef1
commit a946450014
4 changed files with 1 additions and 60 deletions

View File

@ -208,7 +208,6 @@ SOURCES += \
utils/parsearg.cpp \ utils/parsearg.cpp \
widgets/coloredit.cpp \ widgets/coloredit.cpp \
widgets/compileargumentswidget.cpp \ widgets/compileargumentswidget.cpp \
widgets/consolewidget.cpp \
widgets/customdisablediconengine.cpp \ widgets/customdisablediconengine.cpp \
widgets/customfilesystemmodel.cpp \ widgets/customfilesystemmodel.cpp \
widgets/custommakefileinfodialog.cpp \ widgets/custommakefileinfodialog.cpp \
@ -342,7 +341,6 @@ HEADERS += \
common.h \ common.h \
widgets/coloredit.h \ widgets/coloredit.h \
widgets/compileargumentswidget.h \ widgets/compileargumentswidget.h \
widgets/consolewidget.h \
widgets/customdisablediconengine.h \ widgets/customdisablediconengine.h \
widgets/customfilesystemmodel.h \ widgets/customfilesystemmodel.h \
widgets/custommakefileinfodialog.h \ widgets/custommakefileinfodialog.h \

View File

@ -997,7 +997,7 @@ void Debugger::syncFinishedParsing()
for (const QString& line:mClient->fullOutput()) { for (const QString& line:mClient->fullOutput()) {
pMainWindow->addDebugOutput(line); pMainWindow->addDebugOutput(line);
} }
pMainWindow->addDebugOutput("(gdb)"); //pMainWindow->addDebugOutput("(gdb)");
} else { } else {
// if (mClient->currentCmd() && mClient->currentCmd()->command == "disas") { // if (mClient->currentCmd() && mClient->currentCmd()->command == "disas") {

View File

@ -1,22 +0,0 @@
/*
* Copyright (C) 2020-2022 Roy Qu (royqh1979@gmail.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "consolewidget.h"
ConsoleWidget::ConsoleWidget(QWidget *parent):QTextEdit(parent)
{
}

View File

@ -1,35 +0,0 @@
/*
* Copyright (C) 2020-2022 Roy Qu (royqh1979@gmail.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef CONSOLEWIDGET_H
#define CONSOLEWIDGET_H
#include <QTextEdit>
class ConsoleWidget : public QTextEdit
{
Q_OBJECT
public:
explicit ConsoleWidget(QWidget* parent = nullptr);
private:
QString mCurrentCommand;
QStringList mCommandHistory;
int mHistoryIndex;
int mHistorySize;
QString mPrompt;
};
#endif // CONSOLEWIDGET_H