rewrote window saveing/serialization system

fixes #212
This commit is contained in:
fourtf
2018-04-06 23:31:34 +02:00
parent 4ec2c0d8b3
commit cb06579c29
19 changed files with 291 additions and 316 deletions
+6 -5
View File
@@ -111,6 +111,7 @@ ChannelView::ChannelView(BaseWidget *parent)
QObject::connect(this->layoutCooldown, &QTimer::timeout, [this] {
if (this->layoutQueued) {
this->layoutMessages();
this->layoutQueued = false;
}
});
}
@@ -137,15 +138,15 @@ void ChannelView::themeRefreshEvent()
void ChannelView::queueUpdate()
{
if (this->updateTimer.isActive()) {
this->updateQueued = true;
return;
}
// if (this->updateTimer.isActive()) {
// this->updateQueued = true;
// return;
// }
// this->repaint();
this->update();
this->updateTimer.start();
// this->updateTimer.start();
}
void ChannelView::layoutMessages()