mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Revert two incorrect commits
Revert "Don't add a close button to KMessageWidget" This reverts commit75c9bcd726
. Revert "Remove unused variable" This reverts commit9edee3477a
. I was fixing the wrong problem... instead of removing the handling of the Close button I should have figured out why the close button was incorrectly shown in the first place. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3fd8e50044
commit
eca96ee8b7
1 changed files with 4 additions and 3 deletions
|
@ -101,9 +101,10 @@ void KMessageWidgetPrivate::createLayout()
|
|||
button->show();
|
||||
buttonLayout->addButton(button, QDialogButtonBox::QDialogButtonBox::AcceptRole);
|
||||
}
|
||||
//buttonLayout->addButton(closeButton, QDialogButtonBox::RejectRole);
|
||||
buttonLayout->addButton(closeButton, QDialogButtonBox::RejectRole);
|
||||
layout->addWidget(buttonLayout, 1, 0, 1, 2, Qt::AlignHCenter | Qt::AlignTop);
|
||||
} else {
|
||||
bool closeButtonVisible = closeButton->isVisible();
|
||||
QHBoxLayout *layout = new QHBoxLayout(content);
|
||||
layout->addWidget(iconLabel);
|
||||
layout->addWidget(textLabel);
|
||||
|
@ -113,9 +114,9 @@ void KMessageWidgetPrivate::createLayout()
|
|||
buttonLayout->addButton(button, QDialogButtonBox::QDialogButtonBox::AcceptRole);
|
||||
}
|
||||
|
||||
//buttonLayout->addButton(closeButton, QDialogButtonBox::RejectRole);
|
||||
buttonLayout->addButton(closeButton, QDialogButtonBox::RejectRole);
|
||||
// Something gets changed when added to the buttonLayout
|
||||
//closeButton->setVisible(closeButtonVisible);
|
||||
closeButton->setVisible(closeButtonVisible);
|
||||
layout->addWidget(buttonLayout);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue