Commit 1fb00df3 authored by Mariusz Glebocki's avatar Mariusz Glebocki Committed by Kurt Hindenburg
Browse files

Reorder functions definitions

parent a77f75bf
......@@ -546,22 +546,6 @@ void TabbedViewContainer::setTabActivity(int index, bool activity)
}
}
void TabbedViewContainer::updateActivity(ViewProperties *item)
{
auto controller = qobject_cast<SessionController*>(item);
auto topLevelSplitter = qobject_cast<ViewSplitter*>(controller->view()->parentWidget())->getToplevelSplitter();
const int index = indexOf(topLevelSplitter);
if (index != currentIndex()) {
setTabActivity(index, true);
}
}
void TabbedViewContainer::currentSessionControllerChanged(SessionController *controller)
{
updateTitle(qobject_cast<ViewProperties*>(controller));
}
void TabbedViewContainer::updateTitle(ViewProperties *item)
{
auto controller = qobject_cast<SessionController*>(item);
......@@ -584,6 +568,22 @@ void TabbedViewContainer::updateIcon(ViewProperties *item)
setTabIcon(index, item->icon());
}
void TabbedViewContainer::updateActivity(ViewProperties *item)
{
auto controller = qobject_cast<SessionController*>(item);
auto topLevelSplitter = qobject_cast<ViewSplitter*>(controller->view()->parentWidget())->getToplevelSplitter();
const int index = indexOf(topLevelSplitter);
if (index != currentIndex()) {
setTabActivity(index, true);
}
}
void TabbedViewContainer::currentSessionControllerChanged(SessionController *controller)
{
updateTitle(qobject_cast<ViewProperties*>(controller));
}
void TabbedViewContainer::closeTerminalTab(int idx) {
//TODO: This for should probably go to the ViewSplitter
for (auto terminal : viewSplitterAt(idx)->findChildren<TerminalDisplay*>()) {
......
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