mainwindow.cpp
changeset 600 a9fe976e01a6
parent 595 0bd62e09d061
child 608 6cdc2e7b1937
     1.1 --- a/mainwindow.cpp	Tue Oct 16 09:53:22 2007 +0000
     1.2 +++ b/mainwindow.cpp	Tue Oct 16 09:53:22 2007 +0000
     1.3 @@ -158,6 +158,8 @@
     1.4  		#endif
     1.5  		settings.setValue( p,s);
     1.6  
     1.7 +	// width of xLinksMenu
     1.8 +	xLinkMenuWidth=60;
     1.9  	
    1.10  	// Create tab widget which holds the maps
    1.11  	tabWidget= new QTabWidget (this);
    1.12 @@ -643,7 +645,6 @@
    1.13  
    1.14  	a = new QAction(QPixmap(), tr( "Edit URL...","Edit menu"), this);
    1.15  	a->setStatusTip ( tr( "Edit URL" ) );
    1.16 -	//a->setShortcut (Qt::SHIFT + Qt::CTRL + Qt::Key_U );
    1.17  	a->setShortcut ( Qt::Key_U );
    1.18  	a->setShortcutContext (Qt::WindowShortcut);
    1.19  	actionListBranches.append(a);
    1.20 @@ -658,7 +659,7 @@
    1.21  	actionListBranches.append(a);
    1.22  	addAction(a);
    1.23      connect( a, SIGNAL( triggered() ), this, SLOT( editLocalURL() ) );
    1.24 -	actionEditURL=a;
    1.25 +	actionEditLocalURL=a;
    1.26  	
    1.27  	a = new QAction( tr( "Use heading for URL","Edit menu" ), this);
    1.28  	a->setStatusTip ( tr( "Use heading of selected branch as URL" ));
    1.29 @@ -1501,6 +1502,7 @@
    1.30  		branchLinksContextMenu->addAction ( actionEditOpenURLTab );
    1.31  		branchLinksContextMenu->addAction ( actionEditOpenMultipleURLTabs );
    1.32  		branchLinksContextMenu->addAction ( actionEditURL );
    1.33 +		branchLinksContextMenu->addAction ( actionEditLocalURL );
    1.34  		branchLinksContextMenu->addAction ( actionEditHeading2URL );
    1.35  		branchLinksContextMenu->addAction ( actionEditBugzilla2URL );
    1.36  		if (settings.value( "/mainwindow/showTestMenu",false).toBool() )
    1.37 @@ -3411,8 +3413,8 @@
    1.38  					if (bot)
    1.39  					{
    1.40  						s=bot->getHeading();
    1.41 -						if (s.length()>25)
    1.42 -							s=s.left(25)+"...";
    1.43 +						if (s.length()>xLinkMenuWidth)
    1.44 +							s=s.left(xLinkMenuWidth)+"...";
    1.45  						branchXLinksContextMenuFollow->addAction (s);
    1.46  						branchXLinksContextMenuEdit->addAction (s);
    1.47  					}