1.1 --- a/historywindow.cpp Sat Mar 31 09:28:27 2007 +0000
1.2 +++ b/historywindow.cpp Wed May 02 15:31:17 2007 +0000
1.3 @@ -34,24 +34,13 @@
1.4 connect ( ui.historyTable, SIGNAL (itemSelectionChanged()), this, SLOT (select()));
1.5
1.6 // Load Settings
1.7 - resize (settings.value ( "/historywindow/geometry/size", QSize(450,600)).toSize());
1.8 - move (settings.value ( "/historywindow/geometry/pos", QPoint (250,50)).toPoint());
1.9
1.10 for (int i=0; i<3; ++i)
1.11 ui.historyTable->setColumnWidth (i,settings.value( QString("/historywindow/geometry/columnWidth/%1").arg(i),150).toInt());
1.12 -
1.13 - if (settings.value ( "/historywindow/showWithMain",false).toBool())
1.14 - setShowWithMain(true);
1.15 - else
1.16 - setShowWithMain(false);
1.17 -
1.18 }
1.19
1.20 HistoryWindow::~HistoryWindow()
1.21 {
1.22 - settings.setValue( "/historywindow/geometry/size", size() );
1.23 - settings.setValue( "/historywindow/geometry/pos", pos() );
1.24 - settings.setValue( "/historywindow/showWithMain",showWithMain());
1.25 for (int i=0; i<3; ++i)
1.26 settings.setValue( QString("/historywindow/geometry/columnWidth/%1").arg(i), ui.historyTable->columnWidth (i) );
1.27 }
1.28 @@ -153,23 +142,10 @@
1.29
1.30 }
1.31
1.32 -void HistoryWindow::setShowWithMain (bool v)
1.33 +
1.34 +void HistoryWindow::closeEvent (QCloseEvent *ce)
1.35 {
1.36 - showwithmain=v;
1.37 -}
1.38 -
1.39 -void HistoryWindow::closeEvent( QCloseEvent* ce )
1.40 -{
1.41 - ce->accept(); // TextEditor can be reopened with show()
1.42 - showwithmain=false;
1.43 emit (windowClosed() );
1.44 - return;
1.45 -}
1.46 -
1.47 -
1.48 -bool HistoryWindow::showWithMain()
1.49 -{
1.50 - return showwithmain;
1.51 }
1.52
1.53 void HistoryWindow::undo()