diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-04 07:44:48 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-04 07:46:35 -0700 |
commit | 75c9bcd72668f5b5524e29291cce2a908fddcdaa (patch) | |
tree | f8e50105080e57183d918a67dce32dbecb0a62a3 /qt-ui | |
parent | 77a55db9d3e2e618c64f810a8bb664aa01ca7d22 (diff) | |
download | subsurface-75c9bcd72668f5b5524e29291cce2a908fddcdaa.tar.gz |
Don't add a close button to KMessageWidget
Commit 77a55db9d3e2 ("Use QDialogButtonBox in KMessageWidget") added a
close button to all our uses of that widget.
As much as I stare at the code I can't figure out why. For now I'll simply
brute-force disable them...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/kmessagewidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/kmessagewidget.cpp b/qt-ui/kmessagewidget.cpp index e03d10c75..9a7b734a2 100644 --- a/qt-ui/kmessagewidget.cpp +++ b/qt-ui/kmessagewidget.cpp @@ -101,7 +101,7 @@ 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(); @@ -114,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); }; |