forked from qt-creator/qt-creator
Debugger: Don't let overlong filename stretch Creator window
Change-Id: I79cd3c471e09d04019833d09eea81d462ce477c9 Task-number: QTCREATORBUG-21885 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1452,8 +1452,9 @@ void DebuggerPluginPrivate::updatePresetState()
|
|||||||
if (startupRunConfigName.isEmpty() && startupProject)
|
if (startupRunConfigName.isEmpty() && startupProject)
|
||||||
startupRunConfigName = startupProject->displayName();
|
startupRunConfigName = startupProject->displayName();
|
||||||
|
|
||||||
|
// Restrict width, otherwise Creator gets too wide, see QTCREATORBUG-21885
|
||||||
const QString startToolTip =
|
const QString startToolTip =
|
||||||
canRun ? tr("Start debugging of \"%1\"").arg(startupRunConfigName) : whyNot;
|
canRun ? tr("Start debugging of startup project") : whyNot;
|
||||||
|
|
||||||
m_startAction.setToolTip(startToolTip);
|
m_startAction.setToolTip(startToolTip);
|
||||||
m_startAction.setText(canRun ? startToolTip : tr("Start Debugging"));
|
m_startAction.setText(canRun ? startToolTip : tr("Start Debugging"));
|
||||||
|
Reference in New Issue
Block a user