Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QColorDialogPrivate Class Reference
+ Inheritance diagram for QColorDialogPrivate:
+ Collaboration diagram for QColorDialogPrivate:

Public Types

enum  SetColorMode {
  ShowColor = 0x1 , SelectColor = 0x2 , SetColorAll = ShowColor | SelectColor , ShowColor = 0x1 ,
  SelectColor = 0x2 , SetColorAll = ShowColor | SelectColor
}
 
enum  SetColorMode {
  ShowColor = 0x1 , SelectColor = 0x2 , SetColorAll = ShowColor | SelectColor , ShowColor = 0x1 ,
  SelectColor = 0x2 , SetColorAll = ShowColor | SelectColor
}
 
- Public Types inherited from QWidgetPrivate
enum  DrawWidgetFlag {
  DrawAsRoot = 0x01 , DrawPaintOnScreen = 0x02 , DrawRecursive = 0x04 , DrawInvisible = 0x08 ,
  DontSubtractOpaqueChildren = 0x10 , DontDrawOpaqueChildren = 0x20 , DontDrawNativeChildren = 0x40 , DontSetCompositionMode = 0x80 ,
  UseEffectRegionBounds = 0x100
}
 
enum  Direction { DirectionNorth = 0x01 , DirectionEast = 0x10 , DirectionSouth = 0x02 , DirectionWest = 0x20 }
 
enum class  WindowHandleMode { Direct , Closest , TopLevel }
 
enum  CloseMode { CloseNoEvent , CloseWithEvent , CloseWithSpontaneousEvent }
 
enum class  FocusDirection { Previous , Next }
 
enum class  FocusChainRemovalRule { EnsureFocusOut = 0x01 , AssertConsistency = 0x02 }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Public Member Functions

 QColorDialogPrivate ()
 
QPlatformColorDialogHelperplatformColorDialogHelper () const
 
void init (const QColor &initial)
 
void initWidgets ()
 
QRgb currentColor () const
 
QColor currentQColor () const
 
void setCurrentColor (const QColor &color, SetColorMode setColorMode=SetColorAll)
 
void setCurrentRgbColor (QRgb rgb)
 
void setCurrentQColor (const QColor &color)
 
bool selectColor (const QColor &color)
 
QColor grabScreenColor (const QPoint &p)
 
int currentAlpha () const
 
void setCurrentAlpha (int a)
 
void showAlpha (bool b)
 
bool isAlphaVisible () const
 
void retranslateStrings ()
 
bool supportsColorPicking () const
 
void addCustom ()
 
void _q_setCustom (int index, QRgb color)
 
void newHsv (int h, int s, int v)
 
void newColorTypedIn (QRgb rgb)
 
void nextCustom (int, int)
 
void newCustom (int, int)
 
void newStandard (int, int)
 
void pickScreenColor ()
 
void updateColorPicking ()
 
void updateColorLabelText (const QPoint &)
 
void updateColorPicking (const QPoint &pos)
 
void releaseColorPicking ()
 
bool handleColorPickingMouseMove (QMouseEvent *e)
 
bool handleColorPickingMouseButtonRelease (QMouseEvent *e)
 
bool handleColorPickingKeyPress (QKeyEvent *e)
 
bool canBeNativeDialog () const override
 
void setVisible (bool visible) override
 
 QColorDialogPrivate ()
 
QPlatformColorDialogHelperplatformColorDialogHelper () const
 
void init (const QColor &initial)
 
void initWidgets ()
 
QRgb currentColor () const
 
QColor currentQColor () const
 
void setCurrentColor (const QColor &color, SetColorMode setColorMode=SetColorAll)
 
void setCurrentRgbColor (QRgb rgb)
 
void setCurrentQColor (const QColor &color)
 
bool selectColor (const QColor &color)
 
QColor grabScreenColor (const QPoint &p)
 
int currentAlpha () const
 
void setCurrentAlpha (int a)
 
void showAlpha (bool b)
 
bool isAlphaVisible () const
 
void retranslateStrings ()
 
bool supportsColorPicking () const
 
void addCustom ()
 
void _q_setCustom (int index, QRgb color)
 
void newHsv (int h, int s, int v)
 
void newColorTypedIn (QRgb rgb)
 
void nextCustom (int, int)
 
void newCustom (int, int)
 
void newStandard (int, int)
 
void pickScreenColor ()
 
void updateColorPicking ()
 
void updateColorLabelText (const QPoint &)
 
void updateColorPicking (const QPoint &pos)
 
void releaseColorPicking ()
 
bool handleColorPickingMouseMove (QMouseEvent *e)
 
bool handleColorPickingMouseButtonRelease (QMouseEvent *e)
 
bool handleColorPickingKeyPress (QKeyEvent *e)
 
bool canBeNativeDialog () const override
 
void setVisible (bool visible) override
 
- Public Member Functions inherited from QDialogPrivate
 QDialogPrivate ()
 
 ~QDialogPrivate ()
 
void setVisible (bool visible) override
 
QWindowtransientParentWindow () const
 
bool setNativeDialogVisible (bool visible)
 
QVariant styleHint (QPlatformDialogHelper::StyleHint hint) const
 
void resetModalitySetByOpen ()
 
QPlatformDialogHelperplatformHelper () const
 
void close (int resultCode)
 
- Public Member Functions inherited from QWidgetPrivate
 QWidgetPrivate (decltype(QObjectPrivateVersion)=QObjectPrivateVersion)
 
 ~QWidgetPrivate ()
 
QWExtraextraData () const
 
QTLWExtratopData () const
 
QTLWExtramaybeTopData () const
 
QPaintersharedPainter () const
 
void setSharedPainter (QPainter *painter)
 
QWidgetRepaintManagermaybeRepaintManager () const
 
QRhirhi () const
 
QWindowwindowHandle (WindowHandleMode mode=WindowHandleMode::Direct) const
 
QWindow_q_closestWindowHandle () const
 
QScreenassociatedScreen () const
 
template<typename T>
void repaint (T t)
 
template<typename T>
void update (T t)
 
void init (QWidget *desktopWidget, Qt::WindowFlags f)
 
void create ()
 
void createRecursively ()
 
void createWinId ()
 
bool setScreenForPoint (const QPoint &pos)
 
bool setScreen (QScreen *screen)
 
void createTLExtra ()
 
void createExtra ()
 
void deleteExtra ()
 
void createSysExtra ()
 
void deleteSysExtra ()
 
void createTLSysExtra ()
 
void deleteTLSysExtra ()
 
void updateSystemBackground ()
 
void propagatePaletteChange ()
 
void setPalette_helper (const QPalette &)
 
void resolvePalette ()
 
QPalette naturalWidgetPalette (QPalette::ResolveMask inheritedMask) const
 
void setMask_sys (const QRegion &)
 
void raise_sys ()
 
void lower_sys ()
 
void stackUnder_sys (QWidget *)
 
QWidgetdeepestFocusProxy () const
 
void setFocus_sys ()
 
void updateFocusChild ()
 
void updateFont (const QFont &)
 
void setFont_helper (const QFont &font)
 
QFont localFont () const
 
void resolveFont ()
 
QFont naturalWidgetFont (uint inheritedMask) const
 
void setLayoutDirection_helper (Qt::LayoutDirection)
 
void resolveLayoutDirection ()
 
void setLocale_helper (const QLocale &l, bool forceUpdate=false)
 
void resolveLocale ()
 
void setStyle_helper (QStyle *newStyle, bool propagate)
 
void inheritStyle ()
 
void setUpdatesEnabled_helper (bool)
 
bool updateBrushOrigin (QPainter *, const QBrush &brush) const
 
void paintBackground (QPainter *, const QRegion &, DrawWidgetFlags flags=DrawAsRoot) const
 
bool isAboutToShow () const
 The graphicsEffect function returns a pointer to the widget's graphics effect.
 
QRegion prepareToRender (const QRegion &region, QWidget::RenderFlags renderFlags)
 
void render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter=nullptr, QWidgetRepaintManager *repaintManager=nullptr)
 
void sendPaintEvent (const QRegion &toBePainted)
 
void paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter, QWidgetRepaintManager *repaintManager)
 
bool shouldPaintOnScreen () const
 
void paintOnScreen (const QRegion &rgn)
 
QRect clipRect () const
 
QRegion clipRegion () const
 
void setSystemClip (QPaintEngine *paintEngine, qreal devicePixelRatio, const QRegion &region)
 
void subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const
 
void subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=nullptr, bool alsoNonOpaque=false) const
 
void clipToEffectiveMask (QRegion &region) const
 
void updateIsOpaque ()
 
void setOpaque (bool opaque)
 
void updateIsTranslucent ()
 
const QRegiongetOpaqueChildren () const
 
void setDirtyOpaqueRegion ()
 
bool close ()
 
bool handleClose (CloseMode mode)
 
void setWindowIcon_helper ()
 
void setWindowIcon_sys ()
 
void setWindowOpacity_sys (qreal opacity)
 
void adjustQuitOnCloseAttribute ()
 
void scrollChildren (int dx, int dy)
 
void moveRect (const QRect &, int dx, int dy)
 
void scrollRect (const QRect &, int dx, int dy)
 
void invalidateBackingStore_resizeHelper (const QPoint &oldPos, const QSize &oldSize)
 Invalidates the backing store when the widget is resized.
 
template<class T>
void invalidateBackingStore (const T &)
 
QRegion overlappedRegion (const QRect &rect, bool breakAfterFirst=false) const
 
bool isOverlapped (const QRect &rect) const
 
void syncBackingStore ()
 
void syncBackingStore (const QRegion &region)
 
bool shouldDiscardSyncRequest () const
 
void updateWidgetTransform (QEvent *event)
 
void reparentFocusWidgets (QWidget *oldtlw)
 
void setWinId (WId)
 
void showChildren (bool spontaneous)
 
void hideChildren (bool spontaneous)
 
void setParent_sys (QWidget *parent, Qt::WindowFlags)
 
void reparentWidgetWindows (QWidget *parentWithWindow, Qt::WindowFlags windowFlags={})
 
void reparentWidgetWindowChildren (QWidget *parentWithWindow)
 
void scroll_sys (int dx, int dy)
 
void scroll_sys (int dx, int dy, const QRect &r)
 
void deactivateWidgetCleanup ()
 
void setGeometry_sys (int, int, int, int, bool)
 
void fixPosIncludesFrame ()
 
void sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false)
 
void activateChildLayoutsRecursively ()
 
void show_recursive ()
 
void show_helper ()
 
void show_sys ()
 
void hide_sys ()
 
void hide_helper ()
 
bool isExplicitlyHidden () const
 
void _q_showIfNotHidden ()
 
void setEnabled_helper (bool)
 
void updateFrameStrut ()
 
QRect frameStrut () const
 
void setWindowIconText_sys (const QString &cap)
 
void setWindowIconText_helper (const QString &cap)
 
void setWindowTitle_sys (const QString &cap)
 
void setWindowFilePath_sys (const QString &filePath)
 
void setCursor_sys (const QCursor &cursor)
 
void unsetCursor_sys ()
 
void setWindowTitle_helper (const QString &cap)
 
void setWindowFilePath_helper (const QString &filePath)
 
void setWindowModified_helper ()
 
virtual void setWindowFlags (Qt::WindowFlags windowFlags)
 
bool setMinimumSize_helper (int &minw, int &minh)
 
bool setMaximumSize_helper (int &maxw, int &maxh)
 
void setConstraints_sys ()
 
bool pointInsideRectAndMask (const QPointF &) const
 
QWidgetchildAt_helper (const QPointF &, bool) const
 
QWidgetchildAtRecursiveHelper (const QPointF &p, bool) const
 
void updateGeometry_helper (bool forceUpdate)
 
void getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const
 
void setLayoutItemMargins (int left, int top, int right, int bottom)
 
void setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=nullptr)
 
void updateContentsRect ()
 
QMargins safeAreaMargins () const
 
virtual void aboutToDestroy ()
 
QWidgeteffectiveFocusWidget ()
 
void setModal_sys ()
 
void setRedirected (QPaintDevice *replacement, const QPoint &offset)
 
QPaintDeviceredirected (QPoint *offset) const
 
void restoreRedirected ()
 
void enforceNativeChildren ()
 
bool nativeChildrenForced () const
 
QRect effectiveRectFor (const QRegion &region) const
 
QRect effectiveRectFor (const QRect &rect) const
 
QSize adjustedSize () const
 
void handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus)
 
void handleSoftwareInputPanel (bool clickCausedFocus=false)
 
void setWSGeometry ()
 
QPoint mapToWS (const QPoint &p) const
 
QPoint mapFromWS (const QPoint &p) const
 
QRect mapToWS (const QRect &r) const
 
QRect mapFromWS (const QRect &r) const
 
virtual QObjectfocusObject ()
 
virtual QPlatformBackingStoreRhiConfig rhiConfig () const
 
virtual TextureData texture () const
 
virtual QPlatformTextureList::Flags textureListFlags ()
 
virtual QImage grabFramebuffer ()
 
virtual void beginBackingStorePainting ()
 
virtual void endBackingStorePainting ()
 
virtual void beginCompose ()
 
virtual void endCompose ()
 
void setRenderToTexture ()
 
void setTextureChildSeen ()
 
virtual void initializeViewportFramebuffer ()
 
virtual void resizeViewportFramebuffer ()
 
virtual void resolveSamples ()
 
virtual bool isStereoEnabled ()
 
virtual bool toggleStereoTargetBuffer ()
 
std::string flagsForDumping () const override
 
QWidgetclosestParentWidgetWithWindowHandle () const
 
QWidgetnextPrevElementInFocusChain (FocusDirection direction) const
 
bool removeFromFocusChain (FocusChainRemovalRules rules=FocusChainRemovalRules(), FocusDirection direction=FocusDirection::Next)
 
bool insertIntoFocusChain (FocusDirection direction, QWidget *position)
 
bool insertIntoFocusChainBefore (QWidget *position)
 
bool insertIntoFocusChainAfter (QWidget *position)
 
void reparentFocusChildren (FocusDirection direction)
 
QWidgetdetermineLastFocusChild (QWidget *noFurtherThan)
 
void initFocusChain ()
 
bool isInFocusChain () const
 
bool isFocusChainConsistent () const
 
void setNetWmWindowTypes (bool skipIfMissing=false)
 
bool stealKeyboardGrab (bool grab)
 
bool stealMouseGrab (bool grab)
 
bool hasChildWithFocusPolicy (Qt::FocusPolicy policy, const QWidget *excludeChildrenOf=nullptr) const
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
void setObjectNameWithoutBindings (const QString &name)
 
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
const QMetaObjectdynamicMetaObject () const
 

Public Attributes

QWellArraycustom
 
QWellArraystandard
 
QDialogButtonBoxbuttons
 
QVBoxLayoutleftLay
 
QColorPickercp
 
QColorLuminancePickerlp
 
QColorShowercs
 
QLabellblBasicColors
 
QLabellblCustomColors
 
QLabellblScreenColorInfo
 
QPushButtonok
 
QPushButtoncancel
 
QPushButtonaddCusBt
 
QPushButtoneyeDropperButton = nullptr
 
QColor selectedQColor
 
int nextCust
 
bool smallDisplay
 
bool screenColorPicking
 
QColorPickingEventFiltercolorPickingEventFilter
 
QRgb beforeScreenColorPicking
 
QSharedPointer< QColorDialogOptions > options
 
QPointer< QObjectreceiverToDisconnectOnClose
 
QByteArray memberToDisconnectOnClose
 
- Public Attributes inherited from QDialogPrivate
Qt::Orientation orientation
 
QWidgetextension
 
bool doShowExtension
 
QSize size
 
QSize min
 
QSize max
 
QPoint lastRMBPress
 
int rescode
 
int resetModalityTo
 
bool wasModalitySet
 
QPointer< QEventLoopeventLoop
 
bool nativeDialogInUse
 
- Public Attributes inherited from QWidgetPrivate
std::unique_ptr< QWExtraextra
 
QWidgetfocus_next
 
QWidgetfocus_prev
 
QWidgetfocus_child
 
QLayoutlayout
 
QRegionneedsFlush
 
QPaintDeviceredirectDev
 
QWidgetItemV2widgetItem
 
QPaintEngineextraPaintEngine
 
const QMetaObjectpolished
 
QGraphicsEffectgraphicsEffect
 
Qt::InputMethodHints imHints
 
QRegion opaqueChildren
 
QRegion dirty
 
uint directFontResolveMask
 
uint inheritedFontResolveMask
 
decltype(std::declval< QPalette >().resolveMask()) directPaletteResolveMask
 
QPalette::ResolveMask inheritedPaletteResolveMask
 
short leftmargin
 
short topmargin
 
short rightmargin
 
short bottommargin
 
signed char leftLayoutItemMargin
 
signed char topLayoutItemMargin
 
signed char rightLayoutItemMargin
 
signed char bottomLayoutItemMargin
 
Qt::HANDLE hd
 
QWidgetData data
 
QSizePolicy size_policy
 
QLocale locale
 
QPoint redirectOffset
 
QList< QAction * > actions
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
uint high_attributes [4]
 
QPalette::ColorRole fg_role: 8
 
QPalette::ColorRole bg_role: 8
 
uint dirtyOpaqueChildren: 1
 
uint isOpaque: 1
 
uint retainSizeWhenHiddenChanged: 1
 
uint inDirtyList: 1
 
uint isScrolled: 1
 
uint isMoved: 1
 
uint usesDoubleBufferedGLContext: 1
 
uint mustHaveWindowHandle: 1
 
uint renderToTexture: 1
 
uint textureChildSeen: 1
 
uint inheritsInputMethodHints: 1
 
uint renderToTextureReallyDirty: 1
 
uint usesRhiFlush: 1
 
uint childrenHiddenByWState: 1
 
uint childrenShownByExpose: 1
 
uint dontSetExplicitShowHide: 1
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Private Member Functions

virtual void initHelper (QPlatformDialogHelper *h) override
 
virtual void helperPrepareShow (QPlatformDialogHelper *h) override
 
virtual void initHelper (QPlatformDialogHelper *h) override
 
virtual void helperPrepareShow (QPlatformDialogHelper *h) override
 

Additional Inherited Members

- Static Public Member Functions inherited from QWidgetPrivate
static QWidgetPrivateget (QWidget *w)
 
static const QWidgetPrivateget (const QWidget *w)
 
static void checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight)
 
static void adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr)
 
static QWidgetparentGraphicsView (const QWidget *widget)
 
static QRect screenGeometry (const QWidget *widget)
 
static QRect availableScreenGeometry (const QWidget *widget)
 
static QScreenscreen (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static QRect screenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static QRect availableScreenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static void sendComposeStatus (QWidget *w, bool end)
 
static void setWidgetParentHelper (QObject *widgetAsObject, QObject *newParent)
 
static bool insertIntoFocusChain (const QWidgetList &toBeInserted, FocusDirection direction, QWidget *position)
 
static QWidgetList takeFromFocusChain (QWidget *from, QWidget *to, FocusDirection direction=FocusDirection::Next)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1, typename Func2>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 
- Static Public Attributes inherited from QWidgetPrivate
static QWidgetMappermapper = nullptr
 
static QWidgetSetallWidgets = nullptr
 
static int instanceCounter = 0
 
static int maxInstances = 0
 
- Protected Member Functions inherited from QDialogPrivate
virtual int dialogCode () const
 

Detailed Description

Definition at line 70 of file qcolordialog.cpp.

Member Enumeration Documentation

◆ SetColorMode [1/2]

Enumerator
ShowColor 
SelectColor 
SetColorAll 
ShowColor 
SelectColor 
SetColorAll 

Definition at line 75 of file qcolordialog.cpp.

◆ SetColorMode [2/2]

Enumerator
ShowColor 
SelectColor 
SetColorAll 
ShowColor 
SelectColor 
SetColorAll 

Definition at line 75 of file qcolordialog.cpp.

Constructor & Destructor Documentation

◆ QColorDialogPrivate() [1/2]

QColorDialogPrivate::QColorDialogPrivate ( )
inline

Definition at line 81 of file qcolordialog.cpp.

References QColorDialogPrivate().

Referenced by QColorDialogPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ QColorDialogPrivate() [2/2]

QColorDialogPrivate::QColorDialogPrivate ( )
inline

Definition at line 81 of file qcolordialog.cpp.

Member Function Documentation

◆ _q_setCustom() [1/2]

void QColorDialogPrivate::_q_setCustom ( int index,
QRgb color )

◆ _q_setCustom() [2/2]

void QColorDialogPrivate::_q_setCustom ( int index,
QRgb color )

◆ addCustom() [1/2]

void QColorDialogPrivate::addCustom ( )

Definition at line 1882 of file qcolordialog.cpp.

References custom.

◆ addCustom() [2/2]

void QColorDialogPrivate::addCustom ( )

◆ canBeNativeDialog() [1/2]

bool QColorDialogPrivate::canBeNativeDialog ( ) const
overridevirtual

Reimplemented from QDialogPrivate.

Definition at line 1915 of file qcolordialog.cpp.

◆ canBeNativeDialog() [2/2]

bool QColorDialogPrivate::canBeNativeDialog ( ) const
overridevirtual

Reimplemented from QDialogPrivate.

◆ currentAlpha() [1/2]

int QColorDialogPrivate::currentAlpha ( ) const
inline

Definition at line 1335 of file qcolordialog.cpp.

References cs, and QtPrivate::QColorShower::currentAlpha().

+ Here is the call graph for this function:

◆ currentAlpha() [2/2]

int QColorDialogPrivate::currentAlpha ( ) const

◆ currentColor() [1/2]

QRgb QColorDialogPrivate::currentColor ( ) const
inline

Definition at line 1334 of file qcolordialog.cpp.

References cs.

◆ currentColor() [2/2]

QRgb QColorDialogPrivate::currentColor ( ) const

◆ currentQColor() [1/2]

QColor QColorDialogPrivate::currentQColor ( ) const

Definition at line 1340 of file qcolordialog.cpp.

References cs.

◆ currentQColor() [2/2]

QColor QColorDialogPrivate::currentQColor ( ) const

◆ grabScreenColor() [1/2]

QColor QColorDialogPrivate::grabScreenColor ( const QPoint & p)

Definition at line 1565 of file qcolordialog.cpp.

◆ grabScreenColor() [2/2]

QColor QColorDialogPrivate::grabScreenColor ( const QPoint & p)

◆ handleColorPickingKeyPress() [1/2]

bool QColorDialogPrivate::handleColorPickingKeyPress ( QKeyEvent * e)

Definition at line 2278 of file qcolordialog.cpp.

References releaseColorPicking().

Referenced by QtPrivate::QColorPickingEventFilter::eventFilter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleColorPickingKeyPress() [2/2]

bool QColorDialogPrivate::handleColorPickingKeyPress ( QKeyEvent * e)

◆ handleColorPickingMouseButtonRelease() [1/2]

bool QColorDialogPrivate::handleColorPickingMouseButtonRelease ( QMouseEvent * e)

Definition at line 2271 of file qcolordialog.cpp.

References releaseColorPicking().

Referenced by QtPrivate::QColorPickingEventFilter::eventFilter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleColorPickingMouseButtonRelease() [2/2]

bool QColorDialogPrivate::handleColorPickingMouseButtonRelease ( QMouseEvent * e)

◆ handleColorPickingMouseMove() [1/2]

bool QColorDialogPrivate::handleColorPickingMouseMove ( QMouseEvent * e)

Definition at line 2262 of file qcolordialog.cpp.

References cp, and QtPrivate::QColorPicker::setCrossVisible().

Referenced by QtPrivate::QColorPickingEventFilter::eventFilter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleColorPickingMouseMove() [2/2]

bool QColorDialogPrivate::handleColorPickingMouseMove ( QMouseEvent * e)

◆ helperPrepareShow() [1/2]

void QColorDialogPrivate::helperPrepareShow ( QPlatformDialogHelper * h)
overrideprivatevirtual

Reimplemented from QDialogPrivate.

Definition at line 1877 of file qcolordialog.cpp.

◆ helperPrepareShow() [2/2]

virtual void QColorDialogPrivate::helperPrepareShow ( QPlatformDialogHelper * h)
overrideprivatevirtual

Reimplemented from QDialogPrivate.

◆ init() [1/2]

void QColorDialogPrivate::init ( const QColor & initial)

Definition at line 1687 of file qcolordialog.cpp.

References colorPickingEventFilter, initWidgets(), and nextCust.

+ Here is the call graph for this function:

◆ init() [2/2]

void QColorDialogPrivate::init ( const QColor & initial)

◆ initHelper() [1/2]

void QColorDialogPrivate::initHelper ( QPlatformDialogHelper * h)
overrideprivatevirtual

Reimplemented from QDialogPrivate.

Definition at line 1866 of file qcolordialog.cpp.

◆ initHelper() [2/2]

virtual void QColorDialogPrivate::initHelper ( QPlatformDialogHelper * h)
overrideprivatevirtual

Reimplemented from QDialogPrivate.

◆ initWidgets() [1/2]

void QColorDialogPrivate::initWidgets ( )

Definition at line 1710 of file qcolordialog.cpp.

References cp, cs, custom, eyeDropperButton, lp, ok, pHeight, pWidth, retranslateStrings(), smallDisplay, standard, and supportsColorPicking().

Referenced by init(), and setVisible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initWidgets() [2/2]

void QColorDialogPrivate::initWidgets ( )

◆ isAlphaVisible() [1/2]

bool QColorDialogPrivate::isAlphaVisible ( ) const
inline

Definition at line 1338 of file qcolordialog.cpp.

References cs, and QtPrivate::QColorShower::isAlphaVisible().

+ Here is the call graph for this function:

◆ isAlphaVisible() [2/2]

bool QColorDialogPrivate::isAlphaVisible ( ) const

◆ newColorTypedIn() [1/2]

void QColorDialogPrivate::newColorTypedIn ( QRgb rgb)

Definition at line 1578 of file qcolordialog.cpp.

References cp, lp, and QtPrivate::QColorLuminancePicker::setCol().

+ Here is the call graph for this function:

◆ newColorTypedIn() [2/2]

void QColorDialogPrivate::newColorTypedIn ( QRgb rgb)

◆ newCustom() [1/2]

void QColorDialogPrivate::newCustom ( int r,
int c )

Definition at line 1593 of file qcolordialog.cpp.

References customColorRows, QtPrivate::QWellArray::setSelected(), and standard.

Referenced by selectColor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ newCustom() [2/2]

void QColorDialogPrivate::newCustom ( int ,
int  )

◆ newHsv() [1/2]

void QColorDialogPrivate::newHsv ( int h,
int s,
int v )

Definition at line 1492 of file qcolordialog.cpp.

References cp, cs, lp, QtPrivate::QColorLuminancePicker::setCol(), and QtPrivate::QColorShower::setHsv().

+ Here is the call graph for this function:

◆ newHsv() [2/2]

void QColorDialogPrivate::newHsv ( int h,
int s,
int v )

◆ newStandard() [1/2]

void QColorDialogPrivate::newStandard ( int r,
int c )

Definition at line 1601 of file qcolordialog.cpp.

References custom, and QtPrivate::QWellArray::setSelected().

Referenced by selectColor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ newStandard() [2/2]

void QColorDialogPrivate::newStandard ( int ,
int  )

◆ nextCustom() [1/2]

void QColorDialogPrivate::nextCustom ( int r,
int c )

Definition at line 1588 of file qcolordialog.cpp.

References customColorRows, and nextCust.

◆ nextCustom() [2/2]

void QColorDialogPrivate::nextCustom ( int ,
int  )

◆ pickScreenColor() [1/2]

void QColorDialogPrivate::pickScreenColor ( )

Definition at line 1608 of file qcolordialog.cpp.

References addCusBt, eyeDropperButton, and updateColorLabelText().

+ Here is the call graph for this function:

◆ pickScreenColor() [2/2]

void QColorDialogPrivate::pickScreenColor ( )

◆ platformColorDialogHelper() [1/2]

QPlatformColorDialogHelper * QColorDialogPrivate::platformColorDialogHelper ( ) const
inline

Definition at line 87 of file qcolordialog.cpp.

◆ platformColorDialogHelper() [2/2]

QPlatformColorDialogHelper * QColorDialogPrivate::platformColorDialogHelper ( ) const
inline

Definition at line 87 of file qcolordialog.cpp.

◆ releaseColorPicking() [1/2]

void QColorDialogPrivate::releaseColorPicking ( )

Definition at line 1669 of file qcolordialog.cpp.

References addCusBt, cp, eyeDropperButton, and QtPrivate::QColorPicker::setCrossVisible().

Referenced by handleColorPickingKeyPress(), and handleColorPickingMouseButtonRelease().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ releaseColorPicking() [2/2]

void QColorDialogPrivate::releaseColorPicking ( )

◆ retranslateStrings() [1/2]

void QColorDialogPrivate::retranslateStrings ( )

Definition at line 1890 of file qcolordialog.cpp.

References cs, QtPrivate::QColorShower::retranslateStrings(), and smallDisplay.

Referenced by initWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ retranslateStrings() [2/2]

void QColorDialogPrivate::retranslateStrings ( )

◆ selectColor() [1/2]

bool QColorDialogPrivate::selectColor ( const QColor & color)

Definition at line 1527 of file qcolordialog.cpp.

References colorColumns, custom, customColorRows, newCustom(), newStandard(), QtPrivate::QWellArray::setCurrent(), QtPrivate::QWellArray::setSelected(), standard, and standardColorRows.

Referenced by setCurrentColor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ selectColor() [2/2]

bool QColorDialogPrivate::selectColor ( const QColor & color)

◆ setCurrentAlpha() [1/2]

void QColorDialogPrivate::setCurrentAlpha ( int a)
inline

Definition at line 1336 of file qcolordialog.cpp.

References cs, and QtPrivate::QColorShower::setCurrentAlpha().

Referenced by setCurrentColor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCurrentAlpha() [2/2]

void QColorDialogPrivate::setCurrentAlpha ( int a)

◆ setCurrentColor() [1/2]

void QColorDialogPrivate::setCurrentColor ( const QColor & color,
SetColorMode setColorMode = SetColorAll )

Definition at line 1993 of file qcolordialog.cpp.

References selectColor(), and setCurrentAlpha().

+ Here is the call graph for this function:

◆ setCurrentColor() [2/2]

void QColorDialogPrivate::setCurrentColor ( const QColor & color,
SetColorMode setColorMode = SetColorAll )

◆ setCurrentQColor() [1/2]

void QColorDialogPrivate::setCurrentQColor ( const QColor & color)

Definition at line 1511 of file qcolordialog.cpp.

References cs.

◆ setCurrentQColor() [2/2]

void QColorDialogPrivate::setCurrentQColor ( const QColor & color)

◆ setCurrentRgbColor() [1/2]

void QColorDialogPrivate::setCurrentRgbColor ( QRgb rgb)

Definition at line 1502 of file qcolordialog.cpp.

References cs.

◆ setCurrentRgbColor() [2/2]

void QColorDialogPrivate::setCurrentRgbColor ( QRgb rgb)

◆ setVisible() [1/2]

void QColorDialogPrivate::setVisible ( bool visible)
overridevirtual

The implementation of QColorDialog::setVisible() has to live here so that the call to hide() in ~QDialog calls this function; it wouldn't call the override of QDialog::setVisible().

Reimplemented from QWidgetPrivate.

Definition at line 2152 of file qcolordialog.cpp.

References initWidgets().

+ Here is the call graph for this function:

◆ setVisible() [2/2]

void QColorDialogPrivate::setVisible ( bool visible)
overridevirtual

Reimplemented from QWidgetPrivate.

◆ showAlpha() [1/2]

void QColorDialogPrivate::showAlpha ( bool b)
inline

Definition at line 1337 of file qcolordialog.cpp.

References cs, and QtPrivate::QColorShower::showAlpha().

+ Here is the call graph for this function:

◆ showAlpha() [2/2]

void QColorDialogPrivate::showAlpha ( bool b)

◆ supportsColorPicking() [1/2]

bool QColorDialogPrivate::supportsColorPicking ( ) const

Definition at line 1908 of file qcolordialog.cpp.

Referenced by initWidgets().

+ Here is the caller graph for this function:

◆ supportsColorPicking() [2/2]

bool QColorDialogPrivate::supportsColorPicking ( ) const

◆ updateColorLabelText() [1/2]

void QColorDialogPrivate::updateColorLabelText ( const QPoint & globalPos)

Definition at line 1661 of file qcolordialog.cpp.

Referenced by pickScreenColor(), and updateColorPicking().

+ Here is the caller graph for this function:

◆ updateColorLabelText() [2/2]

void QColorDialogPrivate::updateColorLabelText ( const QPoint & )

◆ updateColorPicking() [1/4]

void QColorDialogPrivate::updateColorPicking ( )

Definition at line 2234 of file qcolordialog.cpp.

◆ updateColorPicking() [2/4]

void QColorDialogPrivate::updateColorPicking ( )

◆ updateColorPicking() [3/4]

void QColorDialogPrivate::updateColorPicking ( const QPoint & pos)

Definition at line 2253 of file qcolordialog.cpp.

References updateColorLabelText().

+ Here is the call graph for this function:

◆ updateColorPicking() [4/4]

void QColorDialogPrivate::updateColorPicking ( const QPoint & pos)

Member Data Documentation

◆ addCusBt

QPushButton * QColorDialogPrivate::addCusBt

Definition at line 140 of file qcolordialog.cpp.

Referenced by pickScreenColor(), and releaseColorPicking().

◆ beforeScreenColorPicking

QRgb QColorDialogPrivate::beforeScreenColorPicking

Definition at line 147 of file qcolordialog.cpp.

◆ buttons

QDialogButtonBox * QColorDialogPrivate::buttons

Definition at line 130 of file qcolordialog.cpp.

◆ cancel

QPushButton * QColorDialogPrivate::cancel

Definition at line 139 of file qcolordialog.cpp.

◆ colorPickingEventFilter

QColorPickingEventFilter * QColorDialogPrivate::colorPickingEventFilter

Definition at line 146 of file qcolordialog.cpp.

Referenced by init().

◆ cp

QColorPicker * QColorDialogPrivate::cp

◆ cs

◆ custom

QWellArray * QColorDialogPrivate::custom

Definition at line 127 of file qcolordialog.cpp.

Referenced by addCustom(), initWidgets(), newStandard(), and selectColor().

◆ eyeDropperButton

QPushButton * QColorDialogPrivate::eyeDropperButton = nullptr

Definition at line 141 of file qcolordialog.cpp.

Referenced by initWidgets(), pickScreenColor(), and releaseColorPicking().

◆ lblBasicColors

QLabel * QColorDialogPrivate::lblBasicColors

Definition at line 135 of file qcolordialog.cpp.

◆ lblCustomColors

QLabel * QColorDialogPrivate::lblCustomColors

Definition at line 136 of file qcolordialog.cpp.

◆ lblScreenColorInfo

QLabel * QColorDialogPrivate::lblScreenColorInfo

Definition at line 137 of file qcolordialog.cpp.

◆ leftLay

QVBoxLayout * QColorDialogPrivate::leftLay

Definition at line 131 of file qcolordialog.cpp.

◆ lp

QColorLuminancePicker * QColorDialogPrivate::lp

Definition at line 133 of file qcolordialog.cpp.

Referenced by initWidgets(), newColorTypedIn(), and newHsv().

◆ memberToDisconnectOnClose

QByteArray QColorDialogPrivate::memberToDisconnectOnClose

Definition at line 151 of file qcolordialog.cpp.

◆ nextCust

int QColorDialogPrivate::nextCust

Definition at line 143 of file qcolordialog.cpp.

Referenced by init(), and nextCustom().

◆ ok

QPushButton * QColorDialogPrivate::ok

Definition at line 138 of file qcolordialog.cpp.

Referenced by initWidgets().

◆ options

◆ receiverToDisconnectOnClose

QPointer< QObject > QColorDialogPrivate::receiverToDisconnectOnClose

Definition at line 150 of file qcolordialog.cpp.

◆ screenColorPicking

bool QColorDialogPrivate::screenColorPicking

Definition at line 145 of file qcolordialog.cpp.

◆ selectedQColor

QColor QColorDialogPrivate::selectedQColor

Definition at line 142 of file qcolordialog.cpp.

◆ smallDisplay

bool QColorDialogPrivate::smallDisplay

Definition at line 144 of file qcolordialog.cpp.

Referenced by initWidgets(), and retranslateStrings().

◆ standard

QWellArray * QColorDialogPrivate::standard

Definition at line 128 of file qcolordialog.cpp.

Referenced by initWidgets(), newCustom(), and selectColor().


The documentation for this class was generated from the following file: