CrossingWidget.h 829 B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * Copyright (c) 2012 committers of YAKINDU and others.
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * http://www.eclipse.org/legal/epl-v10.html
  7. * Contributors:
  8. * m.muehlbrandt - initial API and implementation
  9. *
  10. */
  11. #ifndef CROSSINGWIDGET_H_
  12. #define CROSSINGWIDGET_H_
  13. #include <QWidget>
  14. #include <QPushButton>
  15. #include <QPaintEvent>
  16. #include <QPainter>
  17. class CrossingWidget: public QWidget {
  18. public:
  19. CrossingWidget(QWidget *parent = 0);
  20. virtual ~CrossingWidget();
  21. protected:
  22. void paintEvent(QPaintEvent *event);
  23. private:
  24. static const int WIDTH = 399;
  25. static const int HEIGHT = 399;
  26. };
  27. #endif /* CROSSINGWIDGET_H_ */