From 82167d2422a4b6e3071dca68cf65a66e1da41ab4 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 17 Jul 2011 16:46:24 +0200 Subject: A round of the "new" astyle 2.01... --- src/messagebar.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/messagebar.cpp') 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(parent)->size().width() ); + sz.setWidth(qobject_cast(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); } -- cgit v1.2.1