Files
qt-creator/share/qtcreator/templates/qt4project/customwidgetwizard/tpl_widget.h
Friedemann Kleint 745de1b34d Qt Designer Custom Widget wizard: Update code templates
- Introduce nullptr, member initialization, override.

Change-Id: I1088e124bf554050f71f002e6af31a2432479f99
Reviewed-by: hjk <hjk@qt.io>
2023-03-01 09:16:16 +00:00

21 lines
345 B
C++

@if '%{Cpp:PragmaOnce}'
#pragma once
@else
#ifndef @WIDGET_INCLUDE_GUARD@
#define @WIDGET_INCLUDE_GUARD@
@endif
#include <@WIDGET_BASE_CLASS@>
class @WIDGET_CLASS@ : public @WIDGET_BASE_CLASS@
{
Q_OBJECT
public:
explicit @WIDGET_CLASS@(QWidget *parent = nullptr);
};
@if ! '%{Cpp:PragmaOnce}'
#endif // @WIDGET_INCLUDE_GUARD@
@endif