diff options
Diffstat (limited to 'plugingui/label.h')
-rw-r--r-- | plugingui/label.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/plugingui/label.h b/plugingui/label.h index 50f02d6..707cdb1 100644 --- a/plugingui/label.h +++ b/plugingui/label.h @@ -24,30 +24,28 @@ * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifndef __DRUMGIZMO_LABEL_H__ -#define __DRUMGIZMO_LABEL_H__ +#pragma once #include "widget.h" #include <string> -#include "guievent.h" - namespace GUI { +class RepaintEvent; + class Label : public Widget { public: Label(Widget *parent); void setText(std::string text); - //protected: - virtual void repaintEvent(RepaintEvent *e); +protected: + // From Widget: + virtual void repaintEvent(RepaintEvent *e) override; private: std::string _text; }; -}; - -#endif/*__DRUMGIZMO_LABEL_H__*/ +} // GUI:: |