Skip to content

Fix #672 - Add description, modelerDescription, UID and version UID to bcl results#697

Merged
macumber merged 5 commits intodevelopfrom
672_BCL_HumanReadable_Description
Mar 30, 2024
Merged

Fix #672 - Add description, modelerDescription, UID and version UID to bcl results#697
macumber merged 5 commits intodevelopfrom
672_BCL_HumanReadable_Description

Conversation

@jmarrec
Copy link
Copy Markdown
Collaborator

@jmarrec jmarrec commented Mar 26, 2024

image

@jmarrec jmarrec self-assigned this Mar 26, 2024
@jmarrec jmarrec requested a review from macumber March 26, 2024 13:51
Comment on lines +521 to +525
{
auto* content = new QLabel(m_modelerDescription);
mainLayout->addWidget(content);
content->setWordWrap(true);
}
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternative (#include <QTextEdit> needed atop)

Suggested change
{
auto* content = new QLabel(m_modelerDescription);
mainLayout->addWidget(content);
content->setWordWrap(true);
}
{
auto* content = new QTextEdit(m_modelerDescription);
content->setStyleSheet("background: #E6E6E6;");
content->setFixedHeight(70);
content->setAcceptRichText(false);
content->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
content->setTabChangesFocus(true);
content->setReadOnly(true);
mainLayout->addWidget(content);
}

image

image

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'd need scroll bars here, either for each section like this or one scroll bar for the whole preview.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the whole preview is scrollable already.

label = new QLabel(m_error->c_str());
mainLayout->addWidget(label);

// TODO: why this empty label?
Copy link
Copy Markdown
Collaborator

@macumber macumber Mar 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My guess is it was for spacing? Probably ok to remove as long as it still looks ok

@macumber
Copy link
Copy Markdown
Collaborator

Nice work!

@macumber macumber merged commit 3cdba96 into develop Mar 30, 2024
@macumber macumber deleted the 672_BCL_HumanReadable_Description branch March 30, 2024 15:09
@github-actions github-actions bot locked and limited conversation to collaborators Mar 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BCL Viewer Human Readable Descriptions

2 participants