summaryrefslogtreecommitdiff
path: root/src/messagebar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/messagebar.cpp')
-rw-r--r--src/messagebar.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/messagebar.cpp b/src/messagebar.cpp
index 4cf02734..0e89ac56 100644
--- a/src/messagebar.cpp
+++ b/src/messagebar.cpp
@@ -43,22 +43,22 @@ MessageBar::MessageBar(const QString &message, QWidget *parent)
{
connect(this, SIGNAL(accepted()), this, SLOT(hideAndDelete()));
connect(this, SIGNAL(rejected()), this, SLOT(hideAndDelete()));
-
+
setMessageType(KMessageWidget::Warning);
-
+
QSize sz = size();
- sz.setWidth( qobject_cast<QWidget *>(parent)->size().width() );
+ sz.setWidth(qobject_cast<QWidget *>(parent)->size().width());
resize(sz);
-
+
setCloseButtonVisible(false);
-
- setText( message );
- QAction *acceptAction = new QAction( i18n("Yes"), this );
+ setText(message);
+
+ QAction *acceptAction = new QAction(i18n("Yes"), this);
connect(acceptAction, SIGNAL(triggered(bool)), this, SIGNAL(accepted()));
addAction(acceptAction);
- QAction *rejectAction = new QAction( i18n("No"), this );
+ QAction *rejectAction = new QAction(i18n("No"), this);
connect(rejectAction, SIGNAL(triggered(bool)), this, SIGNAL(rejected()));
addAction(rejectAction);
}