- fix: When debugging, if value of the variable pointed by the mouse cursor is too long, tooltip will fill the whole screen.
This commit is contained in:
parent
0e4bae7b93
commit
b8f5f43d23
1
NEWS.md
1
NEWS.md
|
@ -7,6 +7,7 @@ Version 0.7.6
|
||||||
- enhancement: correctly handle auto indents for statement span many lines;
|
- enhancement: correctly handle auto indents for statement span many lines;
|
||||||
- enhancment: only use colors have good contrasts with the background in the class browser and code completion suggestion window
|
- enhancment: only use colors have good contrasts with the background in the class browser and code completion suggestion window
|
||||||
- fix: bottom and left panel properties not correctly saved when hiding the main window
|
- fix: bottom and left panel properties not correctly saved when hiding the main window
|
||||||
|
- fix: When debugging, if value of the variable pointed by the mouse cursor is too long, tooltip will fill the whole screen.
|
||||||
|
|
||||||
Version 0.7.5
|
Version 0.7.5
|
||||||
- enhancement: more accurate auto indent calculation
|
- enhancement: more accurate auto indent calculation
|
||||||
|
|
|
@ -1506,7 +1506,13 @@ void Editor::onGutterClicked(Qt::MouseButton button, int , int , int line)
|
||||||
void Editor::onTipEvalValueReady(const QString &value)
|
void Editor::onTipEvalValueReady(const QString &value)
|
||||||
{
|
{
|
||||||
if (mCurrentWord == mCurrentDebugTipWord) {
|
if (mCurrentWord == mCurrentDebugTipWord) {
|
||||||
QToolTip::showText(QCursor::pos(), mCurrentDebugTipWord + " = " + value );
|
QString newValue;
|
||||||
|
if (value.length()>100) {
|
||||||
|
newValue = value.left(100) + "...";
|
||||||
|
} else {
|
||||||
|
newValue = value;
|
||||||
|
}
|
||||||
|
QToolTip::showText(QCursor::pos(), mCurrentDebugTipWord + " = " + newValue);
|
||||||
}
|
}
|
||||||
disconnect(pMainWindow->debugger(), &Debugger::evalValueReady,
|
disconnect(pMainWindow->debugger(), &Debugger::evalValueReady,
|
||||||
this, &Editor::onTipEvalValueReady);
|
this, &Editor::onTipEvalValueReady);
|
||||||
|
|
|
@ -1159,6 +1159,8 @@
|
||||||
<addaction name="actionRun"/>
|
<addaction name="actionRun"/>
|
||||||
<addaction name="actionCompile_Run"/>
|
<addaction name="actionCompile_Run"/>
|
||||||
<addaction name="actionRebuild"/>
|
<addaction name="actionRebuild"/>
|
||||||
|
<addaction name="separator"/>
|
||||||
|
<addaction name="actionRun_Parameters"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QToolBar" name="toolbarDebug">
|
<widget class="QToolBar" name="toolbarDebug">
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
|
Loading…
Reference in New Issue