diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-07-17 16:46:24 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-07-17 16:46:24 +0200 |
commit | 82167d2422a4b6e3071dca68cf65a66e1da41ab4 (patch) | |
tree | 03c1f95a2aa60c48822a463cc3812b5c3415991e /src/messagebar.cpp | |
parent | Improving tab previews (diff) | |
download | rekonq-82167d2422a4b6e3071dca68cf65a66e1da41ab4.tar.xz |
A round of the "new" astyle 2.01...
Diffstat (limited to 'src/messagebar.cpp')
-rw-r--r-- | src/messagebar.cpp | 16 |
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); } |