diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-08 15:17:51 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-08 19:38:03 +0900 |
| commit | 7d612f7c91d55501276a385a30dbadb121e7bd9f (patch) | |
| tree | 4c6f1546e16db32779dfbf5c9e107b938faee6bb /src/kernel/tqstyle.cpp | |
| parent | 5a863a8932d14b99c5f838c4efa1618070d71b29 (diff) | |
| download | tqt-7d612f7c91d55501276a385a30dbadb121e7bd9f.tar.gz tqt-7d612f7c91d55501276a385a30dbadb121e7bd9f.zip | |
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kernel/tqstyle.cpp')
| -rw-r--r-- | src/kernel/tqstyle.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/src/kernel/tqstyle.cpp b/src/kernel/tqstyle.cpp index 7b21783b0..ccf8fb66f 100644 --- a/src/kernel/tqstyle.cpp +++ b/src/kernel/tqstyle.cpp @@ -63,7 +63,7 @@ public: }; TQStyleOption::TQStyleOption(StyleOptionDefault) : - def(TRUE), + def(true), tb(NULL), i1(-1), i2(-1), @@ -76,7 +76,7 @@ TQStyleOption::TQStyleOption(StyleOptionDefault) : } TQStyleOption::TQStyleOption(int in1) : - def(FALSE), + def(false), tb(NULL), i1(in1), i2(-1), @@ -89,7 +89,7 @@ TQStyleOption::TQStyleOption(int in1) : } TQStyleOption::TQStyleOption(int in1, int in2) : - def(FALSE), + def(false), tb(NULL), i1(in1), i2(in2), @@ -102,7 +102,7 @@ TQStyleOption::TQStyleOption(int in1, int in2) : } TQStyleOption::TQStyleOption(int in1, int in2, int in3, int in4) : - def(FALSE), + def(false), tb(NULL), i1(in1), i2(in2), @@ -115,7 +115,7 @@ TQStyleOption::TQStyleOption(int in1, int in2, int in3, int in4) : } TQStyleOption::TQStyleOption(TQMenuItem* m) : - def(FALSE), + def(false), mi(m), tb(NULL), i1(-1), @@ -129,7 +129,7 @@ TQStyleOption::TQStyleOption(TQMenuItem* m) : } TQStyleOption::TQStyleOption(TQMenuItem* m, int in1) : - def(FALSE), + def(false), mi(m), tb(NULL), i1(in1), @@ -143,7 +143,7 @@ TQStyleOption::TQStyleOption(TQMenuItem* m, int in1) : } TQStyleOption::TQStyleOption(TQMenuItem* m, int in1, int in2) : - def(FALSE), + def(false), mi(m), tb(NULL), i1(in1), @@ -157,7 +157,7 @@ TQStyleOption::TQStyleOption(TQMenuItem* m, int in1, int in2) : } TQStyleOption::TQStyleOption(const TQColor& c) : - def(FALSE), + def(false), tb(NULL), cl(&c), i1(-1), @@ -171,7 +171,7 @@ TQStyleOption::TQStyleOption(const TQColor& c) : } TQStyleOption::TQStyleOption(TQTab* t) : - def(FALSE), + def(false), tb(t), i1(-1), i2(-1), @@ -184,7 +184,7 @@ TQStyleOption::TQStyleOption(TQTab* t) : } TQStyleOption::TQStyleOption(TQListViewItem* i) : - def(FALSE), + def(false), tb(NULL), li(i), i1(-1), @@ -198,7 +198,7 @@ TQStyleOption::TQStyleOption(TQListViewItem* i) : } TQStyleOption::TQStyleOption(TQCheckListItem* i) : - def(FALSE), + def(false), tb(NULL), i1(-1), i2(-1), @@ -211,7 +211,7 @@ TQStyleOption::TQStyleOption(TQCheckListItem* i) : } TQStyleOption::TQStyleOption(TQt::ArrowType a) : - def(FALSE), + def(false), tb(NULL), i1((int)a), i2(-1), @@ -224,7 +224,7 @@ TQStyleOption::TQStyleOption(TQt::ArrowType a) : } TQStyleOption::TQStyleOption(const TQRect& r) : - def(FALSE), + def(false), tb(NULL), i1(r.x()), i2(r.y()), @@ -237,7 +237,7 @@ TQStyleOption::TQStyleOption(const TQRect& r) : } TQStyleOption::TQStyleOption(TQWidget *w) : - def(FALSE), + def(false), tb(NULL), i1(-1), i2(-1), @@ -383,8 +383,8 @@ TQStyleOption::TQStyleOption(TQWidget *w) : /*! \fn bool TQStyleOption::isDefault() const - Returns TRUE if the option was constructed with the default - constructor; otherwise returns FALSE. + Returns true if the option was constructed with the default + constructor; otherwise returns false. */ /*! @@ -883,7 +883,7 @@ void TQStyle::drawItem( TQPainter *p, const TQRect &r, bool clip = (flags & TQt::DontClip) == 0; if ( clip ) { if ( pm.width() < w && pm.height() < h ) { - clip = FALSE; + clip = false; } else { p->save(); TQRegion cr = TQRect(x, y, w, h); @@ -917,7 +917,7 @@ void TQStyle::drawItem( TQPainter *p, const TQRect &r, TQString k; k.sprintf( "$qt-drawitem-%x", pm.serialNumber() ); TQPixmap *mask = TQPixmapCache::find(k); - bool del=FALSE; + bool del=false; if ( !mask ) { mask = new TQPixmap( pm.createHeuristicMask() ); mask->setMask( *((TQBitmap*)mask) ); @@ -1973,19 +1973,19 @@ void TQStyle::drawItem( TQPainter *p, const TQRect &r, TQt::BackgroundMode BackgroundMode\endlink enum. \value SH_ScrollBar_MiddleClickAbsolutePosition a boolean value. - If TRUE, middle clicking on a scrollbar causes the slider to - jump to that position. If FALSE, the middle clicking is + If true, middle clicking on a scrollbar causes the slider to + jump to that position. If false, the middle clicking is ignored. \value SH_ScrollBar_LeftClickAbsolutePosition a boolean value. - If TRUE, left clicking on a scrollbar causes the slider to - jump to that position. If FALSE, the left clicking will + If true, left clicking on a scrollbar causes the slider to + jump to that position. If false, the left clicking will behave as appropriate for each control. \value SH_ScrollBar_ScrollWhenPointerLeavesControl a boolean - value. If TRUE, when clicking a scrollbar SubControl, holding + value. If true, when clicking a scrollbar SubControl, holding the mouse button down and moving the pointer outside the - SubControl, the scrollbar continues to scroll. If FALSE, the + SubControl, the scrollbar continues to scroll. If false, the scrollbar stops scrolling when the pointer leaves the SubControl. @@ -2402,7 +2402,7 @@ void TQStyle::setWidgetActionRequestHook( WidgetActionRequestHook hook ) { /*! \fn bool widgetActionRequestHandler( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void* source, WidgetActionRequest request ); - Handles widget action requests. Return FALSE to continue processing in base classes, TRUE to eat the request and halt processing. + Handles widget action requests. Return false to continue processing in base classes, true to eat the request and halt processing. */ bool TQStyle::widgetActionRequest( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void* source, WidgetActionRequest request, TQStyleWidgetActionRequestData requestData ) { bool cbret = false; @@ -2413,33 +2413,33 @@ bool TQStyle::widgetActionRequest( const TQStyleControlElementData &ceData, Cont if (ceData.widgetObjectTypes.contains("TQWidget")) { TQWidget* widget = reinterpret_cast<TQWidget*>(source); if (request == WAR_Repaint) { - widget->repaint(FALSE); + widget->repaint(false); } else if (request == WAR_RepaintRect) { - widget->repaint(requestData.rect, FALSE); + widget->repaint(requestData.rect, false); } else if (request == WAR_EnableMouseTracking) { - widget->setMouseTracking(TRUE); + widget->setMouseTracking(true); } else if (request == WAR_DisableMouseTracking) { - widget->setMouseTracking(FALSE); + widget->setMouseTracking(false); } else if (request == WAR_SetAutoMask) { - widget->setAutoMask(TRUE); + widget->setAutoMask(true); } else if (request == WAR_UnSetAutoMask) { - widget->setAutoMask(FALSE); + widget->setAutoMask(false); } else if (request == WAR_SetCheckable) { TQPopupMenu *pm = dynamic_cast<TQPopupMenu*>(widget); if (pm) { - pm->setCheckable(TRUE); + pm->setCheckable(true); } } else if (request == WAR_UnSetCheckable) { TQPopupMenu *pm = dynamic_cast<TQPopupMenu*>(widget); if (pm) { - pm->setCheckable(FALSE); + pm->setCheckable(false); } } else if (request == WAR_FrameSetStyle) { @@ -2493,7 +2493,7 @@ bool TQStyle::widgetActionRequest( const TQStyleControlElementData &ceData, Cont it2.toFirst(); while ( (w = (TQWidget*)it2.current()) != 0 ) { ++it2; - w->repaint(FALSE); + w->repaint(false); } delete l; } @@ -2502,13 +2502,13 @@ bool TQStyle::widgetActionRequest( const TQStyleControlElementData &ceData, Cont else if (request == WAR_SetDefault) { TQPushButton *button = dynamic_cast<TQPushButton*>(widget); if (button) { - button->setDefault(TRUE); + button->setDefault(true); } } else if (request == WAR_UnSetDefault) { TQPushButton *button = dynamic_cast<TQPushButton*>(widget); if (button) { - button->setDefault(FALSE); + button->setDefault(false); } } else if (request == WAR_SendPaintEvent) { @@ -2536,7 +2536,7 @@ void TQStyle::setApplicationActionRequestHook( ApplicationActionRequestHook hook /*! \fn bool applicationActionRequestHandler( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void* source, ApplicationActionRequest request ); - Handles application action requests. Return FALSE to continue processing in base classes, TRUE to eat the request and halt processing. + Handles application action requests. Return false to continue processing in base classes, true to eat the request and halt processing. */ bool TQStyle::applicationActionRequest( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void* source, ApplicationActionRequest request, TQStyleApplicationActionRequestData requestData ) { bool cbret = false; |
