diff -r b7447adddc9a -r 5522d1da7e37 historywindow.cpp --- a/historywindow.cpp Wed Jan 10 13:26:12 2007 +0000 +++ b/historywindow.cpp Tue Jan 23 11:50:53 2007 +0000 @@ -39,19 +39,19 @@ 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()); + 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,6 +153,16 @@ } +void HistoryWindow::setShowWithMain (bool v) +{ + showwithmain=v; +} + +bool HistoryWindow::showWithMain() +{ + return showwithmain; +} + void HistoryWindow::undo() { mainWindow->editUndo();