forked from qt-creator/qt-creator
Debugger: Rework display length limitation systems
There are two values now, one to limit an entry in the L&E view (default 100) and a hard upper limit (at 1 mio). If displayed values are elided, the true length is shown in addition. Change-Id: I180b70446c18e258c164e5af75b88d4c8b6c53f2 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -121,6 +121,14 @@ CommonOptionsPageWidget::CommonOptionsPageWidget
|
||||
spinBoxMaximalStringLength->setSingleStep(1000);
|
||||
spinBoxMaximalStringLength->setValue(10000);
|
||||
|
||||
labelDisplayStringLimit = new QLabel(tr("Display string limit:"), behaviorBox);
|
||||
|
||||
spinBoxDisplayStringLimit = new QSpinBox(behaviorBox);
|
||||
spinBoxDisplayStringLimit->setSpecialValueText(tr("<unlimited>"));
|
||||
spinBoxDisplayStringLimit->setMaximum(10000);
|
||||
spinBoxDisplayStringLimit->setSingleStep(10);
|
||||
spinBoxDisplayStringLimit->setValue(100);
|
||||
|
||||
sourcesMappingWidget = new DebuggerSourcePathMappingWidget(this);
|
||||
|
||||
QHBoxLayout *horizontalLayout = new QHBoxLayout();
|
||||
@@ -128,6 +136,11 @@ CommonOptionsPageWidget::CommonOptionsPageWidget
|
||||
horizontalLayout->addWidget(spinBoxMaximalStackDepth);
|
||||
horizontalLayout->addStretch();
|
||||
|
||||
QHBoxLayout *horizontalLayout1 = new QHBoxLayout();
|
||||
horizontalLayout1->addWidget(labelDisplayStringLimit);
|
||||
horizontalLayout1->addWidget(spinBoxDisplayStringLimit);
|
||||
horizontalLayout1->addStretch();
|
||||
|
||||
QHBoxLayout *horizontalLayout2 = new QHBoxLayout();
|
||||
horizontalLayout2->addWidget(labelMaximalStringLength);
|
||||
horizontalLayout2->addWidget(spinBoxMaximalStringLength);
|
||||
@@ -148,7 +161,8 @@ CommonOptionsPageWidget::CommonOptionsPageWidget
|
||||
gridLayout->addWidget(checkBoxShowQmlObjectTree, 3, 1, 1, 1);
|
||||
gridLayout->addWidget(checkBoxKeepEditorStationaryWhileStepping, 4, 1, 1, 1);
|
||||
gridLayout->addWidget(checkBoxRegisterForPostMortem, 5, 1, 1, 1);
|
||||
gridLayout->addLayout(horizontalLayout2, 6, 1, 1, 2);
|
||||
gridLayout->addLayout(horizontalLayout1, 6, 1, 1, 2);
|
||||
gridLayout->addLayout(horizontalLayout2, 7, 1, 1, 2);
|
||||
|
||||
QVBoxLayout *verticalLayout = new QVBoxLayout(this);
|
||||
verticalLayout->addWidget(behaviorBox);
|
||||
@@ -193,6 +207,7 @@ CommonOptionsPageWidget::CommonOptionsPageWidget
|
||||
m_group->insert(dc->action(UseAddressInStackView), 0);
|
||||
m_group->insert(dc->action(AlwaysAdjustStackColumnWidths), 0);
|
||||
m_group->insert(dc->action(MaximalStackDepth), spinBoxMaximalStackDepth);
|
||||
m_group->insert(dc->action(DisplayStringLimit), spinBoxDisplayStringLimit);
|
||||
m_group->insert(dc->action(MaximalStringLength), spinBoxMaximalStringLength);
|
||||
m_group->insert(dc->action(ShowStdNamespace), 0);
|
||||
m_group->insert(dc->action(ShowQtNamespace), 0);
|
||||
|
||||
Reference in New Issue
Block a user