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>.
|
Additional Inherited Members | |
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> |
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 148 of file qinputdialog.cpp.
QInputDialogPrivate::QInputDialogPrivate | ( | ) |
Definition at line 190 of file qinputdialog.cpp.
void QInputDialogPrivate::chooseRightTextInputWidget | ( | ) |
Definition at line 361 of file qinputdialog.cpp.
References comboBox, QComboBox::currentText, ensureLineEdit(), ensureListView(), ensurePlainTextEdit(), inputWidget, QComboBox::isEditable(), lineEdit, listView, listViewText(), opts, plainTextEdit, setInputWidget(), textChanged(), useComboBoxOrListView(), QInputDialog::UseListViewForComboBoxItems, QInputDialog::UsePlainTextEditForTextInput, and widget.
void QInputDialogPrivate::currentRowChanged | ( | const QModelIndex & | newIndex, |
const QModelIndex & | oldIndex ) |
Definition at line 438 of file qinputdialog.cpp.
References QDialogButtonBox::button(), buttonBox, comboBox, QAbstractItemModel::data(), QComboBox::model(), QDialogButtonBox::Ok, QWidget::setEnabled(), and textChanged().
Referenced by ensureListView().
void QInputDialogPrivate::ensureComboBox | ( | ) |
Definition at line 257 of file qinputdialog.cpp.
References comboBox, QObjectPrivate::connect(), QComboBox::currentTextChanged(), QComboBox::editTextChanged(), QWidget::hide(), qt_widget_private(), and textChanged().
Referenced by ensureListView().
void QInputDialogPrivate::ensureDoubleSpinBox | ( | ) |
Definition at line 301 of file qinputdialog.cpp.
References QObject::connect(), doubleSpinBox, QInputDialog::doubleValueChanged(), QWidget::hide(), and QDoubleSpinBox::valueChanged().
void QInputDialogPrivate::ensureEnabledConnection | ( | QAbstractSpinBox * | spinBox | ) |
Definition at line 312 of file qinputdialog.cpp.
References QDialogButtonBox::button(), buttonBox, QObject::connect(), QDialogButtonBox::Ok, SIGNAL, SLOT, spinBox, textChanged(), and Qt::UniqueConnection.
Referenced by ensureLayout(), and setInputWidget().
void QInputDialogPrivate::ensureIntSpinBox | ( | ) |
Definition at line 290 of file qinputdialog.cpp.
References QObject::connect(), QWidget::hide(), intSpinBox, QInputDialog::intValueChanged(), and QSpinBox::valueChanged().
void QInputDialogPrivate::ensureLayout | ( | ) |
Definition at line 196 of file qinputdialog.cpp.
References QDialog::accept(), QDialogButtonBox::accepted(), QBoxLayout::addWidget(), buttonBox, QDialogButtonBox::Cancel, QObject::connect(), ensureEnabledConnection(), ensureLineEdit(), QSizePolicy::Fixed, Qt::Horizontal, inputWidget, lineEdit, mainLayout, QSizePolicy::Minimum, QDialogButtonBox::Ok, QDialog::reject(), QDialogButtonBox::rejected(), QLayout::SetMinAndMaxSize, QLayout::setSizeConstraint(), and QWidget::show().
Referenced by setInputWidget().
|
inline |
Definition at line 168 of file qinputdialog.cpp.
References ensureLayout().
Referenced by ensureLayout().
void QInputDialogPrivate::ensureLineEdit | ( | ) |
Definition at line 228 of file qinputdialog.cpp.
References QObjectPrivate::connect(), QWidget::hide(), lineEdit, qt_widget_private(), QLineEdit::textChanged(), and textChanged().
Referenced by chooseRightTextInputWidget(), and ensureLayout().
void QInputDialogPrivate::ensureListView | ( | ) |
Definition at line 273 of file qinputdialog.cpp.
References comboBox, QObjectPrivate::connect(), QItemSelectionModel::currentRowChanged(), currentRowChanged(), ensureComboBox(), listView, QComboBox::model(), QAbstractItemView::NoEditTriggers, QAbstractItemView::selectionModel(), QAbstractItemView::setCurrentIndex(), QAbstractItemView::setEditTriggers(), QAbstractItemView::setModel(), QAbstractItemView::setSelectionMode(), and QAbstractItemView::SingleSelection.
Referenced by chooseRightTextInputWidget().
void QInputDialogPrivate::ensurePlainTextEdit | ( | ) |
Definition at line 242 of file qinputdialog.cpp.
References QObjectPrivate::connect(), QPlainTextEdit::NoWrap, plainTextEdit, plainTextEditTextChanged(), qt_widget_private(), QPlainTextEdit::setLineWrapMode(), and QPlainTextEdit::textChanged().
Referenced by chooseRightTextInputWidget().
QString QInputDialogPrivate::listViewText | ( | ) | const |
Definition at line 409 of file qinputdialog.cpp.
References comboBox, QItemSelectionModel::hasSelection, QComboBox::itemText(), listView, QModelIndex::row(), QItemSelectionModel::selectedRows(), QAbstractItemView::selectionModel(), and QList< T >::value().
Referenced by chooseRightTextInputWidget().
void QInputDialogPrivate::plainTextEditTextChanged | ( | ) |
Definition at line 428 of file qinputdialog.cpp.
References emit, plainTextEdit, text, textValue, and QPlainTextEdit::toPlainText().
Referenced by ensurePlainTextEdit().
Definition at line 389 of file qinputdialog.cpp.
References comboBox, QComboBox::findText(), QComboBox::isEditable(), QComboBox::setCurrentIndex(), QComboBox::setEditText(), and text.
Referenced by setInputWidget().
Definition at line 320 of file qinputdialog.cpp.
References QDialogButtonBox::button(), buttonBox, comboBox, QObject::disconnect(), ensureEnabledConnection(), ensureLayout(), QAbstractSpinBox::hasAcceptableInput(), QItemSelectionModel::hasSelection, QWidget::hide(), inputWidget, QBoxLayout::insertWidget(), lineEdit, listView, mainLayout, QDialogButtonBox::Ok, plainTextEdit, Q_ASSERT, QLayout::removeWidget(), QAbstractItemView::selectionModel(), setComboBoxText(), QWidget::setEnabled(), setListViewText(), QPlainTextEdit::setPlainText(), QLineEdit::setText(), QWidget::show(), SIGNAL, SLOT, spinBox, textChanged(), textValue, and widget.
Referenced by chooseRightTextInputWidget().
Definition at line 399 of file qinputdialog.cpp.
References QItemSelectionModel::Clear, comboBox, QComboBox::findText(), QAbstractItemModel::index(), listView, QComboBox::model(), QItemSelectionModel::SelectCurrent, QAbstractItemView::selectionModel(), QItemSelectionModel::setCurrentIndex(), and text.
Referenced by setInputWidget().
Definition at line 419 of file qinputdialog.cpp.
References emit, text, and textValue.
Referenced by chooseRightTextInputWidget(), currentRowChanged(), ensureComboBox(), ensureEnabledConnection(), ensureLineEdit(), and setInputWidget().
|
inline |
Definition at line 169 of file qinputdialog.cpp.
References comboBox, and QComboBox::count.
Referenced by chooseRightTextInputWidget().
|
mutable |
Definition at line 175 of file qinputdialog.cpp.
Referenced by currentRowChanged(), ensureEnabledConnection(), ensureLayout(), and setInputWidget().
|
mutable |
Definition at line 180 of file qinputdialog.cpp.
Referenced by chooseRightTextInputWidget(), currentRowChanged(), ensureComboBox(), ensureListView(), listViewText(), setComboBoxText(), setInputWidget(), setListViewText(), and useComboBoxOrListView().
|
mutable |
Definition at line 179 of file qinputdialog.cpp.
Referenced by ensureDoubleSpinBox().
|
mutable |
Definition at line 182 of file qinputdialog.cpp.
Referenced by chooseRightTextInputWidget(), ensureLayout(), and setInputWidget().
|
mutable |
Definition at line 178 of file qinputdialog.cpp.
Referenced by ensureIntSpinBox().
|
mutable |
Definition at line 174 of file qinputdialog.cpp.
|
mutable |
Definition at line 176 of file qinputdialog.cpp.
Referenced by chooseRightTextInputWidget(), ensureLayout(), ensureLineEdit(), and setInputWidget().
|
mutable |
Definition at line 181 of file qinputdialog.cpp.
Referenced by chooseRightTextInputWidget(), ensureListView(), listViewText(), setInputWidget(), and setListViewText().
|
mutable |
Definition at line 183 of file qinputdialog.cpp.
Referenced by ensureLayout(), and setInputWidget().
QByteArray QInputDialogPrivate::memberToDisconnectOnClose |
Definition at line 187 of file qinputdialog.cpp.
QInputDialog::InputDialogOptions QInputDialogPrivate::opts |
Definition at line 184 of file qinputdialog.cpp.
Referenced by chooseRightTextInputWidget().
|
mutable |
Definition at line 177 of file qinputdialog.cpp.
Referenced by chooseRightTextInputWidget(), ensurePlainTextEdit(), plainTextEditTextChanged(), and setInputWidget().
Definition at line 186 of file qinputdialog.cpp.
QString QInputDialogPrivate::textValue |
Definition at line 185 of file qinputdialog.cpp.
Referenced by plainTextEditTextChanged(), setInputWidget(), and textChanged().