Commit c1b2c4e9 authored by Robert Knight's avatar Robert Knight

Clear selection if no search result found. Emit appropriate signals when...

Clear selection if no search result found.  Emit appropriate signals when switching tabs in the new tabbed view container class.

svn path=/branches/work/konsole-split-view/; revision=657457
parent f96a5f41
......@@ -980,6 +980,10 @@ void SearchHistoryTask::execute()
line = endLine;
} while ( startLine != endLine );
// if no match was found, clear selection to indicate this
_screenWindow->clearSelection();
_screenWindow->notifyOutputChanged();
}
}
......
......@@ -369,6 +369,8 @@ TabbedViewContainerV2::TabbedViewContainerV2(QObject* parent) : ViewContainer(pa
_stackWidget = new QStackedWidget();
_tabBar = new ViewContainerTabBar();
_tabBar->setDrawBase(true);
connect( _tabBar , SIGNAL(currentChanged(int)) , this , SLOT(currentTabChanged(int)) );
QVBoxLayout* layout = new QVBoxLayout;
layout->setSpacing(0);
......@@ -382,6 +384,11 @@ TabbedViewContainerV2::~TabbedViewContainerV2()
{
_containerWidget->deleteLater();
}
void TabbedViewContainerV2::currentTabChanged(int index)
{
_stackWidget->setCurrentIndex(index);
emit activeViewChanged(_stackWidget->widget(index));
}
QWidget* TabbedViewContainerV2::containerWidget() const
{
return _containerWidget;
......
......@@ -239,6 +239,7 @@ protected:
private slots:
void updateTitle(ViewProperties* item);
void updateIcon(ViewProperties* item);
void currentTabChanged(int index);
private:
ViewContainerTabBar* _tabBar;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment