diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2023-10-04 22:56:39 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2023-11-02 10:46:05 +0200 |
commit | 050ff82bcc94256581eaa840f39f5f7f08b33023 (patch) | |
tree | d6aff6583373a9f1e6b41c6df99051fe776c4015 /tdeui/ktabbar.h | |
parent | 10b5c67d722bd6c021ff9b5d2856410f1cca8e4a (diff) | |
download | tdelibs-050ff82bcc94256581eaa840f39f5f7f08b33023.tar.gz tdelibs-050ff82bcc94256581eaa840f39f5f7f08b33023.zip |
KTabBar: add way to revert tab color to default
This commit adds a resetTabColor(...) method to TQTabBar and TQTabWidget which allows the color of the appropriate tab to be reset to the default as specified by the desktop color scheme.
It also changes how invalid color values are handled; before, an invalid value would be used as a valid color, resulting in 0,0,0 (black). Seeing that an invalid color is returned by KColorDialog when the default color checkbox is checked, it makes more sense to ignore invalid colors, using the appropriate color from the color scheme instead.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
(cherry picked from commit c28a87c7d2e5c170a84bd8d1e7feece3ef9521ec)
Diffstat (limited to 'tdeui/ktabbar.h')
-rw-r--r-- | tdeui/ktabbar.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tdeui/ktabbar.h b/tdeui/ktabbar.h index e31454253..c6602d0c6 100644 --- a/tdeui/ktabbar.h +++ b/tdeui/ktabbar.h @@ -44,6 +44,7 @@ public: const TQColor &tabColor( int ) const; void setTabColor( int, const TQColor& ); + void resetTabColor( int ); virtual int insertTab( TQTab *, int index = -1 ); virtual void removeTab( TQTab * ); |