#include "qcolordialog_p.h"
#include "qapplication.h"
#include "qdesktopwidget.h"
#include "qdrawutil.h"
#include "qevent.h"
#include "qimage.h"
#include "qlabel.h"
#include "qlayout.h"
#include "qlineedit.h"
#include "qmenu.h"
#include "qpainter.h"
#include "qpixmap.h"
#include "qpushbutton.h"
#include "qsettings.h"
#include "qstyle.h"
#include "qstyleoption.h"
#include "qvalidator.h"
#include "qmime.h"
#include "qspinbox.h"
#include "qdialogbuttonbox.h"
#include "private/qguiplatformplugin_p.h"
#include "qcolordialog.moc"
#include "moc_qcolordialog.cpp"
Go to the source code of this file.
◆ initRGB()
Definition at line 438 of file qcolordialog.cpp.
Referenced by QColorDialog::customColor(), QColorDialogPrivate::init(), QColorDialog::setCustomColor(), and QColorDialog::setStandardColor().
444 for (
int g = 0; g < 4; g++)
445 for (
int r = 0; r < 4; r++)
446 for (
int b = 0; b < 3; b++)
447 stdrgb[i++] =
qRgb(r * 255 / 3, g * 255 / 3, b * 255 / 2);
449 for (i = 0; i < 2*8; i++)
QRgb qRgb(int r, int g, int b)
Returns the ARGB quadruplet (255, {r}, {g}, {b}).
◆ rgb2hsv()
static void rgb2hsv |
( |
QRgb |
rgb, |
|
|
int & |
h, |
|
|
int & |
s, |
|
|
int & |
v |
|
) |
| |
|
inlinestatic |
Definition at line 510 of file qcolordialog.cpp.
Referenced by QColorDialogPrivate::_q_newColorTypedIn(), QColorShower::rgbEd(), and QColorShower::setRgb().
The QColor class provides colors based on RGB, HSV or CMYK values.
void setRgb(int r, int g, int b, int a=255)
Sets the RGB value to r, g, b and the alpha value to a.
void getHsv(int *h, int *s, int *v, int *a=0) const
Sets the contents pointed to by h, s, v, and a, to the hue, saturation, value, and alpha-channel (tra...
◆ cusrgb
◆ customSet
◆ DefaultWindowFlags
const Qt::WindowFlags DefaultWindowFlags |
|
static |
◆ initrgb
◆ pHeight
◆ pWidth
◆ stdrgb