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
wilder-portage
Constantin Berzan 18 years ago
parent 199dc3e99a
commit 7c0e11f649
  1. 1
      src/ViewContainer.cpp
  2. 3
      src/ViewContainer.h
  3. 1
      src/ViewManager.cpp

@ -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*)) );

Loading…
Cancel
Save