forked from qt-creator/qt-creator
Port to new connect api
Change-Id: I873a36601d54065b61d0666558b93dc839ad0dfc Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -187,8 +187,7 @@ QWidget *MemcheckErrorDelegate::createDetailsWidget(const QFont & font,
|
||||
errorLocation(errorIndex, error, /*link=*/ true,
|
||||
/*absolutePath=*/ false, linkStyle),
|
||||
linkStyle));
|
||||
connect(errorLabel, &QLabel::linkActivated,
|
||||
this, &MemcheckErrorDelegate::openLinkInEditor);
|
||||
connect(errorLabel, &QLabel::linkActivated, this, &MemcheckErrorDelegate::openLinkInEditor);
|
||||
layout->addWidget(errorLabel);
|
||||
|
||||
const QVector<Stack> stacks = error.stacks();
|
||||
@@ -223,8 +222,7 @@ QWidget *MemcheckErrorDelegate::createDetailsWidget(const QFont & font,
|
||||
QFont fixedPitchFont = font;
|
||||
fixedPitchFont.setFixedPitch(true);
|
||||
frameLabel->setFont(fixedPitchFont);
|
||||
connect(frameLabel, &QLabel::linkActivated,
|
||||
this, &MemcheckErrorDelegate::openLinkInEditor);
|
||||
connect(frameLabel, &QLabel::linkActivated, this, &MemcheckErrorDelegate::openLinkInEditor);
|
||||
// pad frameNr to 2 chars since only 50 frames max are supported by valgrind
|
||||
const QString displayText = displayTextTemplate
|
||||
.arg(frameNr++, 2).arg(frameName);
|
||||
|
||||
Reference in New Issue
Block a user