19 #include <QMessageBox>
23 : QDialog( parent, fl )
27 QString title = theTitle;
28 if ( title.isEmpty() ) title =
tr(
"Error" );
29 setWindowTitle( title );
32 QMessageBox messageBox( QMessageBox::Critical,
"",
"" );
33 mIconLabel->setPixmap( messageBox.iconPixmap() );
34 mSummaryTextBrowser->setOpenExternalLinks(
true );
35 mDetailTextBrowser->setOpenExternalLinks(
true );
36 mDetailTextBrowser->hide();
38 QPalette p = palette();
39 p.setColor( QPalette::Base, Qt::transparent );
40 mSummaryTextBrowser->setPalette( p );
42 mDetailCheckBox->hide();
47 resize( width(), 150 );
50 Qt::CheckState state = ( Qt::CheckState ) settings.value(
"/Error/dialog/detail", 0 ).toInt();
51 mDetailCheckBox->setCheckState( state );
67 mSummaryTextBrowser->hide();
68 mDetailTextBrowser->show();
69 mDetailCheckBox->show();
70 mDetailPushButton->hide();
71 resize( width(), 400 );
77 settings.setValue(
"/Error/dialog/detail", state );