17 #ifndef QVICONWIDGET_H
18 #define QVICONWIDGET_H
24 #include "qvsvgwidget.h"
31 explicit QVIconWidget(QString file, QWidget *parent = 0);
33 QSize defaultSize()
const;
34 float aspectRatio()
const;
36 void resizeEvent(QResizeEvent*);
37 void mousePressEvent(QMouseEvent*);
40 void clicked(
double xrel,
double yrel);
41 void dragged(
double xrel,
double yrel);
42 void released(
double xrel,
double yrel);
45 void load(
const QByteArray&);
46 void setPathStyle(QString property, QString value, QString
id =
"",
bool force_insert =
false);
47 void preserveAspectRatio(
bool);
50 void onSvgClicked(
double,
double);
51 void onSvgDragged(
double,
double);
52 void onSvgReleased(
double,
double);
59 bool preserve_aspect_ratio;
62 #endif // QVICONWIDGET_H