diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-30 14:27:29 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-06-25 16:43:08 +0900 |
| commit | 35ced32e331ee29fda1642616c803637952f5b22 (patch) | |
| tree | da44726777f814e19c7ef1e43854f6a1693dd6fb /tools/qtconfig/colorbutton.cpp | |
| parent | 7dd4848d61e4c52091d6c644356c84c67536bde2 (diff) | |
| download | tqt-35ced32e.tar.gz tqt-35ced32e.zip | |
Replace TRUE/FALSE with boolean values true/false - part 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit a7f1e6e2552d9cdbb3d76bff089db522248b9a24)
Diffstat (limited to 'tools/qtconfig/colorbutton.cpp')
| -rw-r--r-- | tools/qtconfig/colorbutton.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/qtconfig/colorbutton.cpp b/tools/qtconfig/colorbutton.cpp index 2d8668c21..c8000ea23 100644 --- a/tools/qtconfig/colorbutton.cpp +++ b/tools/qtconfig/colorbutton.cpp @@ -41,9 +41,9 @@ ColorButton::ColorButton(TQWidget *parent, const char *name) - : TQButton(parent, name), mousepressed(FALSE) + : TQButton(parent, name), mousepressed(false) { - setAcceptDrops(TRUE); + setAcceptDrops(true); col = black; connect(this, TQ_SIGNAL(clicked()), TQ_SLOT(changeColor())); } @@ -52,7 +52,7 @@ ColorButton::ColorButton(TQWidget *parent, const char *name) ColorButton::ColorButton(const TQColor &c, TQWidget *parent, const char *name) : TQButton(parent, name) { - setAcceptDrops(TRUE); + setAcceptDrops(true); col = c; connect(this, TQ_SIGNAL(clicked()), TQ_SLOT(changeColor())); } @@ -150,14 +150,14 @@ void ColorButton::dropEvent(TQDropEvent *e) void ColorButton::mousePressEvent(TQMouseEvent *e) { presspos = e->pos(); - mousepressed = TRUE; + mousepressed = true; TQButton::mousePressEvent(e); } void ColorButton::mouseReleaseEvent(TQMouseEvent *e) { - mousepressed = FALSE; + mousepressed = false; TQButton::mouseReleaseEvent(e); } @@ -168,8 +168,8 @@ void ColorButton::mouseMoveEvent(TQMouseEvent *e) return; if ((presspos - e->pos()).manhattanLength() > TQApplication::startDragDistance()) { - mousepressed = FALSE; - setDown(FALSE); + mousepressed = false; + setDown(false); TQColorDrag *cd = new TQColorDrag(color(), this); cd->dragCopy(); |
