ShooterDialog::ShooterDialog (ICoreProxy_ptr proxy, QWidget *parent) : QDialog (parent) , Proxy_ (proxy) { Ui_.setupUi (this); on_Format__currentIndexChanged (Ui_.Format_->currentText ()); auto button = new QPushButton (tr ("Make screenshot")); Ui_.ButtonBox_->addButton (button, QDialogButtonBox::ApplyRole); connect (button, SIGNAL (released ()), this, SIGNAL (screenshotRequested ())); }
ShooterDialog::ShooterDialog (QWidget *parent) : QDialog (parent) { Ui_.setupUi (this); on_Format__currentIndexChanged (Ui_.Format_->currentText ()); }