Re: Review Request 112880: Added KColorSchemeToken class.

2013-12-04 Thread Denis Kuplyakov

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/
---

(Updated Dec. 4, 2013, 7:32 p.m.)


Status
--

This change has been discarded.


Review request for KDE Frameworks and kdelibs.


Repository: kdelibs


Description
---

It is wrapper to access KColorScheme's methods from QML code.
Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
accessible from QML code.

As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
libkdegames, as it uses it to access KDE's color theme.

More info:
* search for KDE theme colors API for QML thread at kdelibs and kdegames 
mailinglists *


Diffs
-

  kdeui/CMakeLists.txt b439e04 
  includes/CMakeLists.txt cdf0143 
  includes/KColorSchemeToken PRE-CREATION 
  kdeui/colors/kcolorscheme.h 17570fd 
  kdeui/colors/kcolorscheme.cpp a6650ac 
  kdeui/colors/kcolorschemetoken.h PRE-CREATION 
  kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 

Diff: http://git.reviewboard.kde.org/r/112880/diff/


Testing
---

I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.


Thanks,

Denis Kuplyakov

___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-11-28 Thread Kevin Ottens


 On Oct. 21, 2013, 11:22 a.m., Kevin Ottens wrote:
  To get in this patch would benefit from being based on the frameworks 
  branch and go into kdeclarative.
 
 Kevin Ottens wrote:
 Any chance for an update?
 
 Denis Kuplyakov wrote:
 Yes I will finish it, when have time. There are many pre-exams in 
 university.
 
 Kevin Ottens wrote:
 Any news? we need to get in or discard all the old patches now.

Last warning before getting discarded. Patches will soon not be accepted in 
kdelibs/frameworks in preparation of the repository split.


- Kevin


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/#review42069
---


On Oct. 6, 2013, 7:24 p.m., Denis Kuplyakov wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/112880/
 ---
 
 (Updated Oct. 6, 2013, 7:24 p.m.)
 
 
 Review request for KDE Frameworks and kdelibs.
 
 
 Repository: kdelibs
 
 
 Description
 ---
 
 It is wrapper to access KColorScheme's methods from QML code.
 Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
 accessible from QML code.
 
 As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
 libkdegames, as it uses it to access KDE's color theme.
 
 More info:
 * search for KDE theme colors API for QML thread at kdelibs and kdegames 
 mailinglists *
 
 
 Diffs
 -
 
   kdeui/CMakeLists.txt b439e04 
   includes/CMakeLists.txt cdf0143 
   includes/KColorSchemeToken PRE-CREATION 
   kdeui/colors/kcolorscheme.h 17570fd 
   kdeui/colors/kcolorscheme.cpp a6650ac 
   kdeui/colors/kcolorschemetoken.h PRE-CREATION 
   kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 
 
 Diff: http://git.reviewboard.kde.org/r/112880/diff/
 
 
 Testing
 ---
 
 I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.
 
 
 Thanks,
 
 Denis Kuplyakov
 


___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-11-25 Thread Kevin Ottens


 On Oct. 21, 2013, 11:22 a.m., Kevin Ottens wrote:
  To get in this patch would benefit from being based on the frameworks 
  branch and go into kdeclarative.
 
 Kevin Ottens wrote:
 Any chance for an update?
 
 Denis Kuplyakov wrote:
 Yes I will finish it, when have time. There are many pre-exams in 
 university.

Any news? we need to get in or discard all the old patches now.


- Kevin


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/#review42069
---


On Oct. 6, 2013, 7:24 p.m., Denis Kuplyakov wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/112880/
 ---
 
 (Updated Oct. 6, 2013, 7:24 p.m.)
 
 
 Review request for KDE Frameworks and kdelibs.
 
 
 Repository: kdelibs
 
 
 Description
 ---
 
 It is wrapper to access KColorScheme's methods from QML code.
 Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
 accessible from QML code.
 
 As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
 libkdegames, as it uses it to access KDE's color theme.
 
 More info:
 * search for KDE theme colors API for QML thread at kdelibs and kdegames 
 mailinglists *
 
 
 Diffs
 -
 
   kdeui/CMakeLists.txt b439e04 
   includes/CMakeLists.txt cdf0143 
   includes/KColorSchemeToken PRE-CREATION 
   kdeui/colors/kcolorscheme.h 17570fd 
   kdeui/colors/kcolorscheme.cpp a6650ac 
   kdeui/colors/kcolorschemetoken.h PRE-CREATION 
   kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 
 
 Diff: http://git.reviewboard.kde.org/r/112880/diff/
 
 
 Testing
 ---
 
 I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.
 
 
 Thanks,
 
 Denis Kuplyakov
 


___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-11-10 Thread Kevin Ottens


 On Oct. 21, 2013, 11:22 a.m., Kevin Ottens wrote:
  To get in this patch would benefit from being based on the frameworks 
  branch and go into kdeclarative.

Any chance for an update?


- Kevin


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/#review42069
---


On Oct. 6, 2013, 7:24 p.m., Denis Kuplyakov wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/112880/
 ---
 
 (Updated Oct. 6, 2013, 7:24 p.m.)
 
 
 Review request for KDE Frameworks and kdelibs.
 
 
 Repository: kdelibs
 
 
 Description
 ---
 
 It is wrapper to access KColorScheme's methods from QML code.
 Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
 accessible from QML code.
 
 As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
 libkdegames, as it uses it to access KDE's color theme.
 
 More info:
 * search for KDE theme colors API for QML thread at kdelibs and kdegames 
 mailinglists *
 
 
 Diffs
 -
 
   kdeui/CMakeLists.txt b439e04 
   includes/CMakeLists.txt cdf0143 
   includes/KColorSchemeToken PRE-CREATION 
   kdeui/colors/kcolorscheme.h 17570fd 
   kdeui/colors/kcolorscheme.cpp a6650ac 
   kdeui/colors/kcolorschemetoken.h PRE-CREATION 
   kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 
 
 Diff: http://git.reviewboard.kde.org/r/112880/diff/
 
 
 Testing
 ---
 
 I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.
 
 
 Thanks,
 
 Denis Kuplyakov
 


___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-11-10 Thread Denis Kuplyakov


 On Oct. 21, 2013, 11:22 a.m., Kevin Ottens wrote:
  To get in this patch would benefit from being based on the frameworks 
  branch and go into kdeclarative.
 
 Kevin Ottens wrote:
 Any chance for an update?

Yes I will finish it, when have time. There are many pre-exams in university.


- Denis


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/#review42069
---


On Oct. 6, 2013, 7:24 p.m., Denis Kuplyakov wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/112880/
 ---
 
 (Updated Oct. 6, 2013, 7:24 p.m.)
 
 
 Review request for KDE Frameworks and kdelibs.
 
 
 Repository: kdelibs
 
 
 Description
 ---
 
 It is wrapper to access KColorScheme's methods from QML code.
 Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
 accessible from QML code.
 
 As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
 libkdegames, as it uses it to access KDE's color theme.
 
 More info:
 * search for KDE theme colors API for QML thread at kdelibs and kdegames 
 mailinglists *
 
 
 Diffs
 -
 
   kdeui/CMakeLists.txt b439e04 
   includes/CMakeLists.txt cdf0143 
   includes/KColorSchemeToken PRE-CREATION 
   kdeui/colors/kcolorscheme.h 17570fd 
   kdeui/colors/kcolorscheme.cpp a6650ac 
   kdeui/colors/kcolorschemetoken.h PRE-CREATION 
   kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 
 
 Diff: http://git.reviewboard.kde.org/r/112880/diff/
 
 
 Testing
 ---
 
 I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.
 
 
 Thanks,
 
 Denis Kuplyakov
 


___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-10-09 Thread Denis Kuplyakov


 On Oct. 1, 2013, 2:47 p.m., Sebastian Kügler wrote:
  kdeui/colors/kcolorschemetoken.h, line 70
  http://git.reviewboard.kde.org/r/112880/diff/6/?file=192050#file192050line70
 
  using int here loses the type-safety. Why no use the corresponding 
  enums? It would also make the code more readable.
  
  (Same issue for all the other methods.)
 
 Denis Kuplyakov wrote:
 I have tried it, but have such errors:
 Error: Unknown method parameter type: QPalette::ColorGroup
 
 See this: http://qt-project.org/forums/viewthread/10308/ . It seems that 
 the int is only way to make it works correct.
 
 Sebastian Kügler wrote:
 Have you tried registering that enum using qmlRegisterType?

Yes, I have, but 0 is always go to function. Have you read the link above, such 
behaviour was described there.


- Denis


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/#review41068
---


On Oct. 6, 2013, 7:24 p.m., Denis Kuplyakov wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/112880/
 ---
 
 (Updated Oct. 6, 2013, 7:24 p.m.)
 
 
 Review request for KDE Frameworks and kdelibs.
 
 
 Repository: kdelibs
 
 
 Description
 ---
 
 It is wrapper to access KColorScheme's methods from QML code.
 Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
 accessible from QML code.
 
 As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
 libkdegames, as it uses it to access KDE's color theme.
 
 More info:
 * search for KDE theme colors API for QML thread at kdelibs and kdegames 
 mailinglists *
 
 
 Diffs
 -
 
   kdeui/CMakeLists.txt b439e04 
   includes/CMakeLists.txt cdf0143 
   includes/KColorSchemeToken PRE-CREATION 
   kdeui/colors/kcolorscheme.h 17570fd 
   kdeui/colors/kcolorscheme.cpp a6650ac 
   kdeui/colors/kcolorschemetoken.h PRE-CREATION 
   kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 
 
 Diff: http://git.reviewboard.kde.org/r/112880/diff/
 
 
 Testing
 ---
 
 I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.
 
 
 Thanks,
 
 Denis Kuplyakov
 


___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-10-09 Thread Kevin Ottens


 On Oct. 1, 2013, 2:47 p.m., Sebastian Kügler wrote:
  kdeui/colors/kcolorschemetoken.h, line 70
  http://git.reviewboard.kde.org/r/112880/diff/6/?file=192050#file192050line70
 
  using int here loses the type-safety. Why no use the corresponding 
  enums? It would also make the code more readable.
  
  (Same issue for all the other methods.)
 
 Denis Kuplyakov wrote:
 I have tried it, but have such errors:
 Error: Unknown method parameter type: QPalette::ColorGroup
 
 See this: http://qt-project.org/forums/viewthread/10308/ . It seems that 
 the int is only way to make it works correct.
 
 Sebastian Kügler wrote:
 Have you tried registering that enum using qmlRegisterType?
 
 Denis Kuplyakov wrote:
 Yes, I have, but 0 is always go to function. Have you read the link 
 above, such behaviour was described there.

Likely missing a Q_ENUMS somewhere to get that to work. You might want to roll 
your own enum type and map it to QPalette::* internally.


- Kevin


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/#review41068
---


On Oct. 6, 2013, 7:24 p.m., Denis Kuplyakov wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/112880/
 ---
 
 (Updated Oct. 6, 2013, 7:24 p.m.)
 
 
 Review request for KDE Frameworks and kdelibs.
 
 
 Repository: kdelibs
 
 
 Description
 ---
 
 It is wrapper to access KColorScheme's methods from QML code.
 Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
 accessible from QML code.
 
 As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
 libkdegames, as it uses it to access KDE's color theme.
 
 More info:
 * search for KDE theme colors API for QML thread at kdelibs and kdegames 
 mailinglists *
 
 
 Diffs
 -
 
   kdeui/CMakeLists.txt b439e04 
   includes/CMakeLists.txt cdf0143 
   includes/KColorSchemeToken PRE-CREATION 
   kdeui/colors/kcolorscheme.h 17570fd 
   kdeui/colors/kcolorscheme.cpp a6650ac 
   kdeui/colors/kcolorschemetoken.h PRE-CREATION 
   kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 
 
 Diff: http://git.reviewboard.kde.org/r/112880/diff/
 
 
 Testing
 ---
 
 I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.
 
 
 Thanks,
 
 Denis Kuplyakov
 


___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-10-09 Thread Kevin Ottens


 On Sept. 24, 2013, 6:55 a.m., Kevin Ottens wrote:
  I'm not sure we can let that in for kdelibs 4.x / kdeui... David? Any 
  opinion?
  
  If we ignore that point for the moment, and think in terms of KF5, ATM it 
  would go with KColorScheme in KConfigWidgets. I'm not quite sold on the 
  Token name though. It comes from the fact that it attempts to be the QML 
  API but provided as a C++ API, shouldn't it be in a declarative import 
  plugin with no C++ API? That'd put less pressure on the class name.

I still don't like having that in kdeui... What about kdeclarative instead? Not 
sure the dependencies are acceptable for it though. I'd say let's land it there 
first and then we'll see.


- Kevin


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/#review40635
---


On Oct. 6, 2013, 7:24 p.m., Denis Kuplyakov wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/112880/
 ---
 
 (Updated Oct. 6, 2013, 7:24 p.m.)
 
 
 Review request for KDE Frameworks and kdelibs.
 
 
 Repository: kdelibs
 
 
 Description
 ---
 
 It is wrapper to access KColorScheme's methods from QML code.
 Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
 accessible from QML code.
 
 As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
 libkdegames, as it uses it to access KDE's color theme.
 
 More info:
 * search for KDE theme colors API for QML thread at kdelibs and kdegames 
 mailinglists *
 
 
 Diffs
 -
 
   kdeui/CMakeLists.txt b439e04 
   includes/CMakeLists.txt cdf0143 
   includes/KColorSchemeToken PRE-CREATION 
   kdeui/colors/kcolorscheme.h 17570fd 
   kdeui/colors/kcolorscheme.cpp a6650ac 
   kdeui/colors/kcolorschemetoken.h PRE-CREATION 
   kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 
 
 Diff: http://git.reviewboard.kde.org/r/112880/diff/
 
 
 Testing
 ---
 
 I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.
 
 
 Thanks,
 
 Denis Kuplyakov
 


___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-10-09 Thread Denis Kuplyakov


 On Oct. 1, 2013, 2:47 p.m., Sebastian Kügler wrote:
  kdeui/colors/kcolorschemetoken.h, line 70
  http://git.reviewboard.kde.org/r/112880/diff/6/?file=192050#file192050line70
 
  using int here loses the type-safety. Why no use the corresponding 
  enums? It would also make the code more readable.
  
  (Same issue for all the other methods.)
 
 Denis Kuplyakov wrote:
 I have tried it, but have such errors:
 Error: Unknown method parameter type: QPalette::ColorGroup
 
 See this: http://qt-project.org/forums/viewthread/10308/ . It seems that 
 the int is only way to make it works correct.
 
 Sebastian Kügler wrote:
 Have you tried registering that enum using qmlRegisterType?
 
 Denis Kuplyakov wrote:
 Yes, I have, but 0 is always go to function. Have you read the link 
 above, such behaviour was described there.
 
 Kevin Ottens wrote:
 Likely missing a Q_ENUMS somewhere to get that to work. You might want to 
 roll your own enum type and map it to QPalette::* internally.

If there are no Q_ENUMS it will not work as it is now. You can see QPalette 
source and it has it.


- Denis


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/#review41068
---


On Oct. 6, 2013, 7:24 p.m., Denis Kuplyakov wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/112880/
 ---
 
 (Updated Oct. 6, 2013, 7:24 p.m.)
 
 
 Review request for KDE Frameworks and kdelibs.
 
 
 Repository: kdelibs
 
 
 Description
 ---
 
 It is wrapper to access KColorScheme's methods from QML code.
 Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
 accessible from QML code.
 
 As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
 libkdegames, as it uses it to access KDE's color theme.
 
 More info:
 * search for KDE theme colors API for QML thread at kdelibs and kdegames 
 mailinglists *
 
 
 Diffs
 -
 
   kdeui/CMakeLists.txt b439e04 
   includes/CMakeLists.txt cdf0143 
   includes/KColorSchemeToken PRE-CREATION 
   kdeui/colors/kcolorscheme.h 17570fd 
   kdeui/colors/kcolorscheme.cpp a6650ac 
   kdeui/colors/kcolorschemetoken.h PRE-CREATION 
   kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 
 
 Diff: http://git.reviewboard.kde.org/r/112880/diff/
 
 
 Testing
 ---
 
 I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.
 
 
 Thanks,
 
 Denis Kuplyakov
 


___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-10-08 Thread Denis Kuplyakov


 On Sept. 29, 2013, 4:24 p.m., David Faure wrote:
  The name token surprises me a bit. Is this a usual naming scheme for 
  accessing C++ classes from QML?
  Otherwise I would think the QML code would want to just write KColorScheme.
  
  Maybe the registration could be done in a static method, rather than 
  letting the apps do it on their own?
  
  The NEED TO FIX in the description can be removed, right?
  
  About the branch: I see that the request is correctly for 5.0 - which means 
  less merging trouble, so it sounds good to me :)
 
 
 Denis Kuplyakov wrote:
 We can register it as KColorScheme for QML but in C++ it can't have such 
 name as KColorScheme already exists. Token was first that came to my mind, 
 maybe we can name it KColorSchemeQMLWrapper or smth like this?
 
 As Kevin suggested maybe it should be placed at some other place, not 
 kdeui? I don't know all structure of kdelibs so I'm hope you will help me.
 
 Also how can I implement static registration, or what class I can 
 investigate as example?
 
 I have removed NEED TO FIX...

What is kdelibs/experimental/libkdeclarative ?? Maybe KColorSchemeToken should 
be put there. Does anybody know something about this?


- Denis


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/#review41002
---


On Oct. 6, 2013, 7:24 p.m., Denis Kuplyakov wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/112880/
 ---
 
 (Updated Oct. 6, 2013, 7:24 p.m.)
 
 
 Review request for KDE Frameworks and kdelibs.
 
 
 Repository: kdelibs
 
 
 Description
 ---
 
 It is wrapper to access KColorScheme's methods from QML code.
 Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
 accessible from QML code.
 
 As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
 libkdegames, as it uses it to access KDE's color theme.
 
 More info:
 * search for KDE theme colors API for QML thread at kdelibs and kdegames 
 mailinglists *
 
 
 Diffs
 -
 
   kdeui/CMakeLists.txt b439e04 
   includes/CMakeLists.txt cdf0143 
   includes/KColorSchemeToken PRE-CREATION 
   kdeui/colors/kcolorscheme.h 17570fd 
   kdeui/colors/kcolorscheme.cpp a6650ac 
   kdeui/colors/kcolorschemetoken.h PRE-CREATION 
   kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 
 
 Diff: http://git.reviewboard.kde.org/r/112880/diff/
 
 
 Testing
 ---
 
 I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.
 
 
 Thanks,
 
 Denis Kuplyakov
 


___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-10-08 Thread Sebastian Kügler


 On Oct. 1, 2013, 2:47 p.m., Sebastian Kügler wrote:
  kdeui/colors/kcolorschemetoken.h, line 70
  http://git.reviewboard.kde.org/r/112880/diff/6/?file=192050#file192050line70
 
  using int here loses the type-safety. Why no use the corresponding 
  enums? It would also make the code more readable.
  
  (Same issue for all the other methods.)
 
 Denis Kuplyakov wrote:
 I have tried it, but have such errors:
 Error: Unknown method parameter type: QPalette::ColorGroup
 
 See this: http://qt-project.org/forums/viewthread/10308/ . It seems that 
 the int is only way to make it works correct.

Have you tried registering that enum using qmlRegisterType?


- Sebastian


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/#review41068
---


On Oct. 6, 2013, 7:24 p.m., Denis Kuplyakov wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/112880/
 ---
 
 (Updated Oct. 6, 2013, 7:24 p.m.)
 
 
 Review request for KDE Frameworks and kdelibs.
 
 
 Repository: kdelibs
 
 
 Description
 ---
 
 It is wrapper to access KColorScheme's methods from QML code.
 Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
 accessible from QML code.
 
 As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
 libkdegames, as it uses it to access KDE's color theme.
 
 More info:
 * search for KDE theme colors API for QML thread at kdelibs and kdegames 
 mailinglists *
 
 
 Diffs
 -
 
   kdeui/CMakeLists.txt b439e04 
   includes/CMakeLists.txt cdf0143 
   includes/KColorSchemeToken PRE-CREATION 
   kdeui/colors/kcolorscheme.h 17570fd 
   kdeui/colors/kcolorscheme.cpp a6650ac 
   kdeui/colors/kcolorschemetoken.h PRE-CREATION 
   kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 
 
 Diff: http://git.reviewboard.kde.org/r/112880/diff/
 
 
 Testing
 ---
 
 I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.
 
 
 Thanks,
 
 Denis Kuplyakov
 


___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-10-06 Thread Denis Kuplyakov


 On Oct. 1, 2013, 2:47 p.m., Sebastian Kügler wrote:
  kdeui/colors/kcolorschemetoken.h, line 70
  http://git.reviewboard.kde.org/r/112880/diff/6/?file=192050#file192050line70
 
  using int here loses the type-safety. Why no use the corresponding 
  enums? It would also make the code more readable.
  
  (Same issue for all the other methods.)

I have tried it, but have such errors:
Error: Unknown method parameter type: QPalette::ColorGroup

See this: http://qt-project.org/forums/viewthread/10308/ . It seems that the 
int is only way to make it works correct.


- Denis


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/#review41068
---


On Sept. 29, 2013, 4:27 p.m., Denis Kuplyakov wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/112880/
 ---
 
 (Updated Sept. 29, 2013, 4:27 p.m.)
 
 
 Review request for KDE Frameworks and kdelibs.
 
 
 Repository: kdelibs
 
 
 Description
 ---
 
 It is wrapper to access KColorScheme's methods from QML code.
 Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
 accessible from QML code.
 
 As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
 libkdegames, as it uses it to access KDE's color theme.
 
 More info:
 * search for KDE theme colors API for QML thread at kdelibs and kdegames 
 mailinglists *
 
 
 Diffs
 -
 
   includes/CMakeLists.txt cdf0143 
   includes/KColorSchemeToken PRE-CREATION 
   kdeui/CMakeLists.txt b439e04 
   kdeui/colors/kcolorscheme.h 17570fd 
   kdeui/colors/kcolorscheme.cpp a6650ac 
   kdeui/colors/kcolorschemetoken.h PRE-CREATION 
   kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 
 
 Diff: http://git.reviewboard.kde.org/r/112880/diff/
 
 
 Testing
 ---
 
 I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.
 
 
 Thanks,
 
 Denis Kuplyakov
 


___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-10-06 Thread Denis Kuplyakov

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/
---

(Updated Oct. 6, 2013, 7:24 p.m.)


Review request for KDE Frameworks and kdelibs.


Repository: kdelibs


Description
---

It is wrapper to access KColorScheme's methods from QML code.
Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
accessible from QML code.

As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
libkdegames, as it uses it to access KDE's color theme.

More info:
* search for KDE theme colors API for QML thread at kdelibs and kdegames 
mailinglists *


Diffs (updated)
-

  kdeui/CMakeLists.txt b439e04 
  includes/CMakeLists.txt cdf0143 
  includes/KColorSchemeToken PRE-CREATION 
  kdeui/colors/kcolorscheme.h 17570fd 
  kdeui/colors/kcolorscheme.cpp a6650ac 
  kdeui/colors/kcolorschemetoken.h PRE-CREATION 
  kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 

Diff: http://git.reviewboard.kde.org/r/112880/diff/


Testing
---

I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.


Thanks,

Denis Kuplyakov

___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-10-01 Thread Sebastian Kügler

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/#review41068
---


I'm not a huge fan of using Q_INVOKABLE for something that actually looks more 
like a property. There's something to be said for keeping this object static, 
as otherwise it could grow a bit big, so I wouldn't regard this as a 
showstopper. (As we don't have really dynamic properties, we'd likely to a lot 
of work and keep too much things in memory.)


kdeui/colors/kcolorschemetoken.h
http://git.reviewboard.kde.org/r/112880/#comment30145

Maybe add example calls for this, easy to copy (and still get right). I 
totally see people getting it wrong. :)



kdeui/colors/kcolorschemetoken.h
http://git.reviewboard.kde.org/r/112880/#comment30144

using int here loses the type-safety. Why no use the corresponding enums? 
It would also make the code more readable.

(Same issue for all the other methods.)


- Sebastian Kügler


On Sept. 29, 2013, 4:27 p.m., Denis Kuplyakov wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/112880/
 ---
 
 (Updated Sept. 29, 2013, 4:27 p.m.)
 
 
 Review request for KDE Frameworks and kdelibs.
 
 
 Repository: kdelibs
 
 
 Description
 ---
 
 It is wrapper to access KColorScheme's methods from QML code.
 Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
 accessible from QML code.
 
 As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
 libkdegames, as it uses it to access KDE's color theme.
 
 More info:
 * search for KDE theme colors API for QML thread at kdelibs and kdegames 
 mailinglists *
 
 
 Diffs
 -
 
   includes/CMakeLists.txt cdf0143 
   includes/KColorSchemeToken PRE-CREATION 
   kdeui/CMakeLists.txt b439e04 
   kdeui/colors/kcolorscheme.h 17570fd 
   kdeui/colors/kcolorscheme.cpp a6650ac 
   kdeui/colors/kcolorschemetoken.h PRE-CREATION 
   kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 
 
 Diff: http://git.reviewboard.kde.org/r/112880/diff/
 
 
 Testing
 ---
 
 I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.
 
 
 Thanks,
 
 Denis Kuplyakov
 


___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-09-29 Thread David Faure

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/#review41002
---


The name token surprises me a bit. Is this a usual naming scheme for 
accessing C++ classes from QML?
Otherwise I would think the QML code would want to just write KColorScheme.

Maybe the registration could be done in a static method, rather than letting 
the apps do it on their own?

The NEED TO FIX in the description can be removed, right?

About the branch: I see that the request is correctly for 5.0 - which means 
less merging trouble, so it sounds good to me :)


- David Faure


On Sept. 24, 2013, 4:08 p.m., Denis Kuplyakov wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/112880/
 ---
 
 (Updated Sept. 24, 2013, 4:08 p.m.)
 
 
 Review request for KDE Frameworks and kdelibs.
 
 
 Description
 ---
 
 It is wrapper to access KColorScheme's methods from QML code.
 Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
 accessible from QML code.
 
 As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
 libkdegames, as it uses it to access KDE's color theme.
 
 More info:
 * search for KDE theme colors API for QML thread at kdelibs and kdegames 
 mailinglists *
 
 NEED TO FIX:
 I can't include it like #include KColorSchemeToken at KReversi's code, only 
 kcolorschemetoken.h. Maybe I've missed something?
 
 
 Diffs
 -
 
   includes/CMakeLists.txt cdf0143 
   includes/KColorSchemeToken PRE-CREATION 
   kdeui/CMakeLists.txt b439e04 
   kdeui/colors/kcolorscheme.h 17570fd 
   kdeui/colors/kcolorscheme.cpp a6650ac 
   kdeui/colors/kcolorschemetoken.h PRE-CREATION 
   kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 
 
 Diff: http://git.reviewboard.kde.org/r/112880/diff/
 
 
 Testing
 ---
 
 I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.
 
 
 Thanks,
 
 Denis Kuplyakov
 


___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-09-29 Thread Denis Kuplyakov

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/
---

(Updated Sept. 29, 2013, 4:27 p.m.)


Review request for KDE Frameworks and kdelibs.


Description (updated)
---

It is wrapper to access KColorScheme's methods from QML code.
Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
accessible from QML code.

As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
libkdegames, as it uses it to access KDE's color theme.

More info:
* search for KDE theme colors API for QML thread at kdelibs and kdegames 
mailinglists *


Diffs
-

  includes/CMakeLists.txt cdf0143 
  includes/KColorSchemeToken PRE-CREATION 
  kdeui/CMakeLists.txt b439e04 
  kdeui/colors/kcolorscheme.h 17570fd 
  kdeui/colors/kcolorscheme.cpp a6650ac 
  kdeui/colors/kcolorschemetoken.h PRE-CREATION 
  kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 

Diff: http://git.reviewboard.kde.org/r/112880/diff/


Testing
---

I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.


Thanks,

Denis Kuplyakov

___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-09-29 Thread Denis Kuplyakov


 On Sept. 29, 2013, 4:24 p.m., David Faure wrote:
  The name token surprises me a bit. Is this a usual naming scheme for 
  accessing C++ classes from QML?
  Otherwise I would think the QML code would want to just write KColorScheme.
  
  Maybe the registration could be done in a static method, rather than 
  letting the apps do it on their own?
  
  The NEED TO FIX in the description can be removed, right?
  
  About the branch: I see that the request is correctly for 5.0 - which means 
  less merging trouble, so it sounds good to me :)
 

We can register it as KColorScheme for QML but in C++ it can't have such name 
as KColorScheme already exists. Token was first that came to my mind, maybe we 
can name it KColorSchemeQMLWrapper or smth like this?

As Kevin suggested maybe it should be placed at some other place, not kdeui? I 
don't know all structure of kdelibs so I'm hope you will help me.

Also how can I implement static registration, or what class I can investigate 
as example?

I have removed NEED TO FIX...


- Denis


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/#review41002
---


On Sept. 29, 2013, 4:27 p.m., Denis Kuplyakov wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/112880/
 ---
 
 (Updated Sept. 29, 2013, 4:27 p.m.)
 
 
 Review request for KDE Frameworks and kdelibs.
 
 
 Description
 ---
 
 It is wrapper to access KColorScheme's methods from QML code.
 Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
 accessible from QML code.
 
 As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
 libkdegames, as it uses it to access KDE's color theme.
 
 More info:
 * search for KDE theme colors API for QML thread at kdelibs and kdegames 
 mailinglists *
 
 
 Diffs
 -
 
   includes/CMakeLists.txt cdf0143 
   includes/KColorSchemeToken PRE-CREATION 
   kdeui/CMakeLists.txt b439e04 
   kdeui/colors/kcolorscheme.h 17570fd 
   kdeui/colors/kcolorscheme.cpp a6650ac 
   kdeui/colors/kcolorschemetoken.h PRE-CREATION 
   kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 
 
 Diff: http://git.reviewboard.kde.org/r/112880/diff/
 
 
 Testing
 ---
 
 I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.
 
 
 Thanks,
 
 Denis Kuplyakov
 


___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-09-24 Thread Denis Kuplyakov

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/
---

(Updated Sept. 24, 2013, 4:08 p.m.)


Review request for KDE Frameworks and kdelibs.


Changes
---

Fixed includes


Description
---

It is wrapper to access KColorScheme's methods from QML code.
Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
accessible from QML code.

As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
libkdegames, as it uses it to access KDE's color theme.

More info:
* search for KDE theme colors API for QML thread at kdelibs and kdegames 
mailinglists *

NEED TO FIX:
I can't include it like #include KColorSchemeToken at KReversi's code, only 
kcolorschemetoken.h. Maybe I've missed something?


Diffs (updated)
-

  includes/CMakeLists.txt cdf0143 
  includes/KColorSchemeToken PRE-CREATION 
  kdeui/CMakeLists.txt b439e04 
  kdeui/colors/kcolorscheme.h 17570fd 
  kdeui/colors/kcolorscheme.cpp a6650ac 
  kdeui/colors/kcolorschemetoken.h PRE-CREATION 
  kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 

Diff: http://git.reviewboard.kde.org/r/112880/diff/


Testing
---

I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.


Thanks,

Denis Kuplyakov

___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: Review Request 112880: Added KColorSchemeToken class.

2013-09-23 Thread Denis Kuplyakov

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112880/
---

(Updated Sept. 23, 2013, 2:43 p.m.)


Review request for KDE Frameworks and kdelibs.


Description
---

It is wrapper to access KColorScheme's methods from QML code.
Also added Q_GADGET to KColorScheme to enable Q_ENUMS using, to make them 
accessible from QML code.

As it will be accepted, QML-clone of KgPopupItem will be posted for review to 
libkdegames, as it uses it to access KDE's color theme.

More info:
* search for KDE theme colors API for QML thread at kdelibs and kdegames 
mailinglists *

NEED TO FIX:
I can't include it like #include KColorSchemeToken at KReversi's code, only 
kcolorschemetoken.h. Maybe I've missed something?


Diffs
-

  includes/CMakeLists.txt cdf0143 
  includes/KColorSchemeToken PRE-CREATION 
  kdeui/CMakeLists.txt b439e04 
  kdeui/colors/kcolorscheme.h 17570fd 
  kdeui/colors/kcolorscheme.cpp a6650ac 
  kdeui/colors/kcolorschemetoken.h PRE-CREATION 
  kdeui/colors/kcolorschemetoken.cpp PRE-CREATION 

Diff: http://git.reviewboard.kde.org/r/112880/diff/


Testing
---

I've tested it with KReversi's deniskup/gsoc2013/newdesign branch.


Thanks,

Denis Kuplyakov

___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel