comparison src/hgtabwidget.cpp @ 634:58ac1b197666

* Added setting to show history automatically when it changes (defaults to true)
author Sam Izzo <sam@humbug.net>
date Mon, 27 Aug 2012 01:45:26 +1000
parents 38c84c66ad7a
children ae67ea0af696
comparison
equal deleted inserted replaced
633:db62a0cb3037 634:58ac1b197666
21 #include "historywidget.h" 21 #include "historywidget.h"
22 22
23 #include <QClipboard> 23 #include <QClipboard>
24 #include <QContextMenuEvent> 24 #include <QContextMenuEvent>
25 #include <QApplication> 25 #include <QApplication>
26 #include <QSettings>
26 27
27 #include <iostream> 28 #include <iostream>
28 29
29 HgTabWidget::HgTabWidget(QWidget *parent, 30 HgTabWidget::HgTabWidget(QWidget *parent,
30 QString workFolderPath) : 31 QString workFolderPath) :
279 280
280 void HgTabWidget::addIncrementalLog(QString hgLogList) 281 void HgTabWidget::addIncrementalLog(QString hgLogList)
281 { 282 {
282 m_historyWidget->parseIncrementalLog(hgLogList); 283 m_historyWidget->parseIncrementalLog(hgLogList);
283 if (m_historyWidget->haveNewItems()) { 284 if (m_historyWidget->haveNewItems()) {
284 showHistoryTab(); 285 QSettings settings;
286 settings.beginGroup("Presentation");
287 if (settings.value("showHistoryAutomatically", true).toBool()) {
288 showHistoryTab();
289 }
285 } 290 }
286 } 291 }
287 292
288 void HgTabWidget::setLocalPath(QString workFolderPath) 293 void HgTabWidget::setLocalPath(QString workFolderPath)
289 { 294 {