mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kimio: rename ICOType enums for consistency
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
30a64d7b4a
commit
92ec388650
1 changed files with 4 additions and 4 deletions
|
@ -59,8 +59,8 @@ static const struct HeadersTblData {
|
|||
static const qint16 HeadersTblSize = sizeof(HeadersTbl) / sizeof(HeadersTblData);
|
||||
|
||||
enum ICOType {
|
||||
IconType = 1,
|
||||
CursorType = 2
|
||||
TypeIcon = 1,
|
||||
TypeCursor = 2
|
||||
};
|
||||
|
||||
enum BMPCompression {
|
||||
|
@ -111,10 +111,10 @@ bool ICOHandler::read(QImage *image)
|
|||
datastream >> icotype;
|
||||
datastream >> iconimages;
|
||||
|
||||
if (icotype == ICOType::CursorType) {
|
||||
if (icotype == ICOType::TypeCursor) {
|
||||
kWarning() << "Cursor icons are not supported";
|
||||
return false;
|
||||
} else if (icotype != ICOType::IconType) {
|
||||
} else if (icotype != ICOType::TypeIcon) {
|
||||
kWarning() << "Invalid icon type" << icotype;
|
||||
return false;
|
||||
} else if (iconimages < 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue