#include "kis_floating_message.h"
#include <QApplication>
#include <QScreen>
#include <QMouseEvent>
#include <QPainter>
#include <QRegExp>
#include <QLabel>
#include <QGraphicsDropShadowEffect>
#include <kis_icon.h>
#include <kis_debug.h>
#include "kis_global.h"
Go to the source code of this file.
◆ OSD_WINDOW_OPACITY
| #define OSD_WINDOW_OPACITY 0.85 |
◆ addDropShadow()
| static void addDropShadow |
( |
QWidget * | widget, |
|
|
QColor | color ) |
|
static |
Definition at line 31 of file kis_floating_message.cpp.
32{
33 QGraphicsDropShadowEffect *effect = new QGraphicsDropShadowEffect(widget);
34 effect->setBlurRadius(6);
35 effect->setOffset(0);
36 effect->setColor(color);
37 widget->setGraphicsEffect(effect);
38}
◆ flagsToAlignmentFlags()
| static Qt::AlignmentFlag flagsToAlignmentFlags |
( |
int | flags | ) |
|
|
static |
Definition at line 40 of file kis_floating_message.cpp.
41{
42 constexpr int mask = Qt::AlignLeft
43 | Qt::AlignRight
44 | Qt::AlignHCenter
45 | Qt::AlignJustify
46 | Qt::AlignTop
47 | Qt::AlignBottom
48 | Qt::AlignVCenter
49 | Qt::AlignCenter;
50 return Qt::AlignmentFlag(flags & mask);
51}
◆ MARGIN