diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-30 19:38:06 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-02 16:51:31 +0900 |
| commit | 5d54d74d2693bcf6bfb11cf3ea8ecc5a26bf9228 (patch) | |
| tree | fb19da64ecaadbdb877da56a3af36ba03db6ff8f | |
| parent | 06de69ce6731ce065f70277aa74b978db48df935 (diff) | |
| download | tde-style-qtcurve-5d54d74d.tar.gz tde-style-qtcurve-5d54d74d.zip | |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8c973575f11ecfe88a6b437217a9ce332d51c7c0)
| -rw-r--r-- | common/common.h | 8 | ||||
| -rw-r--r-- | common/config_file.c | 6 | ||||
| -rw-r--r-- | style/shortcuthandler.cpp | 14 |
3 files changed, 7 insertions, 21 deletions
diff --git a/common/common.h b/common/common.h index dc95330..aaa63a9 100644 --- a/common/common.h +++ b/common/common.h @@ -68,17 +68,9 @@ typedef enum SHADING_HCY=3 } EShading; -#ifdef __cplusplus typedef TQColor color; typedef TQStringList Strings; -#else -typedef gboolean bool; -typedef GdkColor color; -typedef gchar ** Strings; -#define true TRUE -#define false FALSE -#endif #define SETTINGS_GROUP "Settings" #define KWIN_GROUP "KWin" diff --git a/common/config_file.c b/common/config_file.c index 95e31ef..da45686 100644 --- a/common/config_file.c +++ b/common/config_file.c @@ -845,7 +845,6 @@ static void loadBgndImage(TQtCImage *img) img->width>16 && img->width<1024 && img->height>16 && img->height<1024) { img->loaded=true; -#ifdef __cplusplus if(!img->file.isEmpty()) { TQSvgRenderer svg(img->file); @@ -859,11 +858,6 @@ static void loadBgndImage(TQtCImage *img) painter.end(); } } -#else // __cplusplus - img->pix=0L; - if(img->file) - img->pix=gdk_pixbuf_new_from_file_at_scale(img->file, img->width, img->height, FALSE, NULL); -#endif // __cplusplus } } diff --git a/style/shortcuthandler.cpp b/style/shortcuthandler.cpp index bb27988..784bedb 100644 --- a/style/shortcuthandler.cpp +++ b/style/shortcuthandler.cpp @@ -79,7 +79,7 @@ void ShortcutHandler::updateWidget(TQWidget *w) { connect(w, TQ_SIGNAL(destroyed(TQObject *)), this, TQ_SLOT(widgetDestroyed(TQObject *))); itsUpdated.append(w); - w->repaint(TRUE); + w->repaint(true); } } @@ -137,9 +137,9 @@ bool ShortcutHandler::eventFilter(TQObject *o, TQEvent *e) end(itsUpdated.end()); for (; it!=end; ++it) - (*it)->repaint(TRUE); + (*it)->repaint(true); if(!itsUpdated.contains(widget)) - widget->repaint(TRUE); + widget->repaint(true); itsSeenAlt.clear(); itsUpdated.clear(); } @@ -150,7 +150,7 @@ bool ShortcutHandler::eventFilter(TQObject *o, TQEvent *e) TQWidget *prev=itsOpenMenus.count() ? itsOpenMenus.last() : 0L; itsOpenMenus.append(widget); if(itsAltDown && prev) - prev->repaint(TRUE); + prev->repaint(true); connect(widget, TQ_SIGNAL(destroyed(TQObject *)), this, TQ_SLOT(widgetDestroyed(TQObject *))); } break; @@ -163,9 +163,9 @@ bool ShortcutHandler::eventFilter(TQObject *o, TQEvent *e) if(itsAltDown) { if(itsOpenMenus.count()) - itsOpenMenus.last()->repaint(TRUE); + itsOpenMenus.last()->repaint(true); else if(widget->parentWidget() && widget->parentWidget()->topLevelWidget()) - widget->parentWidget()->topLevelWidget()->repaint(TRUE); + widget->parentWidget()->topLevelWidget()->repaint(true); } } break; @@ -176,7 +176,7 @@ bool ShortcutHandler::eventFilter(TQObject *o, TQEvent *e) itsSeenAlt.remove(widget->topLevelWidget()); itsOpenMenus.remove(widget); if(itsAltDown && itsOpenMenus.count()) - itsOpenMenus.last()->repaint(TRUE); + itsOpenMenus.last()->repaint(true); break; break; default: |
