From kwrite-devel Sun Feb 09 10:51:27 2003 From: Andras Mantia Date: Sun, 09 Feb 2003 10:51:27 +0000 To: kwrite-devel Subject: Re: File not read completely when opening? X-MARC-Message: https://marc.info/?l=kwrite-devel&m=104478804202504 Andras Mantia wrote: ... > According to the ReadOnlyPart code the signal is emited when the > openFile() returns. So if openFile() wait until the whole file is read, > then everything's fine. But in case we don't even need the completed(), as > we can just wait for openURL() to return. > ... The ReadOnlyPart::openURL() documentation says: "Only reimplement openURL if you don't want synchronous network transparency Otherwise, reimplement openFile() only ." And later for openFile(): "If the part uses the standard implementation of openURL(), it must reimplement this, to open m_file. Otherwise simply define it to { return false; } " Kate uses the standard openURL() implementation, and reimplements openFile(). According to the above, in this case the opening should be done in a synchronous way. Andras -- Quanta Plus developer - http://quanta.sourceforge.net K Desktop Environment - http://www.kde.org _______________________________________________ KWrite-Devel mailing list KWrite-Devel@mail.kde.org http://mail.kde.org/mailman/listinfo/kwrite-devel