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>.
|
Private Member Functions | |
virtual void | initHelper (QPlatformDialogHelper *h) override |
virtual void | helperPrepareShow (QPlatformDialogHelper *h) override |
Additional Inherited Members | |
Static Public Member Functions inherited from QWidgetPrivate | |
static QWidgetPrivate * | get (QWidget *w) |
static const QWidgetPrivate * | get (const QWidget *w) |
static void | checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight) |
static void | adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr) |
static QWidget * | parentGraphicsView (const QWidget *widget) |
static QRect | screenGeometry (const QWidget *widget) |
static QRect | availableScreenGeometry (const QWidget *widget) |
static QScreen * | screen (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 QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (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 QWidgetMapper * | mapper = nullptr |
static QWidgetSet * | allWidgets = nullptr |
static int | instanceCounter = 0 |
static int | maxInstances = 0 |
Protected Member Functions inherited from QDialogPrivate | |
virtual int | dialogCode () const |
Definition at line 70 of file qcolordialog.cpp.
Enumerator | |
---|---|
ShowColor | |
SelectColor | |
SetColorAll |
Definition at line 75 of file qcolordialog.cpp.
|
inline |
Definition at line 81 of file qcolordialog.cpp.
void QColorDialogPrivate::addCustom | ( | ) |
Definition at line 1884 of file qcolordialog.cpp.
Referenced by initWidgets().
|
overridevirtual |
Reimplemented from QDialogPrivate.
Definition at line 1917 of file qcolordialog.cpp.
References Qt::AA_DontUseNativeDialogs, className, QColorDialog::DontUseNativeDialog, QCoreApplication::testAttribute(), and Qt::WA_DontShowOnScreen.
|
inline |
Definition at line 1337 of file qcolordialog.cpp.
References cs, and QtPrivate::QColorShower::currentAlpha().
|
inline |
Definition at line 1336 of file qcolordialog.cpp.
References cs, and QtPrivate::QColorShower::currentColor().
QColor QColorDialogPrivate::currentQColor | ( | ) | const |
Definition at line 1342 of file qcolordialog.cpp.
References cs, QPlatformColorDialogHelper::currentColor(), QtPrivate::QColorShower::currentQColor(), QDialogPrivate::nativeDialogInUse, and platformColorDialogHelper().
Definition at line 1567 of file qcolordialog.cpp.
References QScreen::geometry, QScreen::grabWindow(), i, QImage::pixel(), pixmap, QGuiApplication::primaryScreen, screen, QGuiApplication::screenAt(), QRect::x(), and QRect::y().
Referenced by handleColorPickingKeyPress(), handleColorPickingMouseButtonRelease(), and updateColorPicking().
bool QColorDialogPrivate::handleColorPickingKeyPress | ( | QKeyEvent * | e | ) |
Definition at line 2286 of file qcolordialog.cpp.
References QEvent::accept(), beforeScreenColorPicking, QKeySequence::Cancel, grabScreenColor(), QKeyEvent::key(), Qt::Key_Enter, Qt::Key_Return, QCursor::pos(), and releaseColorPicking().
Referenced by QtPrivate::QColorPickingEventFilter::eventFilter().
bool QColorDialogPrivate::handleColorPickingMouseButtonRelease | ( | QMouseEvent * | e | ) |
Definition at line 2279 of file qcolordialog.cpp.
References QSinglePointEvent::globalPosition(), grabScreenColor(), releaseColorPicking(), SetColorAll, setCurrentColor(), and QPointF::toPoint().
Referenced by QtPrivate::QColorPickingEventFilter::eventFilter().
bool QColorDialogPrivate::handleColorPickingMouseMove | ( | QMouseEvent * | e | ) |
Definition at line 2270 of file qcolordialog.cpp.
References QRect::contains(), cp, QWidget::geometry, QSinglePointEvent::globalPosition(), QSinglePointEvent::position(), QtPrivate::QColorPicker::setCrossVisible(), QPointF::toPoint(), and updateColorPicking().
Referenced by QtPrivate::QColorPickingEventFilter::eventFilter().
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 1879 of file qcolordialog.cpp.
References windowTitle().
Definition at line 1689 of file qcolordialog.cpp.
References Qt::FramelessWindowHint, and Qt::Tool.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 1868 of file qcolordialog.cpp.
References QPlatformColorDialogHelper::colorSelected(), QColorDialog::colorSelected(), QObject::connect(), QPlatformColorDialogHelper::currentColorChanged(), QColorDialog::currentColorChanged(), and d.
void QColorDialogPrivate::initWidgets | ( | ) |
Definition at line 1712 of file qcolordialog.cpp.
References QDialog::accept(), addCustom(), QBoxLayout::addLayout(), cancel(), QDialogButtonBox::Cancel, QAbstractButton::clicked(), QtPrivate::QWellArray::colorChanged(), colorColumns, QObject::connect(), QObjectPrivate::connect(), QtPrivate::QWellArray::currentChanged(), QtPrivate::QColorShower::currentColorChanged(), QColorDialog::currentColorChanged(), customColorRows, QRect::height(), QSize::height(), QtPrivate::QColorPicker::newCol(), QtPrivate::QColorShower::newCol(), newColorTypedIn(), newCustom(), newHsv(), QtPrivate::QColorLuminancePicker::newHsv(), newStandard(), nextCustom(), ok, QDialogButtonBox::Ok, QFrame::Panel, pHeight, pickScreenColor(), QCursor::pos(), QGuiApplication::primaryScreen, pWidth, qMin(), QPushButton, QRgb, QDialog::reject(), QGuiApplication::screenAt(), QtPrivate::QWellArray::selected(), QtPrivate::QColorLuminancePicker::setCol(), QLayout::SetFixedSize, standardColorRows, QFrame::Sunken, QTimer::timeout(), updateColorPicking(), QScreen::virtualGeometry, QRect::width(), and QSize::width().
Referenced by setVisible().
|
inline |
Definition at line 1340 of file qcolordialog.cpp.
References cs, and QtPrivate::QColorShower::isAlphaVisible().
Definition at line 1580 of file qcolordialog.cpp.
References rgb, and rgb2hsv().
Referenced by initWidgets().
void QColorDialogPrivate::newCustom | ( | int | r, |
int | c ) |
Definition at line 1595 of file qcolordialog.cpp.
References customColorRows, and i.
Referenced by initWidgets().
void QColorDialogPrivate::newHsv | ( | int | h, |
int | s, | ||
int | v ) |
Definition at line 1494 of file qcolordialog.cpp.
Referenced by initWidgets().
void QColorDialogPrivate::newStandard | ( | int | r, |
int | c ) |
Definition at line 1603 of file qcolordialog.cpp.
Referenced by initWidgets().
void QColorDialogPrivate::nextCustom | ( | int | r, |
int | c ) |
Definition at line 1590 of file qcolordialog.cpp.
References customColorRows.
Referenced by initWidgets().
void QColorDialogPrivate::pickScreenColor | ( | ) |
Definition at line 1610 of file qcolordialog.cpp.
References QPlatformServiceColorPicker::colorPicked(), QPlatformServices::ColorPicking, Qt::CrossCursor, grabScreenColor(), QGuiApplicationPrivate::platformIntegration(), and QCursor::pos().
Referenced by initWidgets().
|
inline |
Definition at line 87 of file qcolordialog.cpp.
References QDialogPrivate::platformHelper().
Referenced by currentQColor(), and setCurrentColor().
void QColorDialogPrivate::releaseColorPicking | ( | ) |
Definition at line 1671 of file qcolordialog.cpp.
Referenced by handleColorPickingKeyPress(), and handleColorPickingMouseButtonRelease().
void QColorDialogPrivate::retranslateStrings | ( | ) |
Definition at line 1892 of file qcolordialog.cpp.
bool QColorDialogPrivate::selectColor | ( | const QColor & | color | ) |
Definition at line 1529 of file qcolordialog.cpp.
References colorColumns, customColorRows, match(), QRgb, QColor::rgb(), and standardColorRows.
Referenced by setCurrentColor().
|
inline |
Definition at line 1338 of file qcolordialog.cpp.
References cs, and QtPrivate::QColorShower::setCurrentAlpha().
Referenced by setCurrentColor().
void QColorDialogPrivate::setCurrentColor | ( | const QColor & | color, |
SetColorMode | setColorMode = SetColorAll ) |
Definition at line 1999 of file qcolordialog.cpp.
References QDialogPrivate::nativeDialogInUse, platformColorDialogHelper(), SelectColor, selectColor(), setCurrentAlpha(), QPlatformColorDialogHelper::setCurrentColor(), setCurrentRgbColor(), and ShowColor.
Referenced by handleColorPickingMouseButtonRelease(), and updateColorPicking().
Definition at line 1513 of file qcolordialog.cpp.
References emit.
Definition at line 1504 of file qcolordialog.cpp.
References rgb.
Referenced by setCurrentColor().
|
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 QDialogPrivate.
Definition at line 2162 of file qcolordialog.cpp.
References initWidgets(), QDialogPrivate::nativeDialogInUse, selectedQColor, QDialogPrivate::setNativeDialogVisible(), QDialogPrivate::setVisible(), and Qt::WA_DontShowOnScreen.
|
inline |
Definition at line 1339 of file qcolordialog.cpp.
References cs, and QtPrivate::QColorShower::showAlpha().
bool QColorDialogPrivate::supportsColorPicking | ( | ) | const |
Definition at line 1910 of file qcolordialog.cpp.
References QPlatformServices::ColorPicking, QGuiApplicationPrivate::platformIntegration(), and QPlatformIntegration::ScreenWindowGrabbing.
Definition at line 1663 of file qcolordialog.cpp.
References arg, QPoint::x(), and QPoint::y().
Referenced by updateColorPicking().
void QColorDialogPrivate::updateColorPicking | ( | ) |
Definition at line 2242 of file qcolordialog.cpp.
References QCursor::pos(), and updateColorPicking().
Referenced by handleColorPickingMouseMove(), initWidgets(), and updateColorPicking().
Definition at line 2261 of file qcolordialog.cpp.
References grabScreenColor(), setCurrentColor(), ShowColor, and updateColorLabelText().
QPushButton* QColorDialogPrivate::addCusBt |
Definition at line 140 of file qcolordialog.cpp.
QRgb QColorDialogPrivate::beforeScreenColorPicking |
Definition at line 147 of file qcolordialog.cpp.
Referenced by handleColorPickingKeyPress().
QDialogButtonBox* QColorDialogPrivate::buttons |
Definition at line 130 of file qcolordialog.cpp.
QPushButton* QColorDialogPrivate::cancel |
Definition at line 139 of file qcolordialog.cpp.
QColorPickingEventFilter* QColorDialogPrivate::colorPickingEventFilter |
Definition at line 146 of file qcolordialog.cpp.
QColorPicker* QColorDialogPrivate::cp |
Definition at line 132 of file qcolordialog.cpp.
Referenced by handleColorPickingMouseMove().
QColorShower* QColorDialogPrivate::cs |
Definition at line 134 of file qcolordialog.cpp.
Referenced by currentAlpha(), currentColor(), currentQColor(), isAlphaVisible(), setCurrentAlpha(), and showAlpha().
QWellArray* QColorDialogPrivate::custom |
Definition at line 127 of file qcolordialog.cpp.
QPushButton* QColorDialogPrivate::eyeDropperButton = nullptr |
Definition at line 141 of file qcolordialog.cpp.
QLabel* QColorDialogPrivate::lblBasicColors |
Definition at line 135 of file qcolordialog.cpp.
QLabel* QColorDialogPrivate::lblCustomColors |
Definition at line 136 of file qcolordialog.cpp.
QLabel* QColorDialogPrivate::lblScreenColorInfo |
Definition at line 137 of file qcolordialog.cpp.
QVBoxLayout* QColorDialogPrivate::leftLay |
Definition at line 131 of file qcolordialog.cpp.
QColorLuminancePicker* QColorDialogPrivate::lp |
Definition at line 133 of file qcolordialog.cpp.
QByteArray QColorDialogPrivate::memberToDisconnectOnClose |
Definition at line 151 of file qcolordialog.cpp.
int QColorDialogPrivate::nextCust |
Definition at line 143 of file qcolordialog.cpp.
QPushButton* QColorDialogPrivate::ok |
Definition at line 138 of file qcolordialog.cpp.
QSharedPointer<QColorDialogOptions> QColorDialogPrivate::options |
Definition at line 148 of file qcolordialog.cpp.
Definition at line 150 of file qcolordialog.cpp.
bool QColorDialogPrivate::screenColorPicking |
Definition at line 145 of file qcolordialog.cpp.
QColor QColorDialogPrivate::selectedQColor |
Definition at line 142 of file qcolordialog.cpp.
Referenced by setVisible().
bool QColorDialogPrivate::smallDisplay |
Definition at line 144 of file qcolordialog.cpp.
QWellArray* QColorDialogPrivate::standard |
Definition at line 128 of file qcolordialog.cpp.