small refactor

This commit is contained in:
fourtf
2018-11-14 17:26:08 +01:00
parent 0f9ef9d0aa
commit d8fcc1a3ed
10 changed files with 106 additions and 128 deletions
-13
View File
@@ -68,19 +68,6 @@ SplitNotebook &Window::getNotebook()
return *this->notebook_;
}
void Window::repaintVisibleChatWidgets(Channel *channel)
{
auto page = this->notebook_->getOrAddSelectedPage();
for (const auto &split : page->getSplits())
{
if (channel == nullptr || channel == split->getChannel().get())
{
split->layoutMessages();
}
}
}
bool Window::event(QEvent *event)
{
switch (event->type())