mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
handle formats as exclusive in QX11Data::xdndMimeAtomsForFormat()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
7770145286
commit
98f067c949
1 changed files with 4 additions and 7 deletions
|
@ -543,18 +543,15 @@ QList<Atom> QX11Data::xdndMimeAtomsForFormat(const QString &format)
|
|||
atoms.append(XA_STRING);
|
||||
atoms.append(ATOM(TEXT));
|
||||
atoms.append(ATOM(COMPOUND_TEXT));
|
||||
}
|
||||
|
||||
// special cases for uris
|
||||
if (format == QLatin1String("text/uri-list")) {
|
||||
} else if (format == QLatin1String("text/uri-list")) {
|
||||
atoms.append(xdndMimeStringToAtom(QLatin1String("text/x-moz-url")));
|
||||
}
|
||||
|
||||
//special cases for images
|
||||
if (format == QLatin1String("image/ppm"))
|
||||
} else if (format == QLatin1String("image/ppm")) {
|
||||
atoms.append(XA_PIXMAP);
|
||||
if (format == QLatin1String("image/pbm"))
|
||||
} else if (format == QLatin1String("image/pbm")) {
|
||||
atoms.append(XA_BITMAP);
|
||||
}
|
||||
|
||||
return atoms;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue