diff options
| author | Slávek Banko <slavek.banko@axis.cz> | 2026-01-05 18:12:45 +0100 |
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2026-01-05 18:12:45 +0100 |
| commit | 51ff522f6140a5ffc98e6350992e47207b706916 (patch) | |
| tree | 045412f01cd401353f39f23d3505321221558b41 /kworldwatch | |
| parent | 0c6f1df612314096c4466addec2e31ae2d3484bd (diff) | |
| download | tdetoys-master.tar.gz tdetoys-master.zip | |
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kworldwatch')
| -rw-r--r-- | kworldwatch/flow.cpp | 4 | ||||
| -rw-r--r-- | kworldwatch/flow.h | 2 | ||||
| -rw-r--r-- | kworldwatch/maploader.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/kworldwatch/flow.cpp b/kworldwatch/flow.cpp index 3d7a0c0..a9bbffc 100644 --- a/kworldwatch/flow.cpp +++ b/kworldwatch/flow.cpp @@ -58,7 +58,7 @@ int SimpleFlow::heightForWidth( int w ) const if ( cached_width != w ) { //Not all C++ compilers support "mutable" yet: SimpleFlow * mthis = (SimpleFlow*)this; - int h = mthis->doLayout( TQRect(0,0,w,0), TRUE ); + int h = mthis->doLayout( TQRect(0,0,w,0), true ); mthis->cached_hfw = h; mthis->cached_width = w; return h; @@ -73,7 +73,7 @@ void SimpleFlow::addItem( TQLayoutItem *item) bool SimpleFlow::hasHeightForWidth() const { - return TRUE; + return true; } TQSize SimpleFlow::sizeHint() const diff --git a/kworldwatch/flow.h b/kworldwatch/flow.h index 6eed52e..5657d30 100644 --- a/kworldwatch/flow.h +++ b/kworldwatch/flow.h @@ -46,7 +46,7 @@ protected: void setGeometry( const TQRect& ); private: - int doLayout( const TQRect&, bool testonly = FALSE ); + int doLayout( const TQRect&, bool testonly = false ); TQPtrList<TQLayoutItem> list; int cached_width; int cached_hfw; diff --git a/kworldwatch/maploader.cpp b/kworldwatch/maploader.cpp index d5efd29..aadf0ad 100644 --- a/kworldwatch/maploader.cpp +++ b/kworldwatch/maploader.cpp @@ -130,7 +130,7 @@ TQBitmap MapLoader::darkMask(int width, int height) t = time(NULL); tmp = gmtime(&t); jt = jtime(tmp); - sunpos(jt,FALSE, &sunra, &sundec, &sunrv, &sunlong); + sunpos(jt,false, &sunra, &sundec, &sunrv, &sunlong); int sec = tmp->tm_hour*60*60 + tmp->tm_min*60 + tmp->tm_sec; int gmt_position = width * sec / 86400; // note: greenwich is in the middle! |
