mdem and error background

This commit is contained in:
jorenchik
2024-10-06 12:38:59 +03:00
parent 505d0006dd
commit 5c3cbfa58a

View File

@@ -76,6 +76,8 @@ void showBacklabels(Mdem *mdem) {
}
}
auto mdemBackground = "#F7F7F7";
Mdem* makeMdem() {
auto mdem = new Mdem;
mdem->wMdem.setLayout(&mdem->vMdem);
@@ -92,11 +94,12 @@ Mdem* makeMdem() {
"border-right: 1px solid gray;"
"border-bottom: 1px solid gray;"
"border-left: 1px solid gray;"
"background: %2;"
"} "
"QWidget#%1 > QWidget[first=\"true\"] {"
"border-top: 1px solid gray;"
"}"
).arg(id));
).arg(id, mdemBackground));
// Add Front Content
mdem->hFront.addWidget(&mdem->wFrontText);
@@ -352,9 +355,12 @@ ErrorView *makeErrorView() {
errorView->box.setLayout(&errorView->layout);
errorView->box.setMinimumHeight(30);
errorView->box.setStyleSheet(
QString(
"QWidget#error-box {"
"border: 1px solid red;"
"background: %2;"
"}"
).arg(mdemBackground)
);
errorView->layout.addWidget(&errorView->label);
errorView->label.setWordWrap(true);