X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Ffontselector.cpp;h=bfa8b04b928cdfa434c04c649b87fa38bbc0a9da;hb=61f33c7895e324f6e95034d86897ad2e963653f1;hp=e9a3f5f60b580ffee3bf2682e44dd7dcc9415bdf;hpb=04315f46a16fc3627218377071e008b6b9744992;p=quassel.git diff --git a/src/uisupport/fontselector.cpp b/src/uisupport/fontselector.cpp index e9a3f5f6..bfa8b04b 100644 --- a/src/uisupport/fontselector.cpp +++ b/src/uisupport/fontselector.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 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 * @@ -28,9 +28,9 @@ FontSelector::FontSelector(QWidget *parent) : QWidget(parent) { - QHBoxLayout *layout = new QHBoxLayout(this); + auto *layout = new QHBoxLayout(this); QPushButton *chooseButton = new QPushButton(tr("Choose..."), this); - connect(chooseButton, SIGNAL(clicked()), SLOT(chooseFont())); + connect(chooseButton, &QAbstractButton::clicked, this, &FontSelector::chooseFont); layout->addWidget(_demo = new QLabel("Font")); layout->addWidget(chooseButton); @@ -55,7 +55,7 @@ void FontSelector::setSelectedFont(const QFont &font) void FontSelector::chooseFont() { bool ok; - QFont font = QFontDialog::getFont(&ok, _demo->font()); + QFont font = QFontDialog::getFont(&ok, _demo->font(), nullptr, QString(), QFontDialog::DontUseNativeDialog); if (ok) { setSelectedFont(font); }