{
//contructors, destructors
static StandardButton
/*or a new enum if you define one*/ warning
( QWidget * parent,
const QString & title,
const QString & text, StandardButtons buttons
= Ok, StandardButton defaultButton
= NoButton
);
}
StandardButton QMessageBoxEx
::warning ( QWidget * parent,
const QString & title,
const QString & text, StandardButtons buttons, StandardButton defaultButton, StandardButton defaultButton
){
//your implementation
}
class QMessageBoxEx : publick QMessageBox
{
//contructors, destructors
static StandardButton /*or a new enum if you define one*/ warning ( QWidget * parent, const QString & title, const QString & text, StandardButtons buttons = Ok, StandardButton defaultButton = NoButton );
}
StandardButton QMessageBoxEx::warning ( QWidget * parent, const QString & title, const QString & text, StandardButtons buttons, StandardButton defaultButton, StandardButton defaultButton )
{
//your implementation
}
To copy to clipboard, switch view to plain text mode
Bookmarks