X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkQtBlackBoxDialog.cxx;fp=kernel%2Fsrc%2FbbtkQtBlackBoxDialog.cxx;h=71eeb0a01ec57f6dd64504b4066e33f61f3495ac;hb=c333db268f8b73bcf7fe7ff9eeed8394252f1c94;hp=36b7834f80fd110212adfcd6a9c45d7fadab89f0;hpb=36ee14cc2a0ea41c6edea1767c82eec8e90a9ec6;p=bbtk.git diff --git a/kernel/src/bbtkQtBlackBoxDialog.cxx b/kernel/src/bbtkQtBlackBoxDialog.cxx index 36b7834..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,44 +41,19 @@ namespace bbtk } //========================================================================= - //========================================================================= - void QtBlackBoxDialog::bbShow() - { - if (bbIsShown()) return; - bbtkDebugMessage("qt",5,"QtBlackBoxDialog::bbShow() [" - <bbGetFullName()<<"]"<bbGetName() + <<"] $$$$$$$$$$$$$$$$$$$ ~QtBlackBoxDialog()" + <bbSetWindow(0); + Qt::DecNbWindowsAlive(); } //=========================================================================