X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fresizingstackedwidget.cpp;h=53bd473317c3968a6d17ecf5dd099bef41e22842;hp=b3fbe789ab19836efffa648e2062bd8fb14eaffb;hb=900cce213a6ed000b7131a05a0dec7d04b35b023;hpb=1cb02004ee5973b89368bd84f234d4652794690d diff --git a/src/uisupport/resizingstackedwidget.cpp b/src/uisupport/resizingstackedwidget.cpp index b3fbe789..53bd4733 100644 --- a/src/uisupport/resizingstackedwidget.cpp +++ b/src/uisupport/resizingstackedwidget.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -22,7 +22,7 @@ ResizingStackedWidget::ResizingStackedWidget(QWidget *parent) : QStackedWidget(parent) { - connect(this, SIGNAL(currentChanged(int)), SLOT(indexChanged(int))); + connect(this, &QStackedWidget::currentChanged, this, &ResizingStackedWidget::indexChanged); } @@ -30,7 +30,7 @@ QSize ResizingStackedWidget::sizeHint() const { QWidget *widget = currentWidget(); if (!widget) - return QSize(); + return {}; return widget->sizeHint(); }