summaryrefslogtreecommitdiffstats
path: root/tdeui/ktabwidget.h
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2023-10-04 22:56:39 +0300
committerMavridis Philippe <[email protected]>2023-11-02 10:43:11 +0200
commitc28a87c7d2e5c170a84bd8d1e7feece3ef9521ec (patch)
treec4f0029c8ac4faa9f78fa146866fca0d51bdac95 /tdeui/ktabwidget.h
parent9755ecd967d605a7f2b6f1710389ed5a5de60ae6 (diff)
downloadtdelibs-c28a87c7d2e5c170a84bd8d1e7feece3ef9521ec.tar.gz
tdelibs-c28a87c7d2e5c170a84bd8d1e7feece3ef9521ec.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 <[email protected]>
Diffstat (limited to 'tdeui/ktabwidget.h')
-rw-r--r--tdeui/ktabwidget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tdeui/ktabwidget.h b/tdeui/ktabwidget.h
index b552229c9..1290e6307 100644
--- a/tdeui/ktabwidget.h
+++ b/tdeui/ktabwidget.h
@@ -56,6 +56,11 @@ public:
void setTabColor( TQWidget *, const TQColor& color );
/*!
+ Reset the color of the tab of the given widget.
+ */
+ void resetTabColor( TQWidget * );
+
+ /*!
Returns the tab color for the given widget.
*/
TQColor tabColor( TQWidget * ) const;