X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fresizingstackedwidget.cpp;h=b3fbe789ab19836efffa648e2062bd8fb14eaffb;hp=fe6ffd71efd14be8d8315c4cfdbf7b1cc531cc8a;hb=6806244fe047e06b7bedb0cfa55b2b8cdddf7c6d;hpb=96f84c21f30180cc52471715d2e2d3b3ede906a4 diff --git a/src/uisupport/resizingstackedwidget.cpp b/src/uisupport/resizingstackedwidget.cpp index fe6ffd71..b3fbe789 100644 --- a/src/uisupport/resizingstackedwidget.cpp +++ b/src/uisupport/resizingstackedwidget.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2015 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,24 +15,28 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include "resizingstackedwidget.h" ResizingStackedWidget::ResizingStackedWidget(QWidget *parent) : QStackedWidget(parent) { - connect(this, SIGNAL(currentChanged(int)), SLOT(indexChanged(int))); + connect(this, SIGNAL(currentChanged(int)), SLOT(indexChanged(int))); } -QSize ResizingStackedWidget::sizeHint() const { - QWidget *widget = currentWidget(); - if(!widget) - return QSize(); - return widget->sizeHint(); + +QSize ResizingStackedWidget::sizeHint() const +{ + QWidget *widget = currentWidget(); + if (!widget) + return QSize(); + return widget->sizeHint(); } -void ResizingStackedWidget::indexChanged(int index) { - Q_UNUSED(index) - updateGeometry(); + +void ResizingStackedWidget::indexChanged(int index) +{ + Q_UNUSED(index) + updateGeometry(); }