more debug printing and better checking

This commit is contained in:
Vadim Kurland
2008-06-12 06:01:09 +00:00
parent 015ed4bd18
commit 9f1959b12f
+15 -4
View File
@@ -2183,11 +2183,14 @@ void ProjectPanel::load(QWidget *dialogs_parent,RCS *_rcs,libfwbuilder::FWObject
* However, if I am editing standard library, it should not be read-only. * However, if I am editing standard library, it should not be read-only.
*/ */
FWObject *slib = objdb->findInIndex(FWObjectDatabase::STANDARD_LIB_ID); FWObject *slib = objdb->findInIndex(FWObjectDatabase::STANDARD_LIB_ID);
if (fwbdebug) if (slib!=NULL )
qDebug("standard library read-only status: %d, editingStandardLib: %d", {
slib->isReadOnly(), editingStandardLib); if (fwbdebug)
qDebug("standard library read-only status: %d, editingStandardLib: %d",
slib->isReadOnly(), editingStandardLib);
if (slib!=NULL ) slib->setReadOnly(! editingStandardLib); slib->setReadOnly(! editingStandardLib);
}
/* if the file name has an old extension .xml, change it to .fwb and /* if the file name has an old extension .xml, change it to .fwb and
* warn the user * warn the user
@@ -3573,6 +3576,14 @@ void ProjectPanel::showEvent( QShowEvent *ev)
// { // {
// loadSplitters(); // loadSplitters();
// } // }
if (fwbdebug)
{
qDebug("ProjectPanel::showEvent: isMaximized=%d", isMaximized());
int wf = windowFlags();
qDebug("windowFlags=%x", wf);
}
QWidget::showEvent(ev); QWidget::showEvent(ev);
} }