mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
replace local constant with the enum for in QPalette data stream operator
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
41ce90510b
commit
97c4c460f8
1 changed files with 2 additions and 3 deletions
|
@ -871,9 +871,8 @@ QPalette QPalette::resolve(const QPalette &other) const
|
|||
|
||||
QDataStream &operator<<(QDataStream &s, const QPalette &p)
|
||||
{
|
||||
const int max = QPalette::ToolTipText + 1;
|
||||
for (int grp = 0; grp < (int)QPalette::NColorGroups; grp++) {
|
||||
for (int r = 0; r < max; r++)
|
||||
for (int grp = 0; grp < QPalette::NColorGroups; grp++) {
|
||||
for (int r = 0; r < QPalette::NColorRoles; r++)
|
||||
s << p.d->br[grp][r];
|
||||
}
|
||||
return s;
|
||||
|
|
Loading…
Add table
Reference in a new issue