Em Terça-feira 10 Novembro 2009, às 15:02:15, ext Petri Damstén escreveu:
> On Tuesday 10 November 2009 15:42:18 Kenneth Christiansen wrote:
> > Hi again.
> >
> > I talked to Thiago Macieira and he told me that QUrl in 4.6 is more
> > strict than in 4.5, but there isn't any behaviour change.
> >
> > Can you please give me examples that stopped working?
> 
> d->page->mainFrame()->setHtml(dataFor(webpage), QUrl(package()-
> 
> >filePath("html"))); used to work. Now urls have to have scheme to work.
> > Fixed
> 
> by using KUrl that adds file:// for local paths.

if package()->filePath() returns a URL, it should have file:// already.

If it returns a file name, you should be using QUrl::fromLocalFile.

File paths are not URLs. Do not mix them.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to