diff -r 31196a98699c -r 24c7902a3e14 historywindow.cpp --- a/historywindow.cpp Wed May 02 15:31:17 2007 +0000 +++ b/historywindow.cpp Wed May 02 15:31:17 2007 +0000 @@ -34,24 +34,13 @@ connect ( ui.historyTable, SIGNAL (itemSelectionChanged()), this, SLOT (select())); // Load Settings - resize (settings.value ( "/historywindow/geometry/size", QSize(450,600)).toSize()); - move (settings.value ( "/historywindow/geometry/pos", QPoint (250,50)).toPoint()); for (int i=0; i<3; ++i) ui.historyTable->setColumnWidth (i,settings.value( QString("/historywindow/geometry/columnWidth/%1").arg(i),150).toInt()); - - if (settings.value ( "/historywindow/showWithMain",false).toBool()) - setShowWithMain(true); - else - setShowWithMain(false); - } HistoryWindow::~HistoryWindow() { - settings.setValue( "/historywindow/geometry/size", size() ); - settings.setValue( "/historywindow/geometry/pos", pos() ); - settings.setValue( "/historywindow/showWithMain",showWithMain()); for (int i=0; i<3; ++i) settings.setValue( QString("/historywindow/geometry/columnWidth/%1").arg(i), ui.historyTable->columnWidth (i) ); } @@ -153,23 +142,10 @@ } -void HistoryWindow::setShowWithMain (bool v) + +void HistoryWindow::closeEvent (QCloseEvent *ce) { - showwithmain=v; -} - -void HistoryWindow::closeEvent( QCloseEvent* ce ) -{ - ce->accept(); // TextEditor can be reopened with show() - showwithmain=false; emit (windowClosed() ); - return; -} - - -bool HistoryWindow::showWithMain() -{ - return showwithmain; } void HistoryWindow::undo()