diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2019-04-23 18:32:56 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2019-04-29 10:35:33 +0000 |
commit | e9cf8a4e3e4a95c738486b7e90a219c3fa9afc8f (patch) | |
tree | e70b6b8bc5475810d24c4defd7bee1576ba8438f /src/plugins/serialterminal | |
parent | 4ebcf52de96c4a99bb3368128f9a1c7d59f6f9f4 (diff) | |
download | qt-creator-e9cf8a4e3e4a95c738486b7e90a219c3fa9afc8f.tar.gz |
Remove a couple of "setAutoRaise(true)" for toolbar buttons
Most of the QToolButtons in the toolbars don't set autoRaise, and they
are fine. I assume that those who do set it, just do it for because that
line was copy/pasted so often.
Change-Id: I71341ddbd26a586d34713661ec538b37033685e5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/serialterminal')
-rw-r--r-- | src/plugins/serialterminal/serialoutputpane.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/serialterminal/serialoutputpane.cpp b/src/plugins/serialterminal/serialoutputpane.cpp index 34657313f1..e1eca5aec1 100644 --- a/src/plugins/serialterminal/serialoutputpane.cpp +++ b/src/plugins/serialterminal/serialoutputpane.cpp @@ -352,7 +352,6 @@ void SerialOutputPane::createToolButtons() m_connectButton = new QToolButton; m_connectButton->setIcon(Utils::Icons::RUN_SMALL_TOOLBAR.icon()); m_connectButton->setToolTip(tr("Connect")); - m_connectButton->setAutoRaise(true); m_connectButton->setEnabled(false); connect(m_connectButton, &QToolButton::clicked, this, &SerialOutputPane::connectControl); @@ -361,7 +360,6 @@ void SerialOutputPane::createToolButtons() m_disconnectButton = new QToolButton; m_disconnectButton->setIcon(Utils::Icons::STOP_SMALL_TOOLBAR.icon()); m_disconnectButton->setToolTip(tr("Disconnect")); - m_disconnectButton->setAutoRaise(true); m_disconnectButton->setEnabled(false); connect(m_disconnectButton, &QToolButton::clicked, @@ -371,7 +369,6 @@ void SerialOutputPane::createToolButtons() m_resetButton = new QToolButton; m_resetButton->setIcon(Utils::Icons::RELOAD.icon()); m_resetButton->setToolTip(tr("Reset Board")); - m_resetButton->setAutoRaise(true); m_resetButton->setEnabled(false); connect(m_resetButton, &QToolButton::clicked, @@ -381,7 +378,6 @@ void SerialOutputPane::createToolButtons() m_newButton = new QToolButton; m_newButton->setIcon(Utils::Icons::PLUS_TOOLBAR.icon()); m_newButton->setToolTip(tr("Add New Terminal")); - m_newButton->setAutoRaise(true); m_newButton->setEnabled(true); connect(m_newButton, &QToolButton::clicked, |