10 setObjectName(className());
15 QVBoxLayout *layout =
new QVBoxLayout(
this);
40 QFont font =
m_note->font();
41 font.setPixelSize(20.0 * scale);
48 font.setPixelSize(18.0 * scale);
71 QRgb r = 0, g = 0, b = 0;
72 for(
int w = 0; w <
m_image.width(); ++w)
74 for(
int h = 0; h <
m_image.height(); ++h)
76 const QRgb rgb =
m_image.pixel(w, h);
89 const QString &style = QString(
"color:rgb(%1, %2, %3)").arg(qRed(rgb)).arg(qGreen(rgb)).arg(qBlue(rgb));
91 m_note->setStyleSheet(style);
102 QWidget::resizeEvent(event);
The class of the ciba request.
static const QString BackgroundStyle10
TTK_MODULE_EXPORT unsigned int colorContrast(const unsigned int color)
#define TTK_ERROR_STREAM(msg)