/* * Copyright (c) 2012 Tobias Markmann * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #pragma once #include namespace Swift { class QtCloseButton : public QAbstractButton { Q_OBJECT public: explicit QtCloseButton(QWidget *parent = 0); virtual QSize sizeHint() const; protected: virtual bool event(QEvent *e); virtual void paintEvent(QPaintEvent* ); private: QPixmap lightPixmap; QPixmap darkPixmap; }; }