Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcolordialog.cpp File Reference

(4565f97a5ce663afbac5b6b0d929941f7bccf9bf)

#include "qcolordialog.h"
#include "qapplication.h"
#include "qdrawutil.h"
#include "qevent.h"
#include "qimage.h"
#include "qlabel.h"
#include "qlayout.h"
#include "qlineedit.h"
#include "qpainter.h"
#include "qpixmap.h"
#include "qpushbutton.h"
#include "qsharedpointer.h"
#include "qstyle.h"
#include "qstyleoption.h"
#include "qvalidator.h"
#include "qmimedata.h"
#include "qspinbox.h"
#include "qdialogbuttonbox.h"
#include "qscreen.h"
#include "qcursor.h"
#include "qtimer.h"
#include "qwindow.h"
#include "private/qdialog_p.h"
#include <qpa/qplatformintegration.h>
#include <qpa/qplatformservices.h>
#include <private/qguiapplication_p.h>
#include <QtCore/qpointer.h>
#include <algorithm>
#include "qcolordialog.moc"
#include "moc_qcolordialog.cpp"
+ Include dependency graph for qcolordialog.cpp:

Go to the source code of this file.

Classes

class  QColorDialogPrivate
 
class  QtPrivate::QWellArray
 
class  QtPrivate::QColorPickingEventFilter
 
class  QtPrivate::QColorWell
 
class  QtPrivate::QColorPicker
 
class  QtPrivate::QColorLuminancePicker
 
class  QtPrivate::QColSpinBox
 
class  QtPrivate::QColorShower
 
class  QtPrivate::QColorShowLabel
 

Namespaces

namespace  QtPrivate
 \macro QT_NO_KEYWORDS >
 

Typedefs

using QColorLuminancePicker = QtPrivate::QColorLuminancePicker
 
using QColorPicker = QtPrivate::QColorPicker
 
using QColorShower = QtPrivate::QColorShower
 
using QWellArray = QtPrivate::QWellArray
 
using QColorWell = QtPrivate::QColorWell
 
using QColorPickingEventFilter = QtPrivate::QColorPickingEventFilter
 

Enumerations

enum  { colorColumns = 8 , standardColorRows = 6 , customColorRows = 2 }
 

Functions

static void rgb2hsv (QRgb rgb, int &h, int &s, int &v)
 

Variables

static int pWidth = 220
 
static int pHeight = 200
 
static const Qt::WindowFlags qcd_DefaultWindowFlags
 

Typedef Documentation

◆ QColorLuminancePicker

◆ QColorPicker

Definition at line 64 of file qcolordialog.cpp.

◆ QColorPickingEventFilter

◆ QColorShower

Definition at line 65 of file qcolordialog.cpp.

◆ QColorWell

Definition at line 67 of file qcolordialog.cpp.

◆ QWellArray

Definition at line 66 of file qcolordialog.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
colorColumns 
standardColorRows 
customColorRows 

Definition at line 1523 of file qcolordialog.cpp.

Function Documentation

◆ rgb2hsv()

static void rgb2hsv ( QRgb rgb,
int & h,
int & s,
int & v )
inlinestatic

Definition at line 562 of file qcolordialog.cpp.

References rgb.

Referenced by QColorDialogPrivate::newColorTypedIn(), and QtPrivate::QColorShower::setRgb().

+ Here is the caller graph for this function:

Variable Documentation

◆ pHeight

int pHeight = 200
static

◆ pWidth

int pWidth = 220
static

◆ qcd_DefaultWindowFlags

const Qt::WindowFlags qcd_DefaultWindowFlags
static
Initial value:

Definition at line 1933 of file qcolordialog.cpp.