SettingsTab::SettingsTab (QWidget *parent) : QWidget (parent) , Toolbar_ (new QToolBar (tr ("Settings bar"))) , ActionBack_ (new QAction (tr ("Back"), this)) , ActionApply_ (new QAction (tr ("Apply"), this)) , ActionCancel_ (new QAction (tr ("Cancel"), this)) , CurrentIHS_ (0) { Ui_.setupUi (this); Ui_.ListContents_->setLayout (new QVBoxLayout); Ui_.DialogContents_->setLayout (new QVBoxLayout); ActionBack_->setProperty ("ActionIcon", "back"); connect (ActionBack_, SIGNAL (triggered ()), this, SLOT (handleBackRequested ())); ActionApply_->setProperty ("ActionIcon", "apply"); connect (ActionApply_, SIGNAL (triggered ()), this, SLOT (handleApply ())); ActionCancel_->setProperty ("ActionIcon", "cancel"); connect (ActionCancel_, SIGNAL (triggered ()), this, SLOT (handleCancel ())); }
QtSpellCheckerWindow::QtSpellCheckerWindow(SettingsProvider* settings, QWidget* parent) : QDialog(parent) { settings_ = settings; ui_.setupUi(this); #ifdef HAVE_HUNSPELL ui_.hunspellOptions->show(); #else ui_.hunspellOptions->hide(); QTimer::singleShot(0, this, SLOT(shrinkWindow())); #endif connect(ui_.spellChecker, SIGNAL(toggled(bool)), this, SLOT(handleChecker(bool))); connect(ui_.cancel, SIGNAL(clicked()), this, SLOT(handleCancel())); connect(ui_.apply, SIGNAL(clicked()), this, SLOT(handleApply())); connect(ui_.pathButton, SIGNAL(clicked()), this, SLOT(handlePathButton())); setFromSettings(); }
void RenderTarget::apply(const rect& r) const { handleApply(r); }
bool Material::apply() { handleApply(); return useLighting(); }