mirror of
https://github.com/KDE/konsole.git
synced 2026-05-03 04:04:18 -04:00
Re-add ability to open a new tab by double-clicking the tab bar.
I don't know why this was removed; please tell me if I'm interfering. svn path=/trunk/KDE/kdebase/apps/konsole/; revision=799364
This commit is contained in:
@@ -605,6 +605,7 @@ TabbedViewContainerV2::TabbedViewContainerV2(NavigationPosition position , QObje
|
||||
|
||||
connect( _tabBar , SIGNAL(currentChanged(int)) , this , SLOT(currentTabChanged(int)) );
|
||||
connect( _tabBar , SIGNAL(tabDoubleClicked(int)) , this , SLOT(tabDoubleClicked(int)) );
|
||||
connect( _tabBar , SIGNAL(newTabRequest()) , this , SIGNAL(newViewRequest()) );
|
||||
connect( _tabBar , SIGNAL(wheelDelta(int)) , this , SLOT(wheelScrolled(int)) );
|
||||
connect( _tabBar , SIGNAL(mouseMiddleClick(int)) , this , SLOT(closeTab(int)) );
|
||||
connect( _tabBar , SIGNAL(initiateDrag(int)) , this , SLOT(startTabDrag(int)) );
|
||||
|
||||
@@ -240,6 +240,9 @@ signals:
|
||||
/** Emitted when the user requests to close a view */
|
||||
void closeRequest(QWidget* activeView);
|
||||
|
||||
/** Emitted when the user requests to open a new view */
|
||||
void newViewRequest();
|
||||
|
||||
/**
|
||||
* Emitted when the user requests to move a view from another container
|
||||
* into this container. If 'success' is set to true by a connected slot
|
||||
|
||||
@@ -576,6 +576,7 @@ ViewContainer* ViewManager::createContainer(const Profile::Ptr info)
|
||||
SLOT(map()) );
|
||||
_containerSignalMapper->setMapping(container,container);
|
||||
|
||||
connect( container, SIGNAL(newViewRequest()), this, SIGNAL(newViewRequest()) );
|
||||
connect( container, SIGNAL(moveViewRequest(int,int,bool&)),
|
||||
this , SLOT(containerMoveViewRequest(int,int,bool&)) );
|
||||
connect( container , SIGNAL(viewRemoved(QWidget*)) , this , SLOT(viewCloseRequest(QWidget*)) );
|
||||
|
||||
Reference in New Issue
Block a user