#ifndef YACREADER_TITLED_TOOLBAR_H #define YACREADER_TITLED_TOOLBAR_H #include #include #include #include #include class QIcon; class DropShadowLabel : public QLabel { Q_OBJECT public: DropShadowLabel(QWidget* parent = 0); void paintEvent(QPaintEvent *event); void setDropShadowColor(const QColor & color); private: QColor dropShadowColor; void drawTextEffect(QPainter* painter, QPoint offset); }; class YACReaderTitledToolBar : public QWidget { Q_OBJECT public: explicit YACReaderTitledToolBar(const QString & title, QWidget *parent = 0); signals: public slots: void addAction(QAction * action); }; #endif // YACREADER_TITLED_TOOLBAR_H