📄 settingsform.ui.h
字号:
/****************************************************************************** ui.h extension file, included from the uic-generated form implementation.**** If you wish to add, delete or rename slots use Qt Designer which willdownloadCheckBox_toggled(bool)** update this file, preserving your code. Create an init() slot in place of** a constructor, and a destroy() slot in place of a destructor.*****************************************************************************/void settingsForm::init(){ QSettings settings; mailCheckBox->setChecked(settings.readBoolEntry ("/myppp/checkmail", TRUE)); minuteSpinBox->setValue(settings.readNumEntry ("/myppp/checkmail_interval", 5)); downloadCheckBox->setChecked(settings.readBoolEntry ("/myppp/checkmail_download", TRUE)); readerle->setText(settings.readEntry ("/myppp/mailreader_command", "evolution evolution:/local/Inbox")); okButton->setDefault(TRUE); opt_checkmail();}void settingsForm::cancelButton_clicked() { this->close(); }void settingsForm::okButton_clicked(){ QSettings settings; settings.writeEntry("/myppp/checkmail", mailCheckBox->isChecked()); settings.writeEntry("/myppp/checkmail_interval", minuteSpinBox->value()); settings.writeEntry("/myppp/checkmail_download", downloadCheckBox->isChecked()); settings.writeEntry("/myppp/mailreader_command", readerle->text()); this->close();}void settingsForm::opt_checkmail(){ if(mailCheckBox->isChecked()) { minuteSpinBox->setEnabled(TRUE); downloadCheckBox->setEnabled(TRUE); } else { minuteSpinBox->setEnabled(FALSE); downloadCheckBox->setEnabled(FALSE); }}void settingsForm::mailCheckBox_toggled( bool ) { opt_checkmail(); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -