summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-28 18:11:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-03 10:36:14 +0900
commitcf85b9c285a2b9baa87c9d0cb9d683b48e82a475 (patch)
tree868514a6f6939c71ee95754268a4b850fa60c5a5 /example
parenta6b8cc41e27c15bb670aa7c0c0464b6eb44099e9 (diff)
downloadkoffice-cf85b9c285a2b9baa87c9d0cb9d683b48e82a475.tar.gz
koffice-cf85b9c285a2b9baa87c9d0cb9d683b48e82a475.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'example')
-rw-r--r--example/example_part.cpp2
-rw-r--r--example/example_part.h2
-rw-r--r--example/example_view.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/example/example_part.cpp b/example/example_part.cpp
index 4afc46b0e..c2637d01a 100644
--- a/example/example_part.cpp
+++ b/example/example_part.cpp
@@ -43,7 +43,7 @@ bool ExamplePart::initDoc(InitDocFlags flags, TQWidget* parentWidget)
KoTemplateChooseDia::ReturnType ret = KoTemplateChooseDia::choose(
.... )
*/
- return TRUE;
+ return true;
}
KoView* ExamplePart::createViewInstance( TQWidget* parent, const char* name )
diff --git a/example/example_part.h b/example/example_part.h
index 5e44499df..6870d5beb 100644
--- a/example/example_part.h
+++ b/example/example_part.h
@@ -29,7 +29,7 @@ class ExamplePart : public KoDocument
public:
ExamplePart( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject* parent = 0, const char* name = 0, bool singleViewMode = false );
- virtual void paintContent( TQPainter& painter, const TQRect& rect, bool transparent = FALSE, double zoomX = 1.0, double zoomY = 1.0 );
+ virtual void paintContent( TQPainter& painter, const TQRect& rect, bool transparent = false, double zoomX = 1.0, double zoomY = 1.0 );
virtual bool initDoc(InitDocFlags flags, TQWidget* parentWidget=0);
diff --git a/example/example_view.cpp b/example/example_view.cpp
index a0ab2bdb3..d78ecd266 100644
--- a/example/example_view.cpp
+++ b/example/example_view.cpp
@@ -51,7 +51,7 @@ void ExampleView::paintEvent( TQPaintEvent* ev )
// ### TODO: Scaling
// Let the document do the drawing
- koDocument()->paintEverything( painter, ev->rect(), FALSE, this );
+ koDocument()->paintEverything( painter, ev->rect(), false, this );
painter.end();
}