MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / Save

Method Save

Plugins/WebBrowser/FrmWebBrowser.cpp:1029–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027}
1028
1029int CFrmWebBrowser::Save(QSettings &set)
1030{
1031 if(m_pPara && m_pPara->GetOpenPrevious()) {
1032 set.beginGroup("OpenPrevious");
1033 set.setValue("Count", m_pTab->count());
1034 set.setValue("Current", m_pTab->currentIndex());
1035
1036 for(int i = 0; i < m_pTab->count(); i++) {
1037 auto v = GetView(i);
1038 if(v) {
1039 set.setValue("Url/" + QString::number(i), v->url().toString());
1040 QByteArray history;
1041 QDataStream d(&history, QIODevice::ReadWrite);
1042 d << *v->history();
1043 set.setValue("History/" + QString::number(i), history);
1044 }
1045 }
1046
1047 set.endGroup();
1048 }
1049 return 0;
1050}
1051
1052void CFrmWebBrowser::slotPrint()
1053{

Callers

nothing calls this directly

Calls 2

GetOpenPreviousMethod · 0.80
urlMethod · 0.80

Tested by

no test coverage detected