mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
line 117: #define _WIN64 1 must be removed in ./compressed_archive/libp7zip/CPP/myWindows/StdAfx.h "cannot find -lpulse" compiling under Qt 5.0.2 can be fixed creating a symbolic link from libpulse.so.0 to libpulse.so (further research is needed)
46 lines
934 B
C++
46 lines
934 B
C++
#ifndef YACREADER_TITLED_TOOLBAR_H
|
|
#define YACREADER_TITLED_TOOLBAR_H
|
|
|
|
#include <QWidget>
|
|
#include <QLabel>
|
|
#include <QPaintEvent>
|
|
#include <QPainter>
|
|
#include <QPoint>
|
|
|
|
class QIcon;
|
|
|
|
class DropShadowLabel : public QLabel
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
DropShadowLabel(QWidget* parent = 0);
|
|
void paintEvent(QPaintEvent *event);
|
|
void setColor(const QColor & color);
|
|
void setDropShadowColor(const QColor & color);
|
|
private:
|
|
|
|
QColor dropShadowColor;
|
|
QColor textColor;
|
|
void drawText(QPainter *painter, QPoint offset);
|
|
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);
|
|
void addSpacing(int space);
|
|
private:
|
|
DropShadowLabel * nameLabel;
|
|
};
|
|
|
|
#endif // YACREADER_TITLED_TOOLBAR_H
|