Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Fix comparison of integers of different signs
Browse files Browse the repository at this point in the history
  • Loading branch information
0x6e committed Mar 26, 2018
1 parent 642619f commit 36440de
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/declarativecolordialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ QString DeclarativeColorDialogAttached::title() const
return d->title;
}

void DeclarativeColorDialogAttached::setOptions(int options)
void DeclarativeColorDialogAttached::setOptions(unsigned int options)
{
if (d->options == options)
return;
Expand All @@ -71,7 +71,7 @@ void DeclarativeColorDialogAttached::setOptions(int options)
emit optionsChanged(options);
}

int DeclarativeColorDialogAttached::options() const
unsigned int DeclarativeColorDialogAttached::options() const
{
return d->options;
}
Expand Down
6 changes: 3 additions & 3 deletions src/declarativecolordialog_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class DeclarativeColorDialogAttached : public StaticDialogMethodAttached
{
Q_OBJECT
Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged)
Q_PROPERTY(int options READ options WRITE setOptions NOTIFY optionsChanged)
Q_PROPERTY(unsigned int options READ options WRITE setOptions NOTIFY optionsChanged)

public:
explicit DeclarativeColorDialogAttached(QObject *parent = 0);
Expand All @@ -48,8 +48,8 @@ class DeclarativeColorDialogAttached : public StaticDialogMethodAttached
void setTitle(const QString &title);
QString title() const;

void setOptions(int options);
int options() const;
void setOptions(unsigned int options);
unsigned int options() const;

Q_INVOKABLE QColor getColor();
Q_INVOKABLE QColor getColor(const QColor &initialColor);
Expand Down
4 changes: 2 additions & 2 deletions src/declarativefontdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ bool DeclarativeFontDialogAttached::dialogAccepted() const
return d->dialogAccepted;
}

void DeclarativeFontDialogAttached::setOptions(int options)
void DeclarativeFontDialogAttached::setOptions(unsigned int options)
{
if (options == d->options)
return;
Expand All @@ -79,7 +79,7 @@ void DeclarativeFontDialogAttached::setOptions(int options)
emit optionsChanged(options);
}

int DeclarativeFontDialogAttached::options() const
unsigned int DeclarativeFontDialogAttached::options() const
{
return d->options;
}
Expand Down
6 changes: 3 additions & 3 deletions src/declarativefontdialog_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DeclarativeFontDialogAttached : public StaticDialogMethodAttached
Q_OBJECT
Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged)
Q_PROPERTY(bool ok READ dialogAccepted NOTIFY dialogAcceptedChanged)
Q_PROPERTY(int options READ options WRITE setOptions NOTIFY optionsChanged)
Q_PROPERTY(unsigned int options READ options WRITE setOptions NOTIFY optionsChanged)

public:
explicit DeclarativeFontDialogAttached(QObject *parent = 0);
Expand All @@ -51,8 +51,8 @@ class DeclarativeFontDialogAttached : public StaticDialogMethodAttached

bool dialogAccepted() const;

void setOptions(int options);
int options() const;
void setOptions(unsigned int options);
unsigned int options() const;

Q_INVOKABLE QFont getFont();
Q_INVOKABLE QFont getFont(const QString &fontFamily);
Expand Down

0 comments on commit 36440de

Please sign in to comment.