X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkQtBlackBoxDialog.cxx;h=71eeb0a01ec57f6dd64504b4066e33f61f3495ac;hb=a280c10c9ba7730cd9105a91bf1a40e72503a6e3;hp=06189d58395c76fb8589e0751a4c9fba1c029491;hpb=038dbbd7dd8b34107ec932a34170a4625368eb25;p=bbtk.git diff --git a/kernel/src/bbtkQtBlackBoxDialog.cxx b/kernel/src/bbtkQtBlackBoxDialog.cxx index 06189d5..71eeb0a 100644 --- a/kernel/src/bbtkQtBlackBoxDialog.cxx +++ b/kernel/src/bbtkQtBlackBoxDialog.cxx @@ -14,18 +14,21 @@ namespace bbtk int width, int height) : - QtBlackBoxDialogParent(box,parent) + QDialog(parent), + mBox(box) // QDialog( parent ) { - bbtkDebugMessage("qt",9,"QtBlackBoxDialog::QtBlackBoxDialog("<< - bbGetBlackBox()->bbGetFullName()<<","<bbGetName()<<"] QtBlackBoxDialog("<bbSetWindow(this); // Create the widget box->bbUserCreateWidget(widget); @@ -38,42 +41,19 @@ namespace bbtk } //========================================================================= - //========================================================================= - void QtBlackBoxDialog::bbShow() - { - if (bbIsShown()) return; - bbtkDebugMessage("qt",5,"QtBlackBoxDialog::bbShow() [" - <bbGetFullName()<<"]"<bbGetName() + <<"] $$$$$$$$$$$$$$$$$$$ ~QtBlackBoxDialog()" + <bbSetWindow(0); + Qt::DecNbWindowsAlive(); } //=========================================================================