Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qcolordialog.cpp File Reference
#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 <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_NAMESPACE
 

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 62 of file qcolordialog.cpp.

◆ QColorPickingEventFilter

◆ QColorShower

Definition at line 63 of file qcolordialog.cpp.

◆ QColorWell

Definition at line 65 of file qcolordialog.cpp.

◆ QWellArray

Definition at line 64 of file qcolordialog.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
colorColumns 
standardColorRows 
customColorRows 

Definition at line 1513 of file qcolordialog.cpp.

Function Documentation

◆ rgb2hsv()

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

Definition at line 559 of file qcolordialog.cpp.

References rgb.

Referenced by QColorDialogPrivate::_q_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 1916 of file qcolordialog.cpp.