mainwindow: improved panel organization
This commit is contained in:
@@ -44,14 +44,18 @@ void TimelinePanel::SplitAtPlayhead()
|
||||
timeline_widget()->SplitAtPlayhead();
|
||||
}
|
||||
|
||||
QByteArray TimelinePanel::SaveSplitterState() const
|
||||
void TimelinePanel::LoadData(const Info &info)
|
||||
{
|
||||
return timeline_widget()->SaveSplitterState();
|
||||
timeline_widget()->RestoreSplitterState(QByteArray::fromBase64(info.at("splitter").toUtf8()));
|
||||
}
|
||||
|
||||
void TimelinePanel::RestoreSplitterState(const QByteArray &state)
|
||||
PanelWidget::Info TimelinePanel::SaveData() const
|
||||
{
|
||||
timeline_widget()->RestoreSplitterState(state);
|
||||
Info i;
|
||||
|
||||
i["splitter"] = timeline_widget()->SaveSplitterState().toBase64();
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
void TimelinePanel::SelectAll()
|
||||
|
||||
Reference in New Issue
Block a user