ErrorDialog::ErrorDialog( QWidget* parent, Qt::WindowFlags f ) : QDialog(parent, f) { setupUi(this); icon->setText(""); icon->setPixmap( Images::icon("warning") ); text->setText(""); toggleLog(false); connect( viewlog_button, SIGNAL(toggled(bool)), this, SLOT(toggleLog(bool)) ); layout()->setSizeConstraint(QLayout::SetFixedSize); }
ErrorDialog::ErrorDialog( QWidget* parent, Qt::WindowFlags f ) : QDialog(parent, f) { setupUi(this); icon->setText(""); icon->setPixmap( Images::icon("crash") ); intro_label->setText("<html><head/><body><p align=\"left\"><span style=\"font-size:14pt; font-weight:600;\">" + tr("Oops, something wrong happened") +"</span></p></body></html>"); text->setText(""); toggleLog(false); connect( viewlog_button, SIGNAL(toggled(bool)), this, SLOT(toggleLog(bool)) ); layout()->setSizeConstraint(QLayout::SetFixedSize); }
void __fastcall TfrmRetrievalJobList::FormKeyUp(TObject *Sender, WORD &Key, TShiftState Shift) { /** form's KeyPreview property needs to be set to see this */ if (Key == ' ') toggleLog(); }