|
|
|
|
@ -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() |
|
|
|
|
|