diff -r 4a84d7e444d8 -r c2ce9944148c mainwindow.cpp --- a/mainwindow.cpp Thu Jan 21 11:56:57 2010 +0000 +++ b/mainwindow.cpp Wed Feb 10 13:48:42 2010 +0000 @@ -312,7 +312,7 @@ progressDialog.setValue (v+progressDialog.value()); } -void Main::removeProgressValue(int v) +void Main::removeProgressCounter() { progressMax=0; progressCounter--; @@ -691,6 +691,13 @@ editMenu->addAction (a); actionSortChildren=a; + a = new QAction( QPixmap(iconPath+"editsortback.png" ), tr( "Sort children backwards","Edit menu" ), this ); + connect( a, SIGNAL( activated() ), this, SLOT( editSortBackChildren() ) ); + a->setEnabled (true); + a->addTo( tb ); + editMenu->addAction (a); + actionSortBackChildren=a; + alt = new QAction( QPixmap(flagsPath+"flag-scrolled-right.png"), tr( "Scroll branch","Edit menu" ), this); alt->setShortcut ( Qt::Key_S ); // Scroll branch alt->setStatusTip (tr( "Scroll branch" )); @@ -2893,7 +2900,13 @@ void Main::editSortChildren() { VymModel *m=currentModel(); - if (m) m->sortChildren(); + if (m) m->sortChildren(false); +} + +void Main::editSortBackChildren() +{ + VymModel *m=currentModel(); + if (m) m->sortChildren(true); } void Main::editToggleScroll() @@ -3606,6 +3619,7 @@ actionMoveDown->setEnabled (false); actionSortChildren->setEnabled (true); + actionSortBackChildren->setEnabled (true); actionToggleHideExport->setEnabled (true); actionToggleHideExport->setChecked (selbi->hideInExport() ); @@ -3657,6 +3671,7 @@ actionMoveDown->setEnabled (false); actionFormatHideLinkUnselected->setEnabled (false); actionSortChildren->setEnabled (false); + actionSortBackChildren->setEnabled (false); actionToggleHideExport->setEnabled (false); } } // m @@ -3741,6 +3756,35 @@ void Main::testFunction1() { + + Process p; + QString script="test/sleep.sh"; + p.start (script); + if (!p.waitForStarted()) + { + cout <<"VM::getBugzillaData couldn't start "<testFunction1(); +*/ /* VymModel *m=currentModel();