modernize: Reformat ALL the source... again!
[quassel.git] / src / uisupport / fontselector.cpp
index bfa8b04..ddece71 100644 (file)
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
+#include "fontselector.h"
+
 #include <QEvent>
 #include <QFontDialog>
 #include <QHBoxLayout>
 #include <QLabel>
 #include <QPushButton>
 
-#include "fontselector.h"
-
-FontSelector::FontSelector(QWidget *parent) : QWidget(parent)
+FontSelector::FontSelector(QWidget* parent)
+    : QWidget(parent)
 {
-    auto *layout = new QHBoxLayout(this);
-    QPushButton *chooseButton = new QPushButton(tr("Choose..."), this);
+    autolayout = new QHBoxLayout(this);
+    QPushButtonchooseButton = new QPushButton(tr("Choose..."), this);
     connect(chooseButton, &QAbstractButton::clicked, this, &FontSelector::chooseFont);
 
     layout->addWidget(_demo = new QLabel("Font"));
@@ -42,8 +43,7 @@ FontSelector::FontSelector(QWidget *parent) : QWidget(parent)
     _font = font();
 }
 
-
-void FontSelector::setSelectedFont(const QFont &font)
+void FontSelector::setSelectedFont(const QFont& font)
 {
     _font = font;
     _demo->setText(QString("%1 %2pt").arg(font.family()).arg(font.pointSize()));
@@ -51,7 +51,6 @@ void FontSelector::setSelectedFont(const QFont &font)
     emit fontChanged(font);
 }
 
-
 void FontSelector::chooseFont()
 {
     bool ok;
@@ -61,8 +60,7 @@ void FontSelector::chooseFont()
     }
 }
 
-
-void FontSelector::changeEvent(QEvent *e)
+void FontSelector::changeEvent(QEvent* e)
 {
     if (e->type() == QEvent::StyleChange) {
         _demo->setFont(_font);