vymmodel.cpp
changeset 820 735c7ea1d2a9
parent 819 8f987e376035
child 821 4a84d7e444d8
     1.1 --- a/vymmodel.cpp	Mon Jan 04 20:36:06 2010 +0000
     1.2 +++ b/vymmodel.cpp	Tue Jan 05 11:23:12 2010 +0000
     1.3 @@ -2878,6 +2878,21 @@
     1.4  	}
     1.5  }	
     1.6  
     1.7 +void VymModel::getBugzillaData()	
     1.8 +{
     1.9 +	TreeItem *selti=getSelectedItem();
    1.10 +	if (selti)
    1.11 +	{		
    1.12 +		QString url=selti->getURL();
    1.13 +		if (!url.isEmpty())
    1.14 +		{
    1.15 +			QRegExp rx("(\\d+)");
    1.16 +			if (rx.indexIn(url) !=-1)
    1.17 +				cout << "VM::getBugzillaData bug="<<rx.cap(1).toStdString()<<endl;
    1.18 +		}
    1.19 +	}
    1.20 +}	
    1.21 +
    1.22  void VymModel::editFATE2URL()
    1.23  {
    1.24  	TreeItem *selti=getSelectedItem();