19#include "ui_mousegesturessettingsdialog.h"
28 , m_gestures(gestures)
30 setAttribute(Qt::WA_DeleteOnClose);
33 if (QApplication::isRightToLeft()) {
34 ui->label_5->setPixmap(QPixmap(
QSL(
":/mousegestures/data/right.gif")));
35 ui->label_6->setPixmap(QPixmap(
QSL(
":/mousegestures/data/left.gif")));
36 ui->label_18->setPixmap(QPixmap(
QSL(
":/mousegestures/data/up-right.gif")));
37 ui->label_20->setPixmap(QPixmap(
QSL(
":/mousegestures/data/up-left.gif")));
41 ui->mouseButtonComboBox->setCurrentIndex(m_gestures->
buttonToIndex());
44 setAttribute(Qt::WA_DeleteOnClose);
46 connect(ui->buttonBox, SIGNAL(accepted()),
this, SLOT(accepted()));
47 connect(ui->buttonBox, &QDialogButtonBox::rejected,
this, &QWidget::close);
48 connect(ui->licenseButton, &QAbstractButton::clicked,
this, &MouseGesturesSettingsDialog::showLicense);
56void MouseGesturesSettingsDialog::showLicense()
59 v->setLicenseFile(
QSL(
":mousegestures/data/copyright"));
64void MouseGesturesSettingsDialog::accepted()
void setRockerNavigationEnabled(bool enable)
bool rockerNavigationEnabled() const
void setGestureButtonByIndex(int index)
int buttonToIndex() const
MouseGesturesSettingsDialog(MouseGestures *gestures, QWidget *parent=nullptr)
~MouseGesturesSettingsDialog()