mzhou (Michael Zhou)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Saturday

  • Clear sailing ahead.

User Details

User Since
Jan 20 2018, 8:31 PM (325 w, 4 d)
Availability
Available

Recent Activity

Apr 20 2019

mzhou updated the diff for D18993: Refactor KoColorSet to Change Its Data Structure.

The Python palette docker are now able to show palettes, but they cannot edit them yet.

Apr 20 2019, 12:57 AM · Krita
mzhou added a comment to D18993: Refactor KoColorSet to Change Its Data Structure.

I modified the Python palette docker that it is can now show the palettes correctly. I am thinking disabling it from editting color palettes for now might be a good idea, as all the editting can be done using the C++ docker and it will be easier to bring all the functionalities of the Python docker back when the interfaces to the backend of palettes are more stable.

Apr 20 2019, 12:55 AM · Krita

Feb 21 2019

mzhou added a comment to D18993: Refactor KoColorSet to Change Its Data Structure.

Have you also checked what needs to be done to bring the Python API in line with these changes?

Feb 21 2019, 4:35 PM · Krita

Feb 14 2019

mzhou requested review of D18993: Refactor KoColorSet to Change Its Data Structure.
Feb 14 2019, 12:24 AM · Krita

Feb 3 2019

mzhou closed T8701: File Handling as Resolved.
Feb 3 2019, 8:06 PM · Krita
mzhou closed T8701: File Handling, a subtask of T8700: File Handling Unit Test, as Resolved.
Feb 3 2019, 8:06 PM · Krita
mzhou closed T8700: File Handling Unit Test, a subtask of T8646: A Swatches Docker for Krita (GSoC 18 Project), as Resolved.
Feb 3 2019, 8:05 PM · Krita
mzhou closed T8700: File Handling Unit Test as Resolved.
Feb 3 2019, 8:05 PM · Krita

Oct 6 2018

mzhou added a comment to D14815: New Palette Docker for Krita (T8646).

Naw, this is the only option.

Oct 6 2018, 5:53 PM · Krita

Oct 1 2018

mzhou committed R37:e1face454ed7: Merge the changes in KisTollChangesTrackerData.h (authored by mzhou).
Merge the changes in KisTollChangesTrackerData.h
Oct 1 2018, 12:51 PM
mzhou committed R37:3e0d3ec543b5: Renaming new palette (authored by mzhou).
Renaming new palette
Oct 1 2018, 12:51 PM
mzhou committed R37:c914ee3e5bf7: Merge branch 'master' into mzhou/T8646-palette-docker (authored by mzhou).
Merge branch 'master' into mzhou/T8646-palette-docker
Oct 1 2018, 12:51 PM
mzhou committed R37:84e85f489d5d: Changes in palette editor (authored by mzhou).
Changes in palette editor
Oct 1 2018, 12:51 PM

Aug 20 2018

mzhou updated the diff for D14815: New Palette Docker for Krita (T8646).

Merged Dmitry's fix

Aug 20 2018, 2:07 PM · Krita
mzhou committed R37:75d450d226ba: Merged Dmitry's fix (authored by mzhou).
Merged Dmitry's fix
Aug 20 2018, 2:05 PM
mzhou added a commit to T8646: A Swatches Docker for Krita (GSoC 18 Project): R37:75d450d226ba: Merged Dmitry's fix.
Aug 20 2018, 2:05 PM · Krita
mzhou committed R37:048a2f08bc6e: Solve illegal memory access because of iterator pointing to different temp… (authored by mzhou).
Solve illegal memory access because of iterator pointing to different temp…
Aug 20 2018, 2:05 PM
mzhou added a comment to D14815: New Palette Docker for Krita (T8646).

UPD: I've found out that I can push the fix directly into the branch. So now it is pushed

Here is the fix for that memory access problem: the two iterators are created from two different temporary objects returned from the 'keys()' method.

1diff --git a/libs/widgets/KisPaletteModel.cpp b/libs/widgets/KisPaletteModel.cpp
2index 16d8da9..76d2a60 100644
3--- a/libs/widgets/KisPaletteModel.cpp
4+++ b/libs/widgets/KisPaletteModel.cpp
5@@ -131,7 +131,9 @@ int KisPaletteModel::rowNumberInGroup(int rowInModel) const
6 if (m_groupNameRows.contains(rowInModel)) {
7 return -1;
8 }
9- for (auto it = m_groupNameRows.keys().rbegin(); it != m_groupNameRows.keys().rend(); it++) {
10+
11+ auto keys = m_groupNameRows.keys();
12+ for (auto it = keys.rbegin(); it != keys.rend(); it++) {
13 if (*it < rowInModel) {
14 return rowInModel - *it - 1;
15 }

Aug 20 2018, 12:42 PM · Krita
mzhou updated the summary of D14815: New Palette Docker for Krita (T8646).
Aug 20 2018, 9:14 AM · Krita

Aug 17 2018

mzhou updated the diff for D14815: New Palette Docker for Krita (T8646).

Changed TestKisSwatchGroup so that all QCOMPARE have values with the same type

Aug 17 2018, 1:47 AM · Krita
mzhou added a comment to D14815: New Palette Docker for Krita (T8646).

Is this the same code that is in your branch? I am getting a build error when trying to build the branch...

/src/libs/pigment/tests/TestKisSwatchGroup.cpp:27: undefined reference to `bool QTest::qCompare<QString, char [6]>(QString const&, char const (&) [6], char const*, char const*, char const*, int)'
/home/scott/krita/src/libs/pigment/tests/TestKisSwatchGroup.cpp:33: undefined reference to `bool QTest::qCompare<QString, char [7]>(QString const&, char const (&) [7], char const*, char const*, char const*, int)'
CMakeFiles/TestKisSwatchGroup.dir/TestKisSwatchGroup.cpp.o: In function `TestKisSwatchGroup::testReplaceEntries()':
/home/scott/krita/src/libs/pigment/tests/TestKisSwatchGroup.cpp:45: undefined reference to `bool QTest::qCompare<QString, char [7]>(QString const&, char const (&) [7], char const*, char const*, char const*, int)'
collect2: error: ld returned 1 exit status

I wiped out my build directory to do a clean build and it still gave that error

Aug 17 2018, 1:41 AM · Krita
mzhou committed R37:932c17e99d62: Convert char[] to QString in TestKisSwatchGroup (authored by mzhou).
Convert char[] to QString in TestKisSwatchGroup
Aug 17 2018, 1:39 AM

Aug 16 2018

mzhou committed R37:a5fcdb8972e7: Minor fix on the palette docker (authored by mzhou).
Minor fix on the palette docker
Aug 16 2018, 10:19 AM

Aug 15 2018

mzhou committed R37:74ffbbba19cb: KisPaletteListWidget show still switch to an valid palette after deleting one. (authored by mzhou).
KisPaletteListWidget show still switch to an valid palette after deleting one.
Aug 15 2018, 4:54 AM
mzhou committed R37:8d6228765060: Added safe guards so that users cannot rename palettes to have empty names or… (authored by mzhou).
Added safe guards so that users cannot rename palettes to have empty names or…
Aug 15 2018, 4:54 AM
mzhou committed R37:9e92f4491e51: Modification in usage of palette in the docker itself. (authored by mzhou).
Modification in usage of palette in the docker itself.
Aug 15 2018, 4:54 AM

Aug 14 2018

mzhou updated the diff for D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 2:26 PM · Krita
mzhou committed R37:91b14115e2e3: KisPaletteListWidget no longer make a selection when constructing itself (authored by mzhou).
KisPaletteListWidget no longer make a selection when constructing itself
Aug 14 2018, 2:24 PM
mzhou committed R37:b24e4effea73: Solve crashing when importing palette before setting a palette to use (authored by mzhou).
Solve crashing when importing palette before setting a palette to use
Aug 14 2018, 2:23 PM
mzhou committed R37:093ea94c1985: Correct KoColorSet's behavior when removing a group with keepColors (authored by mzhou).
Correct KoColorSet's behavior when removing a group with keepColors
Aug 14 2018, 2:23 PM
mzhou committed R37:7db626144d79: Use Qt's MVC signals on group modification for palettes (authored by mzhou).
Use Qt's MVC signals on group modification for palettes
Aug 14 2018, 1:45 PM
mzhou committed R37:7a9d877d600d: The palette makes document modified when dragging and dropping (authored by mzhou).
The palette makes document modified when dragging and dropping
Aug 14 2018, 1:45 PM
mzhou committed R37:18625a7081fb: Solved problems related with changing filename of palettes (authored by mzhou).
Solved problems related with changing filename of palettes
Aug 14 2018, 1:45 PM
mzhou committed R37:34aa73f39fcd: Removed no longer needed debugging information in KoResourceServerProvider (authored by mzhou).
Removed no longer needed debugging information in KoResourceServerProvider
Aug 14 2018, 8:37 AM
mzhou committed R37:4b6b0e0713ed: Solved failing to load palettes due to black list (authored by mzhou).
Solved failing to load palettes due to black list
Aug 14 2018, 7:54 AM
mzhou updated the diff for D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 6:00 AM · Krita
mzhou committed R37:fb880a422e76: New palette can still be added even if chosen palette is not editable (authored by mzhou).
New palette can still be added even if chosen palette is not editable
Aug 14 2018, 5:59 AM
mzhou updated the diff for D14815: New Palette Docker for Krita (T8646).

Selection won't be made when empty slot is selected

Aug 14 2018, 5:54 AM · Krita
mzhou committed R37:848546b386c0: KisPaletteView won't make selection when chosen slot is empty (authored by mzhou).
KisPaletteView won't make selection when chosen slot is empty
Aug 14 2018, 5:53 AM
mzhou committed R37:cebf2fa48792: Modified the lazy brush option widget to fit the current palette model (authored by mzhou).
Modified the lazy brush option widget to fit the current palette model
Aug 14 2018, 5:53 AM
mzhou committed R37:c00c07284ec4: Let KisPaletteEditor decide whether change a palette based on if it's editable (authored by mzhou).
Let KisPaletteEditor decide whether change a palette based on if it's editable
Aug 14 2018, 5:53 AM
mzhou committed R37:12b5d6f60324: Now users can not only use mouse clicks but also things like arrow keys to… (authored by mzhou).
Now users can not only use mouse clicks but also things like arrow keys to…
Aug 14 2018, 5:53 AM
mzhou committed R37:d5aaaa6c3f94: Small fix (authored by mzhou).
Small fix
Aug 14 2018, 5:53 AM
mzhou committed R37:e24b8ec01109: Changed the header guard for KisPaletteListWidget to reflect renaming (authored by mzhou).
Changed the header guard for KisPaletteListWidget to reflect renaming
Aug 14 2018, 5:53 AM
mzhou committed R37:7328092de345: Fixed broken unit test for KisSwatchGroup (authored by mzhou).
Fixed broken unit test for KisSwatchGroup
Aug 14 2018, 5:53 AM
mzhou committed R37:b4e7784bcc3f: Set KisPaletteComboBox's completer to popup (authored by mzhou).
Set KisPaletteComboBox's completer to popup
Aug 14 2018, 5:53 AM
mzhou committed R37:885156235cae: Solved deleting a group that is just added (authored by mzhou).
Solved deleting a group that is just added
Aug 14 2018, 5:53 AM
mzhou committed R37:783b996f0bd9: Solved adding a group with a name that's same as others group's original name… (authored by mzhou).
Solved adding a group with a name that's same as others group's original name…
Aug 14 2018, 5:53 AM
mzhou committed R37:6dfc51fec079: Merge branch 'master' into mzhou/T8646-palette-docker (authored by mzhou).
Merge branch 'master' into mzhou/T8646-palette-docker
Aug 14 2018, 5:53 AM
mzhou updated the diff for D14815: New Palette Docker for Krita (T8646).

Fixed a bug with the lazy brush options widget

Aug 14 2018, 5:25 AM · Krita
mzhou updated the summary of D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 3:09 AM · Krita
mzhou updated the summary of D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 3:06 AM · Krita
mzhou updated the summary of D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 2:58 AM · Krita
mzhou updated the summary of D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 2:54 AM · Krita
mzhou updated the summary of D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 2:32 AM · Krita
mzhou updated the summary of D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 2:30 AM · Krita
mzhou updated the summary of D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 2:26 AM · Krita
mzhou updated the summary of D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 2:25 AM · Krita
mzhou updated the summary of D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 1:33 AM · Krita
mzhou updated the summary of D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 1:32 AM · Krita
mzhou updated the summary of D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 1:29 AM · Krita
mzhou updated the summary of D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 12:43 AM · Krita
mzhou retitled D14815: New Palette Docker for Krita (T8646) from New Palette Docker for Krita to New Palette Docker for Krita (T8646).
Aug 14 2018, 12:13 AM · Krita
mzhou requested review of D14815: New Palette Docker for Krita (T8646).
Aug 14 2018, 12:12 AM · Krita

Aug 13 2018

mzhou committed R37:2a42cd5d0a10: Check state of readonly is unchecked when global is set for palettes (authored by mzhou).
Check state of readonly is unchecked when global is set for palettes
Aug 13 2018, 12:55 PM
mzhou committed R37:d53df0b6de5b: Imported palettes are now non-global (authored by mzhou).
Imported palettes are now non-global
Aug 13 2018, 12:55 PM
mzhou committed R37:1a8ee46cc942: Solved glitches in the palette docker (authored by mzhou).
Solved glitches in the palette docker
Aug 13 2018, 12:55 PM
mzhou committed R37:4f42a3620347: KisPaletteComboBox clears itself after palette removed (authored by mzhou).
KisPaletteComboBox clears itself after palette removed
Aug 13 2018, 12:55 PM
mzhou committed R37:ca6f02aeec0c: Add Licensing information (authored by mzhou).
Add Licensing information
Aug 13 2018, 12:55 PM
mzhou committed R37:b5e09a9a752b: KisPaletteComboBox updates GUI when name changes for a swatch (authored by mzhou).
KisPaletteComboBox updates GUI when name changes for a swatch
Aug 13 2018, 12:55 PM
mzhou committed R37:f44d48643e3f: Solved removing a swatch doesn't make doc modified (authored by mzhou).
Solved removing a swatch doesn't make doc modified
Aug 13 2018, 12:55 PM
mzhou committed R37:b5fdc5502560: Can no longer drag empty swatches in palettes (authored by mzhou).
Can no longer drag empty swatches in palettes
Aug 13 2018, 12:55 PM
mzhou committed R37:0133ef6f91a7: Solved malfunctioning renaming of swatch groups (authored by mzhou).
Solved malfunctioning renaming of swatch groups
Aug 13 2018, 12:55 PM
mzhou committed R37:2652bc5b9b70: Modifications in the palettes (authored by mzhou).
Modifications in the palettes
Aug 13 2018, 12:55 PM

Aug 12 2018

mzhou committed R37:1a116bfa3e36: Solved bugs in palette docker (authored by mzhou).
Solved bugs in palette docker
Aug 12 2018, 9:01 AM
mzhou committed R37:d03035aaa020: Merge branch 'master' into mzhou/T8646-palette-docker (authored by mzhou).
Merge branch 'master' into mzhou/T8646-palette-docker
Aug 12 2018, 9:01 AM

Aug 10 2018

mzhou committed R37:784b889a4e2c: Refactored to use KUndo2Command (authored by mzhou).
Refactored to use KUndo2Command
Aug 10 2018, 7:06 PM
mzhou committed R37:1e9c3214bbb4: Filled PaletteManager (authored by mzhou).
Filled PaletteManager
Aug 10 2018, 7:06 PM
mzhou committed R37:dacbfe0c62ce: Remove setValid in the constructor of KoColorSet (authored by mzhou).
Remove setValid in the constructor of KoColorSet
Aug 10 2018, 7:06 PM
mzhou committed R37:f32d2c49d7dd: Changed the way KisKraLoader loads palettes (authored by mzhou).
Changed the way KisKraLoader loads palettes
Aug 10 2018, 7:06 PM

Aug 6 2018

mzhou committed R37:d8d4ce618539: Merge branch 'master' into mzhou/T8646-palette-docker (authored by mzhou).
Merge branch 'master' into mzhou/T8646-palette-docker
Aug 6 2018, 11:13 AM
mzhou committed R37:069b327d532f: Working around for KoFileDialog can't recognize "krita/x-colorsetentry" (authored by mzhou).
Working around for KoFileDialog can't recognize "krita/x-colorsetentry"
Aug 6 2018, 11:13 AM
mzhou committed R37:640e241bbf68: The lazy brush tool is set to fit the new palette view. (authored by mzhou).
The lazy brush tool is set to fit the new palette view.
Aug 6 2018, 11:13 AM
mzhou committed R37:93b1ba2bd278: Solved crashing when opening a file after closing all files (authored by mzhou).
Solved crashing when opening a file after closing all files
Aug 6 2018, 11:13 AM
mzhou committed R37:805428d54d4d: Changed KoColorSet::clear(), make sure the global group is always there (authored by mzhou).
Changed KoColorSet::clear(), make sure the global group is always there
Aug 6 2018, 11:13 AM
mzhou committed R37:ea95ba5ba85f: Now the palette docker is supporting multiple documents (authored by mzhou).
Now the palette docker is supporting multiple documents
Aug 6 2018, 11:13 AM

Aug 5 2018

mzhou committed R37:fd88fe587851: Deleting group with dialog working normally (authored by mzhou).
Deleting group with dialog working normally
Aug 5 2018, 3:29 PM
mzhou committed R37:0d9a8b2d9472: Solved some bugs in the docker (authored by mzhou).
Solved some bugs in the docker
Aug 5 2018, 3:29 PM
mzhou committed R37:2b5a220aae35: The palette docker now supports dragging and dropping of swatches (authored by mzhou).
The palette docker now supports dragging and dropping of swatches
Aug 5 2018, 3:29 PM
mzhou committed R37:26c8d92585ed: Connect PaletteListSaver to KisPaletteModel directly (authored by mzhou).
Connect PaletteListSaver to KisPaletteModel directly
Aug 5 2018, 3:29 PM
mzhou committed R37:d67183714f33: The palette docker is nearly finished (authored by mzhou).
The palette docker is nearly finished
Aug 5 2018, 3:29 PM
mzhou committed R37:ed237cfffce9: loadKpl works again (authored by mzhou).
loadKpl works again
Aug 5 2018, 3:29 PM
mzhou committed R37:4aad35dc6d11: KisDlgPaletteEditor now deletes group correctly (authored by mzhou).
KisDlgPaletteEditor now deletes group correctly
Aug 5 2018, 3:29 PM
mzhou committed R37:b77d1624da32: Now palette list widget stores groups added only after modification is accepted… (authored by mzhou).
Now palette list widget stores groups added only after modification is accepted…
Aug 5 2018, 3:29 PM
mzhou committed R37:c633cbf37a00: Renaming group is now working (authored by mzhou).
Renaming group is now working
Aug 5 2018, 3:29 PM
mzhou committed R37:4ef70073e14a: Now we can rename a group (authored by mzhou).
Now we can rename a group
Aug 5 2018, 3:29 PM
mzhou committed R37:e81a0c1e85b9: KisPaletteView is supporting selection using mouse, with select nearest color… (authored by mzhou).
KisPaletteView is supporting selection using mouse, with select nearest color…
Aug 5 2018, 3:29 PM
mzhou committed R37:2b13eb718b70: KisPaletteView now handles deleted groups properly (authored by mzhou).
KisPaletteView now handles deleted groups properly
Aug 5 2018, 3:29 PM
mzhou committed R37:a0b40eb5564a: KisPaletteView is now drawing group names correctly (authored by mzhou).
KisPaletteView is now drawing group names correctly
Aug 5 2018, 3:29 PM
mzhou committed R37:cfe37f5bcbcb: KisPaletteView now shows groups correctly (authored by mzhou).
KisPaletteView now shows groups correctly
Aug 5 2018, 3:29 PM