1.1 --- a/historywindow.cpp Wed Jan 10 13:26:12 2007 +0000
1.2 +++ b/historywindow.cpp Tue Mar 06 19:37:39 2007 +0000
1.3 @@ -39,19 +39,19 @@
1.4
1.5 for (int i=0; i<3; ++i)
1.6 ui.historyTable->setColumnWidth (i,settings.value( QString("/historywindow/geometry/columnWidth/%1").arg(i),150).toInt());
1.7 -/*
1.8 +
1.9 if (settings.value ( "/historywindow/showWithMain",false).toBool())
1.10 setShowWithMain(true);
1.11 else
1.12 setShowWithMain(false);
1.13 -*/
1.14 +
1.15 }
1.16
1.17 HistoryWindow::~HistoryWindow()
1.18 {
1.19 settings.setValue( "/historywindow/geometry/size", size() );
1.20 settings.setValue( "/historywindow/geometry/pos", pos() );
1.21 - //settings.setValue( "/historywindow/showWithMain",showWithMain());
1.22 + settings.setValue( "/historywindow/showWithMain",showWithMain());
1.23 for (int i=0; i<3; ++i)
1.24 settings.setValue( QString("/historywindow/geometry/columnWidth/%1").arg(i), ui.historyTable->columnWidth (i) );
1.25 }
1.26 @@ -153,6 +153,16 @@
1.27
1.28 }
1.29
1.30 +void HistoryWindow::setShowWithMain (bool v)
1.31 +{
1.32 + showwithmain=v;
1.33 +}
1.34 +
1.35 +bool HistoryWindow::showWithMain()
1.36 +{
1.37 + return showwithmain;
1.38 +}
1.39 +
1.40 void HistoryWindow::undo()
1.41 {
1.42 mainWindow->editUndo();