#include <QPainter>
#include <QBitmap>
#include <QDoubleSpinBox>
+#include <QGraphicsDropShadowEffect>
+#include <QColor>
#include <sstream>
#endif
}
+void setShadowEffect(QWidget* theWidget, const bool isSetEffect)
+{
+ if (isSetEffect) {
+ QGraphicsDropShadowEffect* aGlowEffect = new QGraphicsDropShadowEffect();
+ aGlowEffect->setOffset(.0);
+ aGlowEffect->setBlurRadius(10.0);
+ aGlowEffect->setColor(QColor(0, 170, 255)); // Light-blue color, #00AAFF
+ theWidget->setGraphicsEffect(aGlowEffect);
+ }
+ else {
+ QGraphicsEffect* anEffect = theWidget->graphicsEffect();
+ if(anEffect)
+ anEffect->deleteLater();
+ theWidget->setGraphicsEffect(NULL);
+ }
+}
+
QPixmap composite(const QString& theAdditionalIcon, const QString& theIcon)
{
QImage anIcon(theIcon);