diff --git a/examples/dockwidgets/MyTitleBar_CSS.h b/examples/dockwidgets/MyTitleBar_CSS.h index b38ad922..367959e5 100644 --- a/examples/dockwidgets/MyTitleBar_CSS.h +++ b/examples/dockwidgets/MyTitleBar_CSS.h @@ -9,13 +9,18 @@ Contact KDAB at for commercial licensing options. */ +#ifndef EXAMPLETITLEBAR_CSS_H +#define EXAMPLETITLEBAR_CSS_H + +#pragma once + #include /** * @brief Shows how to implement a custom titlebar which uses "Qt StyleSheets". - * + * * Derive from KDDockWidgets::DefaultWidgetFactory and override the two createTitleBar() methods. - * + * * To try it out, modify examples/dockwidgets/MyFrameworkWidgetFactory.cpp to return a MyTitleBar_CSS instance. * Run the example with: ./bin/kddockwidgets_example -p * @@ -77,3 +82,5 @@ public: MyTitleBar_CSS::~MyTitleBar_CSS() { } + +#endif