refactor: hotkeydialog ui no longer base of the class
This commit is contained in:
parent
0298a132c1
commit
9167bf04f6
6 changed files with 95 additions and 75 deletions
|
|
@ -17,20 +17,23 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "HotkeyDialog.h"
|
#include "HotkeyDialog.h"
|
||||||
|
#include "ui_HotkeyDialog.h"
|
||||||
|
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
|
|
||||||
HotkeyDialog::HotkeyDialog(QWidget *parent, Hotkey &hotkey)
|
HotkeyDialog::HotkeyDialog(QWidget *parent, Hotkey &hotkey)
|
||||||
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
|
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
|
||||||
Ui::HotkeyDialogBase(),
|
ui{std::make_unique<Ui::HotkeyDialog>()},
|
||||||
m_Hotkey(hotkey)
|
m_Hotkey(hotkey)
|
||||||
{
|
{
|
||||||
setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
m_pKeySequenceWidgetHotkey->setText(m_Hotkey.text());
|
ui->m_pKeySequenceWidgetHotkey->setText(m_Hotkey.text());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HotkeyDialog::~HotkeyDialog() = default;
|
||||||
|
|
||||||
void HotkeyDialog::accept()
|
void HotkeyDialog::accept()
|
||||||
{
|
{
|
||||||
if (!sequenceWidget()->valid())
|
if (!sequenceWidget()->valid())
|
||||||
|
|
@ -39,3 +42,8 @@ void HotkeyDialog::accept()
|
||||||
hotkey().setKeySequence(sequenceWidget()->keySequence());
|
hotkey().setKeySequence(sequenceWidget()->keySequence());
|
||||||
QDialog::accept();
|
QDialog::accept();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const KeySequenceWidget *HotkeyDialog::sequenceWidget() const
|
||||||
|
{
|
||||||
|
return ui->m_pKeySequenceWidgetHotkey;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,16 +18,22 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Hotkey.h"
|
#include "Hotkey.h"
|
||||||
#include "ui_HotkeyDialogBase.h"
|
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
class HotkeyDialog : public QDialog, public Ui::HotkeyDialogBase
|
class KeySequenceWidget;
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class HotkeyDialog;
|
||||||
|
}
|
||||||
|
|
||||||
|
class HotkeyDialog : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
HotkeyDialog(QWidget *parent, Hotkey &hotkey);
|
HotkeyDialog(QWidget *parent, Hotkey &hotkey);
|
||||||
|
~HotkeyDialog() override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
const Hotkey &hotkey() const
|
const Hotkey &hotkey() const
|
||||||
|
|
@ -36,18 +42,17 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void accept();
|
void accept() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
const KeySequenceWidget *sequenceWidget() const
|
const KeySequenceWidget *sequenceWidget() const;
|
||||||
{
|
|
||||||
return m_pKeySequenceWidgetHotkey;
|
|
||||||
}
|
|
||||||
Hotkey &hotkey()
|
Hotkey &hotkey()
|
||||||
{
|
{
|
||||||
return m_Hotkey;
|
return m_Hotkey;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
std::unique_ptr<Ui::HotkeyDialog> ui;
|
||||||
Hotkey &m_Hotkey;
|
Hotkey &m_Hotkey;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>HotkeyDialogBase</class>
|
<class>HotkeyDialog</class>
|
||||||
<widget class="QDialog" name="HotkeyDialogBase">
|
<widget class="QDialog" name="HotkeyDialog">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
<connection>
|
<connection>
|
||||||
<sender>buttonBox</sender>
|
<sender>buttonBox</sender>
|
||||||
<signal>accepted()</signal>
|
<signal>accepted()</signal>
|
||||||
<receiver>HotkeyDialogBase</receiver>
|
<receiver>HotkeyDialog</receiver>
|
||||||
<slot>accept()</slot>
|
<slot>accept()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
<connection>
|
<connection>
|
||||||
<sender>buttonBox</sender>
|
<sender>buttonBox</sender>
|
||||||
<signal>rejected()</signal>
|
<signal>rejected()</signal>
|
||||||
<receiver>HotkeyDialogBase</receiver>
|
<receiver>HotkeyDialog</receiver>
|
||||||
<slot>reject()</slot>
|
<slot>reject()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ScreenSettingsDialog.h"
|
#include "ScreenSettingsDialog.h"
|
||||||
|
#include "ui_ScreenSettingsDialog.h"
|
||||||
|
|
||||||
#include "gui/config/Screen.h"
|
#include "gui/config/Screen.h"
|
||||||
#include "gui/styles.h"
|
#include "gui/styles.h"
|
||||||
|
|
@ -33,68 +34,70 @@ using enum ScreenConfig::Modifier;
|
||||||
using enum ScreenConfig::SwitchCorner;
|
using enum ScreenConfig::SwitchCorner;
|
||||||
using enum ScreenConfig::Fix;
|
using enum ScreenConfig::Fix;
|
||||||
|
|
||||||
|
ScreenSettingsDialog::~ScreenSettingsDialog() = default;
|
||||||
|
|
||||||
ScreenSettingsDialog::ScreenSettingsDialog(QWidget *parent, Screen *pScreen, const ScreenList *pScreens)
|
ScreenSettingsDialog::ScreenSettingsDialog(QWidget *parent, Screen *pScreen, const ScreenList *pScreens)
|
||||||
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
|
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
|
||||||
Ui::ScreenSettingsDialogBase(),
|
ui_{std::make_unique<Ui::ScreenSettingsDialog>()},
|
||||||
m_pScreen(pScreen)
|
m_pScreen(pScreen)
|
||||||
{
|
{
|
||||||
|
|
||||||
setupUi(this);
|
ui_->setupUi(this);
|
||||||
|
|
||||||
m_pLabelAliasError->setStyleSheet(kStyleErrorActiveLabel);
|
ui_->m_pLabelAliasError->setStyleSheet(kStyleErrorActiveLabel);
|
||||||
m_pLabelNameError->setStyleSheet(kStyleErrorActiveLabel);
|
ui_->m_pLabelNameError->setStyleSheet(kStyleErrorActiveLabel);
|
||||||
|
|
||||||
m_pLineEditName->setText(m_pScreen->name());
|
ui_->m_pLineEditName->setText(m_pScreen->name());
|
||||||
m_pLineEditName->setValidator(new validators::ScreenNameValidator(
|
ui_->m_pLineEditName->setValidator(new validators::ScreenNameValidator(
|
||||||
m_pLineEditName, new validators::ValidationError(this, m_pLabelNameError), pScreens
|
ui_->m_pLineEditName, new validators::ValidationError(this, ui_->m_pLabelNameError), pScreens
|
||||||
));
|
));
|
||||||
m_pLineEditName->selectAll();
|
ui_->m_pLineEditName->selectAll();
|
||||||
|
|
||||||
m_pLineEditAlias->setValidator(
|
ui_->m_pLineEditAlias->setValidator(new validators::AliasValidator(
|
||||||
new validators::AliasValidator(m_pLineEditAlias, new validators::ValidationError(this, m_pLabelAliasError))
|
ui_->m_pLineEditAlias, new validators::ValidationError(this, ui_->m_pLabelAliasError)
|
||||||
);
|
));
|
||||||
|
|
||||||
for (int i = 0; i < m_pScreen->aliases().count(); i++)
|
for (int i = 0; i < m_pScreen->aliases().count(); i++)
|
||||||
new QListWidgetItem(m_pScreen->aliases()[i], m_pListAliases);
|
new QListWidgetItem(m_pScreen->aliases()[i], ui_->m_pListAliases);
|
||||||
|
|
||||||
m_pComboBoxShift->setCurrentIndex(m_pScreen->modifier(static_cast<int>(Shift)));
|
ui_->m_pComboBoxShift->setCurrentIndex(m_pScreen->modifier(static_cast<int>(Shift)));
|
||||||
m_pComboBoxCtrl->setCurrentIndex(m_pScreen->modifier(static_cast<int>(Ctrl)));
|
ui_->m_pComboBoxCtrl->setCurrentIndex(m_pScreen->modifier(static_cast<int>(Ctrl)));
|
||||||
m_pComboBoxAlt->setCurrentIndex(m_pScreen->modifier(static_cast<int>(Alt)));
|
ui_->m_pComboBoxAlt->setCurrentIndex(m_pScreen->modifier(static_cast<int>(Alt)));
|
||||||
m_pComboBoxMeta->setCurrentIndex(m_pScreen->modifier(static_cast<int>(Meta)));
|
ui_->m_pComboBoxMeta->setCurrentIndex(m_pScreen->modifier(static_cast<int>(Meta)));
|
||||||
m_pComboBoxSuper->setCurrentIndex(m_pScreen->modifier(static_cast<int>(Super)));
|
ui_->m_pComboBoxSuper->setCurrentIndex(m_pScreen->modifier(static_cast<int>(Super)));
|
||||||
|
|
||||||
m_pCheckBoxCornerTopLeft->setChecked(m_pScreen->switchCorner(static_cast<int>(TopLeft)));
|
ui_->m_pCheckBoxCornerTopLeft->setChecked(m_pScreen->switchCorner(static_cast<int>(TopLeft)));
|
||||||
m_pCheckBoxCornerTopRight->setChecked(m_pScreen->switchCorner(static_cast<int>(TopRight)));
|
ui_->m_pCheckBoxCornerTopRight->setChecked(m_pScreen->switchCorner(static_cast<int>(TopRight)));
|
||||||
m_pCheckBoxCornerBottomLeft->setChecked(m_pScreen->switchCorner(static_cast<int>(BottomLeft)));
|
ui_->m_pCheckBoxCornerBottomLeft->setChecked(m_pScreen->switchCorner(static_cast<int>(BottomLeft)));
|
||||||
m_pCheckBoxCornerBottomRight->setChecked(m_pScreen->switchCorner(static_cast<int>(BottomRight)));
|
ui_->m_pCheckBoxCornerBottomRight->setChecked(m_pScreen->switchCorner(static_cast<int>(BottomRight)));
|
||||||
m_pSpinBoxSwitchCornerSize->setValue(m_pScreen->switchCornerSize());
|
ui_->m_pSpinBoxSwitchCornerSize->setValue(m_pScreen->switchCornerSize());
|
||||||
|
|
||||||
m_pCheckBoxCapsLock->setChecked(m_pScreen->fix(CapsLock));
|
ui_->m_pCheckBoxCapsLock->setChecked(m_pScreen->fix(CapsLock));
|
||||||
m_pCheckBoxNumLock->setChecked(m_pScreen->fix(NumLock));
|
ui_->m_pCheckBoxNumLock->setChecked(m_pScreen->fix(NumLock));
|
||||||
m_pCheckBoxScrollLock->setChecked(m_pScreen->fix(ScrollLock));
|
ui_->m_pCheckBoxScrollLock->setChecked(m_pScreen->fix(ScrollLock));
|
||||||
m_pCheckBoxXTest->setChecked(m_pScreen->fix(XTest));
|
ui_->m_pCheckBoxXTest->setChecked(m_pScreen->fix(XTest));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenSettingsDialog::accept()
|
void ScreenSettingsDialog::accept()
|
||||||
{
|
{
|
||||||
if (m_pLineEditName->text().isEmpty()) {
|
if (ui_->m_pLineEditName->text().isEmpty()) {
|
||||||
QMessageBox::warning(
|
QMessageBox::warning(
|
||||||
this, tr("Screen name is empty"),
|
this, tr("Screen name is empty"),
|
||||||
tr("The screen name cannot be empty. "
|
tr("The screen name cannot be empty. "
|
||||||
"Please either fill in a name or cancel the dialog.")
|
"Please either fill in a name or cancel the dialog.")
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
} else if (!m_pLabelNameError->text().isEmpty()) {
|
} else if (!ui_->m_pLabelNameError->text().isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pScreen->init();
|
m_pScreen->init();
|
||||||
|
|
||||||
m_pScreen->setName(m_pLineEditName->text());
|
m_pScreen->setName(ui_->m_pLineEditName->text());
|
||||||
|
|
||||||
for (int i = 0; i < m_pListAliases->count(); i++) {
|
for (int i = 0; i < ui_->m_pListAliases->count(); i++) {
|
||||||
QString alias(m_pListAliases->item(i)->text());
|
QString alias(ui_->m_pListAliases->item(i)->text());
|
||||||
if (alias == m_pLineEditName->text()) {
|
if (alias == ui_->m_pLineEditName->text()) {
|
||||||
QMessageBox::warning(
|
QMessageBox::warning(
|
||||||
this, tr("Screen name matches alias"),
|
this, tr("Screen name matches alias"),
|
||||||
tr("The screen name cannot be the same as an alias. "
|
tr("The screen name cannot be the same as an alias. "
|
||||||
|
|
@ -105,43 +108,43 @@ void ScreenSettingsDialog::accept()
|
||||||
m_pScreen->addAlias(alias);
|
m_pScreen->addAlias(alias);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pScreen->setModifier(static_cast<int>(Shift), m_pComboBoxShift->currentIndex());
|
m_pScreen->setModifier(static_cast<int>(Shift), ui_->m_pComboBoxShift->currentIndex());
|
||||||
m_pScreen->setModifier(static_cast<int>(Ctrl), m_pComboBoxCtrl->currentIndex());
|
m_pScreen->setModifier(static_cast<int>(Ctrl), ui_->m_pComboBoxCtrl->currentIndex());
|
||||||
m_pScreen->setModifier(static_cast<int>(Alt), m_pComboBoxAlt->currentIndex());
|
m_pScreen->setModifier(static_cast<int>(Alt), ui_->m_pComboBoxAlt->currentIndex());
|
||||||
m_pScreen->setModifier(static_cast<int>(Meta), m_pComboBoxMeta->currentIndex());
|
m_pScreen->setModifier(static_cast<int>(Meta), ui_->m_pComboBoxMeta->currentIndex());
|
||||||
m_pScreen->setModifier(static_cast<int>(Super), m_pComboBoxSuper->currentIndex());
|
m_pScreen->setModifier(static_cast<int>(Super), ui_->m_pComboBoxSuper->currentIndex());
|
||||||
|
|
||||||
m_pScreen->setSwitchCorner(static_cast<int>(TopLeft), m_pCheckBoxCornerTopLeft->isChecked());
|
m_pScreen->setSwitchCorner(static_cast<int>(TopLeft), ui_->m_pCheckBoxCornerTopLeft->isChecked());
|
||||||
m_pScreen->setSwitchCorner(static_cast<int>(TopRight), m_pCheckBoxCornerTopRight->isChecked());
|
m_pScreen->setSwitchCorner(static_cast<int>(TopRight), ui_->m_pCheckBoxCornerTopRight->isChecked());
|
||||||
m_pScreen->setSwitchCorner(static_cast<int>(BottomLeft), m_pCheckBoxCornerBottomLeft->isChecked());
|
m_pScreen->setSwitchCorner(static_cast<int>(BottomLeft), ui_->m_pCheckBoxCornerBottomLeft->isChecked());
|
||||||
m_pScreen->setSwitchCorner(static_cast<int>(BottomRight), m_pCheckBoxCornerBottomRight->isChecked());
|
m_pScreen->setSwitchCorner(static_cast<int>(BottomRight), ui_->m_pCheckBoxCornerBottomRight->isChecked());
|
||||||
m_pScreen->setSwitchCornerSize(m_pSpinBoxSwitchCornerSize->value());
|
m_pScreen->setSwitchCornerSize(ui_->m_pSpinBoxSwitchCornerSize->value());
|
||||||
|
|
||||||
m_pScreen->setFix(static_cast<int>(CapsLock), m_pCheckBoxCapsLock->isChecked());
|
m_pScreen->setFix(static_cast<int>(CapsLock), ui_->m_pCheckBoxCapsLock->isChecked());
|
||||||
m_pScreen->setFix(static_cast<int>(NumLock), m_pCheckBoxNumLock->isChecked());
|
m_pScreen->setFix(static_cast<int>(NumLock), ui_->m_pCheckBoxNumLock->isChecked());
|
||||||
m_pScreen->setFix(static_cast<int>(ScrollLock), m_pCheckBoxScrollLock->isChecked());
|
m_pScreen->setFix(static_cast<int>(ScrollLock), ui_->m_pCheckBoxScrollLock->isChecked());
|
||||||
m_pScreen->setFix(static_cast<int>(XTest), m_pCheckBoxXTest->isChecked());
|
m_pScreen->setFix(static_cast<int>(XTest), ui_->m_pCheckBoxXTest->isChecked());
|
||||||
|
|
||||||
QDialog::accept();
|
QDialog::accept();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenSettingsDialog::on_m_pButtonAddAlias_clicked()
|
void ScreenSettingsDialog::on_m_pButtonAddAlias_clicked()
|
||||||
{
|
{
|
||||||
if (!m_pLineEditAlias->text().isEmpty() &&
|
if (!ui_->m_pLineEditAlias->text().isEmpty() &&
|
||||||
m_pListAliases->findItems(m_pLineEditAlias->text(), Qt::MatchFixedString).isEmpty()) {
|
ui_->m_pListAliases->findItems(ui_->m_pLineEditAlias->text(), Qt::MatchFixedString).isEmpty()) {
|
||||||
new QListWidgetItem(m_pLineEditAlias->text(), m_pListAliases);
|
new QListWidgetItem(ui_->m_pLineEditAlias->text(), ui_->m_pListAliases);
|
||||||
m_pLineEditAlias->clear();
|
ui_->m_pLineEditAlias->clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenSettingsDialog::on_m_pLineEditAlias_textChanged(const QString &text)
|
void ScreenSettingsDialog::on_m_pLineEditAlias_textChanged(const QString &text)
|
||||||
{
|
{
|
||||||
m_pButtonAddAlias->setEnabled(!text.isEmpty() && m_pLabelAliasError->text().isEmpty());
|
ui_->m_pButtonAddAlias->setEnabled(!text.isEmpty() && ui_->m_pLabelAliasError->text().isEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenSettingsDialog::on_m_pButtonRemoveAlias_clicked()
|
void ScreenSettingsDialog::on_m_pButtonRemoveAlias_clicked()
|
||||||
{
|
{
|
||||||
QList<QListWidgetItem *> items = m_pListAliases->selectedItems();
|
QList<QListWidgetItem *> items = ui_->m_pListAliases->selectedItems();
|
||||||
|
|
||||||
for (int i = 0; i < items.count(); i++)
|
for (int i = 0; i < items.count(); i++)
|
||||||
delete items[i];
|
delete items[i];
|
||||||
|
|
@ -149,5 +152,5 @@ void ScreenSettingsDialog::on_m_pButtonRemoveAlias_clicked()
|
||||||
|
|
||||||
void ScreenSettingsDialog::on_m_pListAliases_itemSelectionChanged()
|
void ScreenSettingsDialog::on_m_pListAliases_itemSelectionChanged()
|
||||||
{
|
{
|
||||||
m_pButtonRemoveAlias->setEnabled(!m_pListAliases->selectedItems().isEmpty());
|
ui_->m_pButtonRemoveAlias->setEnabled(!ui_->m_pListAliases->selectedItems().isEmpty());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,23 +20,26 @@
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
#include "ui_ScreenSettingsDialogBase.h"
|
|
||||||
|
|
||||||
class QWidget;
|
class QWidget;
|
||||||
class QString;
|
class QString;
|
||||||
|
|
||||||
class Screen;
|
class Screen;
|
||||||
class ScreenList;
|
class ScreenList;
|
||||||
|
|
||||||
class ScreenSettingsDialog : public QDialog, public Ui::ScreenSettingsDialogBase
|
namespace Ui {
|
||||||
|
class ScreenSettingsDialog;
|
||||||
|
}
|
||||||
|
|
||||||
|
class ScreenSettingsDialog : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ScreenSettingsDialog(QWidget *parent, Screen *pScreen = nullptr, const ScreenList *pScreens = nullptr);
|
ScreenSettingsDialog(QWidget *parent, Screen *pScreen = nullptr, const ScreenList *pScreens = nullptr);
|
||||||
|
~ScreenSettingsDialog() override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void accept();
|
void accept() override;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_m_pButtonAddAlias_clicked();
|
void on_m_pButtonAddAlias_clicked();
|
||||||
|
|
@ -45,5 +48,6 @@ private slots:
|
||||||
void on_m_pListAliases_itemSelectionChanged();
|
void on_m_pListAliases_itemSelectionChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
std::unique_ptr<Ui::ScreenSettingsDialog> ui_;
|
||||||
Screen *m_pScreen;
|
Screen *m_pScreen;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>ScreenSettingsDialogBase</class>
|
<class>ScreenSettingsDialog</class>
|
||||||
<widget class="QDialog" name="ScreenSettingsDialogBase">
|
<widget class="QDialog" name="ScreenSettingsDialog">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
|
|
@ -942,7 +942,7 @@
|
||||||
<connection>
|
<connection>
|
||||||
<sender>m_pButtonBox</sender>
|
<sender>m_pButtonBox</sender>
|
||||||
<signal>accepted()</signal>
|
<signal>accepted()</signal>
|
||||||
<receiver>ScreenSettingsDialogBase</receiver>
|
<receiver>ScreenSettingsDialog</receiver>
|
||||||
<slot>accept()</slot>
|
<slot>accept()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
|
|
@ -958,7 +958,7 @@
|
||||||
<connection>
|
<connection>
|
||||||
<sender>m_pButtonBox</sender>
|
<sender>m_pButtonBox</sender>
|
||||||
<signal>rejected()</signal>
|
<signal>rejected()</signal>
|
||||||
<receiver>ScreenSettingsDialogBase</receiver>
|
<receiver>ScreenSettingsDialog</receiver>
|
||||||
<slot>reject()</slot>
|
<slot>reject()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
Loading…
Reference in a new issue