void KylinFontDialog::initConnect() { // connect(title_bar, SIGNAL(showMinDialog()), this, SLOT(onMinButtonClicked())); connect(title_bar,SIGNAL(closeDialog()), this, SLOT(onCacelButtonClicked())); connect(font_view, SIGNAL(clicked(QModelIndex)), this, SLOT(updateAll(QModelIndex))); connect(style_view, SIGNAL(clicked(QModelIndex)), this, SLOT(updateStyleandSize(QModelIndex))); connect(size_view, SIGNAL(clicked(QModelIndex)), this, SLOT(updateSize(QModelIndex))); connect(cacel_btn, SIGNAL(clicked()), this, SLOT(onCacelButtonClicked())); connect(ok_btn, SIGNAL(clicked()), this, SLOT(onOKButtonClicked())); }
AudioSettings::AudioSettings(QWidget *parent) : QDialog(parent), ui(new Ui::AudioSettings) { ui->setupUi(this); // apply and cancel buttons connect(ui->bnOK, SIGNAL(clicked()), this, SLOT(onOKButtonClicked())); connect(ui->bnSave, SIGNAL(clicked()), this, SLOT(saveSettings())); connect(ui->bnCancel, SIGNAL(clicked()), this, SLOT(close())); fillParams(); loadSettings(); }