1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-23 19:57:21 +01:00

bugfix 2560

This commit is contained in:
2008-04-30 09:21:31 +00:00
parent 05b16e9f71
commit 097501b681
2 changed files with 27 additions and 2 deletions

View File

@ -224,9 +224,26 @@ void FWWindow::showSub(ProjectPanel *projectW)
sub->setWidget(projectW);
sub->setAttribute(Qt::WA_DeleteOnClose);
m_space->addSubWindow(sub);
sub->showMaximized();
QIcon p(":Icons/Firewall/icon-tree");
sub->setWindowIcon(p);
sub->setWindowIcon(p);
if (projectW->getRCS()!=NULL)
{
QString FileName = projectW->getRCS()->getFileName();
if (st->getInt("Window/"+FileName+"/maximized")==0)
{
sub->showMaximized();
}
else
{
sub->show();
projectW->loadState();
}
}
else
{
sub->showMaximized();
}
}
ProjectPanel* FWWindow::activeProject()

View File

@ -3285,6 +3285,14 @@ void ProjectPanel::saveState ()
st->setInt("Window/"+FileName+"/y",mdiWindow->y());
st->setInt("Window/"+FileName+"/width",mdiWindow->width ());
st->setInt("Window/"+FileName+"/height",mdiWindow->height ());
if (isMaximized ())
{
st->setInt("Window/"+FileName+"/maximized",0);
}
else
{
st->setInt("Window/"+FileName+"/maximized",1);
}
}
oe->hide();