SerialTerminal: Some style fixes

Change-Id: I7415b613493540b250e1e5fba792a76c8e2d6b30
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2019-03-30 09:54:35 +01:00
committed by André Hartmann
parent 8deb1f3b4f
commit 295fb99cc6
2 changed files with 6 additions and 7 deletions

View File

@@ -305,7 +305,7 @@ void SerialOutputPane::createNewOutputWindow(SerialControl *rc)
static int counter = 0;
Core::Id contextId = Core::Id(Constants::C_SERIAL_OUTPUT).withSuffix(counter++);
Core::Context context(contextId);
Core::OutputWindow *ow = new Core::OutputWindow(context, QString(), m_tabWidget);
auto ow = new Core::OutputWindow(context, QString(), m_tabWidget);
using TextEditor::TextEditorSettings;
auto fontSettingsChanged = [ow] {
ow->setBaseFont(TextEditorSettings::fontSettings().font());
@@ -694,7 +694,7 @@ void SerialOutputPane::connectControl()
current->setBaudRate(m_devicesModel->baudRate(m_baudRateSelection->currentIndex()));
// Gray out old and connect
if (index != -1) {
auto& tab = m_serialControlTabs[index];
auto &tab = m_serialControlTabs[index];
handleOldOutput(tab.window);
tab.window->scrollToBottom();
}

View File

@@ -36,10 +36,10 @@
#include <memory>
QT_BEGIN_NAMESPACE
class QToolButton;
class QButtonGroup;
class QAbstractButton;
class QButtonGroup;
class QComboBox;
class QToolButton;
QT_END_NAMESPACE
namespace Core { class OutputWindow; }
@@ -47,10 +47,10 @@ namespace Core { class OutputWindow; }
namespace SerialTerminal {
namespace Internal {
class SerialControl;
class TabWidget;
class ComboBox;
class ConsoleLineEdit;
class SerialControl;
class TabWidget;
class SerialOutputPane : public Core::IOutputPane
{
@@ -146,7 +146,6 @@ private:
void updateCloseActions();
std::unique_ptr<QWidget> m_mainWidget;
ConsoleLineEdit *m_inputLine = nullptr;
QComboBox *m_lineEndingsSelection = nullptr;