clazy: Convert many old-style connects into function pointer based
[quassel.git] / src / uisupport / resizingstackedwidget.cpp
index edf9155..53bd473 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2016 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();
 }