mainwindow.cpp
changeset 820 735c7ea1d2a9
parent 819 8f987e376035
child 821 4a84d7e444d8
     1.1 --- a/mainwindow.cpp	Mon Jan 04 20:36:06 2010 +0000
     1.2 +++ b/mainwindow.cpp	Tue Jan 05 11:23:12 2010 +0000
     1.3 @@ -805,6 +805,16 @@
     1.4  	connect( a, SIGNAL( triggered() ), this, SLOT( editBugzilla2URL() ) );
     1.5  	actionBugzilla2URL=a;
     1.6  
     1.7 +	a = new QAction(tr( "Create URL to Novell Bugzilla","Edit menu" ), this);
     1.8 +	a->setStatusTip ( tr( "Get data from Novell Bugzilla" ));
     1.9 +	a->setEnabled (false);
    1.10 +	actionListBranches.append(a);
    1.11 +	a->setShortcut ( Qt::Key_B + Qt::SHIFT);
    1.12 +	a->setShortcutContext (Qt::WindowShortcut);
    1.13 +	addAction(a);
    1.14 +	connect( a, SIGNAL( triggered() ), this, SLOT( getBugzillaData() ) );
    1.15 +	actionGetBugzillaData=a;
    1.16 +
    1.17  	a = new QAction(tr( "Create URL to Novell FATE","Edit menu" ), this);
    1.18  	a->setStatusTip ( tr( "Create URL to Novell FATE" ));
    1.19  	a->setEnabled (false);
    1.20 @@ -1621,6 +1631,7 @@
    1.21  		branchLinksContextMenu->addAction ( actionBugzilla2URL );
    1.22  		if (settings.value( "/mainwindow/showTestMenu",false).toBool() )
    1.23  		{
    1.24 +			branchLinksContextMenu->addAction ( actionGetBugzillaData );
    1.25  			branchLinksContextMenu->addAction ( actionFATE2URL );
    1.26  		}	
    1.27  		branchLinksContextMenu->addSeparator();	
    1.28 @@ -2648,6 +2659,12 @@
    1.29  	if (m) m->editBugzilla2URL();
    1.30  }
    1.31  
    1.32 +void Main::getBugzillaData()
    1.33 +{
    1.34 +	VymModel *m=currentModel();
    1.35 +	if (m) m->getBugzillaData();
    1.36 +}
    1.37 +
    1.38  void Main::editFATE2URL()
    1.39  {
    1.40  	VymModel *m=currentModel();