diff mainwindow.cpp @ 43:c32067cd19f8

* Some experiments towards a graph history view
author Chris Cannam
date Sun, 07 Nov 2010 19:59:54 +0000
parents 9a89dedf260a
children bed7ab59f62e
line wrap: on
line diff
--- a/mainwindow.cpp	Thu Jun 24 23:41:21 2010 +0300
+++ b/mainwindow.cpp	Sun Nov 07 19:59:54 2010 +0000
@@ -119,7 +119,9 @@
     if (runningAction == ACT_NONE)
     {
         QStringList params;
-        params << "glog";
+        params << "log";
+        params << "--template";
+        params << "id: {rev}:{node|short}\\nauthor: {author}\\nbranch: {branches}\\ndate: {date|isodate}\\nage: {date|age}\\nparents: {parents}\\ncomment: {desc|json}\\n\\n";
 
         runner -> startProc(getHgBinaryName(), workFolderPath, params);
         runningAction = ACT_LOG;
@@ -1370,7 +1372,7 @@
     fileToolBar = addToolBar(tr("File"));
     fileToolBar -> setIconSize(QSize(MY_ICON_SIZE, MY_ICON_SIZE));
     fileToolBar -> addAction(settingsAct);
-    fileToolBar -> addAction(exitAct);
+    fileToolBar -> addAction(hgStatAct);
     fileToolBar -> addSeparator();
     fileToolBar -> addAction(hgChgSetDiffAct);
     fileToolBar -> setMovable(false);
@@ -1385,7 +1387,6 @@
     workFolderToolBar = addToolBar(tr(WORKFOLDERMENU_TITLE));
     addToolBar(Qt::LeftToolBarArea, workFolderToolBar);
     workFolderToolBar -> setIconSize(QSize(MY_ICON_SIZE, MY_ICON_SIZE));
-    workFolderToolBar->addAction(hgStatAct);
     workFolderToolBar->addSeparator();
     workFolderToolBar->addAction(hgFileDiffAct);
     workFolderToolBar->addAction(hgFolderDiffAct);