1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

AboutDialog: Remove special handling for Windows

This commit is contained in:
David Rosca 2018-01-10 14:15:36 +01:00
parent 3833447767
commit 76e0400dd1

View File

@ -1,6 +1,6 @@
/* ============================================================
* Falkon - Qt web browser
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com>
* Copyright (C) 2010-2018 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -26,10 +26,6 @@
#include <QWebEnginePage>
#include <QWebEngineProfile>
#ifdef Q_OS_WIN
#include <QtWin>
#endif
AboutDialog::AboutDialog(QWidget* parent)
: QDialog(parent)
, ui(new Ui::AboutDialog)
@ -40,21 +36,10 @@ AboutDialog::AboutDialog(QWidget* parent)
ui->setupUi(this);
ui->label->setPixmap(QIcon(QSL(":icons/other/about.png")).pixmap(300, 130));
#ifdef Q_OS_WIN
if (QtWin::isCompositionEnabled()) {
QtWin::extendFrameIntoClientArea(this, -1, -1, -1, -1);
ui->verticalLayout->setContentsMargins(0, 0, 0, 0);
}
#endif
connect(ui->buttonBox, SIGNAL(clicked(QAbstractButton*)), this, SLOT(close()));
connect(ui->authorsButton, SIGNAL(clicked()), this, SLOT(buttonClicked()));
showAbout();
#ifdef Q_OS_WIN
resize(300, height());
#endif
}
void AboutDialog::buttonClicked()