#include "qcolordialog.h"
#include "qdialog_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 "qcolordialog.moc"
#include "moc_qcolordialog.cpp"
Include dependency graph for qcolordialog.cpp:

Go to the source code of this file.
Classes | |
| class | QWellArray |
| struct | QWellArrayData |
| class | QColorWell |
| class | QColorPicker |
| class | QColorLuminancePicker |
| class | QColSpinBox |
| class | QColorShower |
| class | QColorShowLabel |
| class | QColorDialogPrivate |
Functions | |
| static void | initRGB () |
| static void | rgb2hsv (QRgb rgb, int &h, int &s, int &v) |
Variables | |
| static bool | initrgb = false |
| static QRgb | stdrgb [6 *8] |
| static QRgb | cusrgb [2 *8] |
| static bool | customSet = false |
| static int | pWidth = 220 |
| static int | pHeight = 200 |
| static void initRGB | ( | ) | [static] |
Definition at line 434 of file qcolordialog.cpp.
References b, cusrgb, g, i, initrgb, QColor::qRgb(), and stdrgb.
Referenced by QColorDialog::customColor(), QColorDialogPrivate::init(), QColorDialog::setCustomColor(), and QColorDialog::setStandardColor().
00435 { 00436 if (initrgb) 00437 return; 00438 initrgb = true; 00439 int i = 0; 00440 for (int g = 0; g < 4; g++) 00441 for (int r = 0; r < 4; r++) 00442 for (int b = 0; b < 3; b++) 00443 stdrgb[i++] = qRgb(r*255/3, g*255/3, b*255/2); 00444 00445 for (i = 0; i < 2*8; i++) 00446 cusrgb[i] = 0xffffffff; 00447 }
Here is the call graph for this function:

| static void rgb2hsv | ( | QRgb | rgb, | |
| int & | h, | |||
| int & | s, | |||
| int & | v | |||
| ) | [inline, static] |
Definition at line 494 of file qcolordialog.cpp.
References c.
Referenced by QColorDialogPrivate::_q_newColorTypedIn(), QColorShower::rgbEd(), and QColorShower::setRgb().
QRgb cusrgb[2 *8] [static] |
Definition at line 430 of file qcolordialog.cpp.
Referenced by QColorDialogPrivate::_q_addCustom(), QColorDialogPrivate::_q_newCustom(), QColorDialog::customColor(), QColorDialogPrivate::init(), initRGB(), QColorDialog::QColorDialog(), QColorDialog::selectColor(), QColorDialog::setCustomColor(), and QColorDialog::~QColorDialog().
bool customSet = false [static] |
Definition at line 431 of file qcolordialog.cpp.
Referenced by QColorDialog::QColorDialog(), QColorDialog::setCustomColor(), and QColorDialog::~QColorDialog().
bool initrgb = false [static] |
int pHeight = 200 [static] |
Definition at line 648 of file qcolordialog.cpp.
Referenced by QColorPicker::colPt(), QColorDialogPrivate::init(), QColorPicker::QColorPicker(), QColorPicker::satPt(), and QColorPicker::sizeHint().
int pWidth = 220 [static] |
Definition at line 647 of file qcolordialog.cpp.
Referenced by QColorPicker::colPt(), QColorPicker::huePt(), QColorDialogPrivate::init(), QColorPicker::QColorPicker(), and QColorPicker::sizeHint().
QRgb stdrgb[6 *8] [static] |
Definition at line 429 of file qcolordialog.cpp.
Referenced by QColorDialogPrivate::_q_newStandard(), QColorDialogPrivate::init(), initRGB(), QColorDialog::selectColor(), and QColorDialog::setStandardColor().
1.5.1