1.1 --- a/vymmodel.cpp Fri Oct 02 13:24:55 2009 +0000
1.2 +++ b/vymmodel.cpp Fri Oct 02 14:31:03 2009 +0000
1.3 @@ -2167,13 +2167,13 @@
1.4
1.5 // Create TreeItem
1.6 QList<QVariant> cData;
1.7 - cData << "new" << "undef";
1.8 + cData << "" << "undef";
1.9
1.10 BranchItem *parbi;
1.11 QModelIndex parix;
1.12 int n;
1.13 BranchItem *newbi=new BranchItem (cData);
1.14 - newbi->setHeading (QApplication::translate("Heading of new branch in map", "new"));
1.15 + //newbi->setHeading (QApplication::translate("Heading of new branch in map", "new"));
1.16
1.17 emit (layoutAboutToBeChanged() );
1.18
1.19 @@ -2198,6 +2198,9 @@
1.20 }
1.21 emit (layoutChanged() );
1.22
1.23 + // Set color of heading to that of parent
1.24 + newbi->setHeadingColor (parbi->getHeadingColor());
1.25 +
1.26 // save scroll state. If scrolled, automatically select
1.27 // new branch in order to tmp unscroll parent...
1.28 newbi->createMapObj(mapScene);
1.29 @@ -2774,8 +2777,10 @@
1.30 TreeItem *selti=getSelectedItem();
1.31 if (selti)
1.32 {
1.33 - QString url= "https://bugzilla.novell.com/show_bug.cgi?id="+selti->getHeading();
1.34 - setURL (url);
1.35 + QString h=selti->getHeading();
1.36 + QRegExp rx("^(\\d+)");
1.37 + if (rx.indexIn(h) !=-1)
1.38 + setURL ("https://bugzilla.novell.com/show_bug.cgi?id="+rx.cap(1) );
1.39 }
1.40 }
1.41