comparison src/mainwindow.cpp @ 617:2d5b831c1a0a

Added new functionality to limit the total number of items shown in the graph. For projects with a fairly high number of commits, makes every action is very slow. Was added to the settings dialog to select a QDateEdit day from which the log is to be displayed.
author Mikel <mikel.fernandez@bqreaders.com>
date Tue, 24 Jul 2012 15:33:02 +0200
parents 864cf6bc6eff
children 7f1adcdc6cdc 38c84c66ad7a
comparison
equal deleted inserted replaced
616:32b8f32f14a6 617:2d5b831c1a0a
355 m_runner->requestAction(HgAction(ACT_QUERY_HEADS, m_workFolderPath, params)); 355 m_runner->requestAction(HgAction(ACT_QUERY_HEADS, m_workFolderPath, params));
356 } 356 }
357 357
358 void MainWindow::hgLog() 358 void MainWindow::hgLog()
359 { 359 {
360 QSettings settings;
361 settings.beginGroup("Presentation");
362
360 QStringList params; 363 QStringList params;
361 params << "log"; 364 params << "log";
365 params << "--date";
366 params << settings.value("datefrom", QDate(2000, 1, 1)).toDate().toString("yyyy-MM-dd") + " to " + QDate::currentDate().toString("yyyy-MM-dd");
362 params << "--template"; 367 params << "--template";
363 params << Changeset::getLogTemplate(); 368 params << Changeset::getLogTemplate();
364 369
365 m_runner->requestAction(HgAction(ACT_LOG, m_workFolderPath, params)); 370 m_runner->requestAction(HgAction(ACT_LOG, m_workFolderPath, params));
366 } 371 }