From: <su...@us...> - 2008-06-04 08:16:44
|
Revision: 2839 http://tora.svn.sourceforge.net/tora/?rev=2839&view=rev Author: subik Date: 2008-06-04 01:16:47 -0700 (Wed, 04 Jun 2008) Log Message: ----------- recent files are working correctly now Modified Paths: -------------- trunk/tora/src/toworksheet.cpp Modified: trunk/tora/src/toworksheet.cpp =================================================================== --- trunk/tora/src/toworksheet.cpp 2008-06-04 07:16:26 UTC (rev 2838) +++ trunk/tora/src/toworksheet.cpp 2008-06-04 08:16:47 UTC (rev 2839) @@ -1920,12 +1920,19 @@ toWorksheet *toWorksheet::fileWorksheet(const QString &file) { - toWorksheet *worksheet = new toWorksheet(toMainWidget()->workspace(), + QMdiSubWindow * w = new QMdiSubWindow(toMainWidget()->workspace()); + + toWorksheet *worksheet = new toWorksheet(w, toMainWidget()->currentConnection(), false); worksheet->editor()->openFilename(file); worksheet->setCaption(); - worksheet->show(); + + w->setAttribute(Qt::WA_DeleteOnClose); + w->setWidget(worksheet); + w->setWindowIcon(QIcon(*WorksheetTool.toolbarImage())); + toMainWidget()->workspace()->addSubWindow(w); + w->show(); toMainWidget()->updateWindowsMenu(); return worksheet; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |