summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-18 16:22:24 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-18 16:22:24 +0900
commitaa6764916ff2706bc094a8858691f9b0a98f395c (patch)
treed26403e8350537c2bdc4be9c967af960640e41f4
parentcba162755d7b1b72e68d1fb3906df621b9f001cc (diff)
downloadpytqt-aa6764916ff2706bc094a8858691f9b0a98f395c.tar.gz
pytqt-aa6764916ff2706bc094a8858691f9b0a98f395c.zip
Drop compatibility code for TQPalette
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rwxr-xr-xexamples/desktop.py2
-rw-r--r--sip/tqt/tqpalette.sip3
2 files changed, 1 insertions, 4 deletions
diff --git a/examples/desktop.py b/examples/desktop.py
index f695835..f3744d8 100755
--- a/examples/desktop.py
+++ b/examples/desktop.py
@@ -164,7 +164,7 @@ def desktopWidget(s='Trolltech'):
def desktopText(s='Trolltech'):
border = 20
- c1 = tqApp.palette().normal().background()
+ c1 = tqApp.palette().active().background()
c2 = c1.light(104)
c3 = c1.dark(106)
diff --git a/sip/tqt/tqpalette.sip b/sip/tqt/tqpalette.sip
index 6e4bd98..b413daf 100644
--- a/sip/tqt/tqpalette.sip
+++ b/sip/tqt/tqpalette.sip
@@ -44,7 +44,6 @@ public:
TQPalette(const TQPalette &);
enum ColorGroup {
- Normal,
Disabled,
Active,
Inactive,
@@ -63,12 +62,10 @@ public:
const TQColorGroup &active() const;
const TQColorGroup &disabled() const;
const TQColorGroup &inactive() const;
- const TQColorGroup &normal() const;
void setActive(const TQColorGroup &);
void setDisabled(const TQColorGroup &);
void setInactive(const TQColorGroup &);
- void setNormal(const TQColorGroup &);
bool operator==(const TQPalette &) const;
bool operator!=(const TQPalette &) const;