mirror of
https://invent.kde.org/network/falkon.git
synced 2024-09-22 18:22:10 +02:00
30 lines
811 B
C++
30 lines
811 B
C++
|
#include "mousegesturessettingsdialog.h"
|
||
|
#include "ui_mousegesturessettingsdialog.h"
|
||
|
#include "globalfunctions.h"
|
||
|
|
||
|
MouseGesturesSettingsDialog::MouseGesturesSettingsDialog(QWidget* parent)
|
||
|
: QDialog(parent)
|
||
|
, ui(new Ui::MouseGesturesSettingsDialog)
|
||
|
{
|
||
|
ui->setupUi(this);
|
||
|
setAttribute(Qt::WA_DeleteOnClose);
|
||
|
|
||
|
connect(ui->licenseButton, SIGNAL(clicked()), this, SLOT(showLicense()));
|
||
|
}
|
||
|
|
||
|
MouseGesturesSettingsDialog::~MouseGesturesSettingsDialog()
|
||
|
{
|
||
|
delete ui;
|
||
|
}
|
||
|
|
||
|
void MouseGesturesSettingsDialog::showLicense()
|
||
|
{
|
||
|
QTextBrowser* b = new QTextBrowser();
|
||
|
b->setAttribute(Qt::WA_DeleteOnClose);
|
||
|
b->setWindowTitle(tr("License Viewer"));
|
||
|
b->resize(450, 500);
|
||
|
b->setText(qz_readAllFileContents(":mousegestures/data/copyright"));
|
||
|
qz_centerWidgetOnScreen(b);
|
||
|
b->show();
|
||
|
}
|