Commit e0d7999f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use auto vs auto * where it's possible

parent 0c7a6960
Pipeline #49680 skipped
......@@ -22,7 +22,7 @@ GravatarConfigureSettingsDialog::GravatarConfigureSettingsDialog(QWidget *parent
: QDialog(parent)
{
setWindowTitle(i18nc("@title:window", "Configure Gravatar"));
auto *topLayout = new QVBoxLayout(this);
auto topLayout = new QVBoxLayout(this);
topLayout->setObjectName(QStringLiteral("toplayout"));
mGravatarConfigureSettings = new GravatarConfigureSettingsWidget(this);
......
......@@ -22,7 +22,7 @@ using namespace PimCommon::ConfigureImmutableWidgetUtils;
GravatarConfigureSettingsWidget::GravatarConfigureSettingsWidget(QWidget *parent)
: QWidget(parent)
{
auto *topLayout = new QVBoxLayout(this);
auto topLayout = new QVBoxLayout(this);
topLayout->setObjectName(QStringLiteral("mainlayout"));
topLayout->setContentsMargins(0, 0, 0, 0);
mUseDefaultPixmap = new QCheckBox(i18n("Use Default Image"), this);
......@@ -39,7 +39,7 @@ GravatarConfigureSettingsWidget::GravatarConfigureSettingsWidget(QWidget *parent
connect(mUseLibravatar, &QCheckBox::toggled, mFallbackGravatar, &QCheckBox::setEnabled);
mFallbackGravatar->setEnabled(false);
auto *cacheSizeLayout = new QHBoxLayout;
auto cacheSizeLayout = new QHBoxLayout;
topLayout->addLayout(cacheSizeLayout);
QLabel *lab = new QLabel(i18n("Gravatar Cache Size:"), this);
lab->setObjectName(QStringLiteral("gravatarcachesizelabel"));
......@@ -57,7 +57,7 @@ GravatarConfigureSettingsWidget::GravatarConfigureSettingsWidget(QWidget *parent
separator->setObjectName(QStringLiteral("separator"));
topLayout->addWidget(separator);
auto *buttonLayout = new QHBoxLayout;
auto buttonLayout = new QHBoxLayout;
topLayout->addLayout(buttonLayout);
mClearGravatarCache = new QPushButton(i18n("Clear Gravatar Cache"), this);
mClearGravatarCache->setObjectName(QStringLiteral("cleargravatarcachebutton"));
......
......@@ -33,7 +33,7 @@ GravatarConfigWidget::GravatarConfigWidget(QWidget *parent)
: QWidget(parent)
, d(new Gravatar::GravatarConfigWidgetPrivate)
{
auto *mainLayout = new QHBoxLayout(this);
auto mainLayout = new QHBoxLayout(this);
mainLayout->setContentsMargins(0, 0, 0, 0);
d->mEnableGravatarSupport = new QCheckBox(i18n("Enable Gravatar Support"));
......
......@@ -14,7 +14,7 @@ using namespace Gravatar;
GravatarDownloadPixmapDialog::GravatarDownloadPixmapDialog(QWidget *parent)
: QDialog(parent)
{
auto *mainLayout = new QVBoxLayout(this);
auto mainLayout = new QVBoxLayout(this);
mGravatarDownloadPixmapWidget = new Gravatar::GravatarDownloadPixmapWidget(this);
mGravatarDownloadPixmapWidget->setObjectName(QStringLiteral("gravatarwidget"));
mainLayout->addWidget(mGravatarDownloadPixmapWidget);
......
......@@ -18,8 +18,8 @@ using namespace Gravatar;
GravatarDownloadPixmapWidget::GravatarDownloadPixmapWidget(QWidget *parent)
: QWidget(parent)
{
auto *mainLayout = new QVBoxLayout(this);
auto *hbox = new QHBoxLayout;
auto mainLayout = new QVBoxLayout(this);
auto hbox = new QHBoxLayout;
mainLayout->addLayout(hbox);
QLabel *lab = new QLabel(i18n("Email:"));
lab->setObjectName(QStringLiteral("labemail"));
......@@ -77,7 +77,7 @@ void GravatarDownloadPixmapWidget::slotResolvUrlFinish(Gravatar::GravatarResolvU
void GravatarDownloadPixmapWidget::slotSearchButton()
{
mResultLabel->setText(QString());
auto *job = new Gravatar::GravatarResolvUrlJob(this);
auto job = new Gravatar::GravatarResolvUrlJob(this);
job->setEmail(mLineEdit->text());
// For testing
// job->setUseDefaultPixmap(true);
......
......@@ -18,7 +18,7 @@ int main(int argc, char **argv)
parser.addHelpOption();
parser.process(app);
auto *w = new Gravatar::GravatarDownloadPixmapWidget;
auto w = new Gravatar::GravatarDownloadPixmapWidget;
w->show();
int ret = app.exec();
delete w;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment