void FrameLoaderClient::dispatchDidFinishLoad() { if (m_loadingErrorPage) { m_loadingErrorPage = false; return; } loadDone(m_frame, true); }
void MyPythonQt::loadFile(QString * str) { QString cmd = QString("execfile('") + *str + QString("')"); PythonQtObjectPtr context = PythonQt::self()->getMainModule(); PyObject * dict = PyModule_GetDict(context); PyRun_String(cmd.toLatin1().data(), Py_single_input, dict, dict); delete str; emit(loadDone()); }
void KateProjectWorker::run(ThreadWeaver::JobPointer, ThreadWeaver::Thread *) { /** * Create dummy top level parent item and empty map inside shared pointers * then load the project recursively */ KateProjectSharedQStandardItem topLevel(new QStandardItem()); KateProjectSharedQMapStringItem file2Item(new QMap<QString, KateProjectItem *> ()); loadProject(topLevel.data(), m_projectMap, file2Item.data()); /** * create some local backup of some data we need for further processing! */ QStringList files = file2Item->keys(); emit loadDone(topLevel, file2Item); /** * load index */ loadIndex(files); }
void FrameLoaderClient::dispatchDidFinishLoad() { loadDone(m_frame, true); }