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
QCompleterPrivate Class Reference

#include <qcompleter_p.h>

+ Inheritance diagram for QCompleterPrivate:
+ Collaboration diagram for QCompleterPrivate:

Public Member Functions

 QCompleterPrivate ()
 
 ~QCompleterPrivate ()
 
void init (QAbstractItemModel *model=nullptr)
 
void showPopup (const QRect &)
 
void _q_complete (QModelIndex, bool=false)
 
void _q_completionSelected (const QItemSelection &)
 
void _q_autoResizePopup ()
 
void _q_fileSystemModelDirectoryLoaded (const QString &path)
 
void setCurrentIndex (QModelIndex, bool=true)
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
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 std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static QCompleterPrivateget (QCompleter *o)
 
static const QCompleterPrivateget (const QCompleter *o)
 
- 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)
 

Public Attributes

QPointer< QWidgetwidget
 
QCompletionModelproxy
 
QAbstractItemViewpopup
 
QCompleter::CompletionMode mode
 
Qt::MatchFlags filterMode
 
QString prefix
 
Qt::CaseSensitivity cs
 
int role
 
int column
 
int maxVisibleItems
 
QCompleter::ModelSorting sorting
 
bool wrap
 
bool eatFocusOut
 
QRect popupRect
 
bool hiddenBecauseNoMatch
 
- 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
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Detailed Description

Definition at line 38 of file qcompleter_p.h.

Constructor & Destructor Documentation

◆ QCompleterPrivate()

QCompleterPrivate::QCompleterPrivate ( )

Definition at line 790 of file qcompleter.cpp.

◆ ~QCompleterPrivate()

QCompleterPrivate::~QCompleterPrivate ( )
inline

Definition at line 44 of file qcompleter_p.h.

References popup.

Member Function Documentation

◆ _q_autoResizePopup()

void QCompleterPrivate::_q_autoResizePopup ( )

Definition at line 881 of file qcompleter.cpp.

References popup, popupRect, and showPopup().

Referenced by init().

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

◆ _q_complete()

void QCompleterPrivate::_q_complete ( QModelIndex index,
bool highlighted = false )

Definition at line 849 of file qcompleter.cpp.

References emit, QCompletionModel::engine, QCompleter::InlineCompletion, Qt::ItemIsEnabled, QCompletionModel::mapToSource(), QCompletionEngine::matchCount(), prefix, proxy, QModelIndex::row(), QDir::separator(), QCompletionModel::showAll, QModelIndex::sibling(), and QAbstractProxyModel::sourceModel.

Referenced by _q_completionSelected().

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

◆ _q_completionSelected()

void QCompleterPrivate::_q_completionSelected ( const QItemSelection & selection)

Definition at line 840 of file qcompleter.cpp.

References _q_complete(), QItemSelection::indexes(), and selection.

+ Here is the call graph for this function:

◆ _q_fileSystemModelDirectoryLoaded()

void QCompleterPrivate::_q_fileSystemModelDirectoryLoaded ( const QString & path)

Definition at line 972 of file qcompleter.cpp.

◆ get() [1/2]

static const QCompleterPrivate * QCompleterPrivate::get ( const QCompleter * o)
inlinestatic

Definition at line 73 of file qcompleter_p.h.

References o.

◆ get() [2/2]

static QCompleterPrivate * QCompleterPrivate::get ( QCompleter * o)
inlinestatic

Definition at line 72 of file qcompleter_p.h.

References o.

Referenced by QComboBoxPrivate::editingFinished(), QComboBox::keyPressEvent(), and QWidgetLineControl::processKeyEvent().

+ Here is the caller graph for this function:

◆ init()

void QCompleterPrivate::init ( QAbstractItemModel * model = nullptr)

Definition at line 806 of file qcompleter.cpp.

References _q_autoResizePopup(), QObject::connect(), QCompleter::InlineCompletion, QCompleter::PopupCompletion, proxy, SIGNAL, and SLOT.

+ Here is the call graph for this function:

◆ setCurrentIndex()

void QCompleterPrivate::setCurrentIndex ( QModelIndex index,
bool select = true )

◆ showPopup()

void QCompleterPrivate::showPopup ( const QRect & rect)

Definition at line 888 of file qcompleter.cpp.

References QScreen::availableGeometry, dir, QWidget::height, QWidget::layoutDirection, QWidget::mapToGlobal(), maxVisibleItems, QAbstractItemView::model(), popup, pos, qMax(), qMin(), rect, Qt::RightToLeft, QAbstractItemModel::rowCount(), screen, QWidget::screen(), QAbstractItemView::sizeHintForRow(), widget, and QWidget::width.

Referenced by _q_autoResizePopup().

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

Member Data Documentation

◆ column

int QCompleterPrivate::column

Definition at line 56 of file qcompleter_p.h.

◆ cs

Qt::CaseSensitivity QCompleterPrivate::cs

Definition at line 54 of file qcompleter_p.h.

◆ eatFocusOut

bool QCompleterPrivate::eatFocusOut

Definition at line 61 of file qcompleter_p.h.

◆ filterMode

Qt::MatchFlags QCompleterPrivate::filterMode

Definition at line 51 of file qcompleter_p.h.

◆ hiddenBecauseNoMatch

bool QCompleterPrivate::hiddenBecauseNoMatch

Definition at line 63 of file qcompleter_p.h.

◆ maxVisibleItems

int QCompleterPrivate::maxVisibleItems

Definition at line 57 of file qcompleter_p.h.

Referenced by showPopup().

◆ mode

QCompleter::CompletionMode QCompleterPrivate::mode

Definition at line 50 of file qcompleter_p.h.

◆ popup

QAbstractItemView* QCompleterPrivate::popup

Definition at line 49 of file qcompleter_p.h.

Referenced by ~QCompleterPrivate(), _q_autoResizePopup(), setCurrentIndex(), and showPopup().

◆ popupRect

QRect QCompleterPrivate::popupRect

Definition at line 62 of file qcompleter_p.h.

Referenced by _q_autoResizePopup().

◆ prefix

QString QCompleterPrivate::prefix

Definition at line 53 of file qcompleter_p.h.

Referenced by _q_complete().

◆ proxy

QCompletionModel* QCompleterPrivate::proxy

Definition at line 48 of file qcompleter_p.h.

Referenced by _q_complete(), and init().

◆ role

int QCompleterPrivate::role

Definition at line 55 of file qcompleter_p.h.

◆ sorting

QCompleter::ModelSorting QCompleterPrivate::sorting

Definition at line 58 of file qcompleter_p.h.

◆ widget

QPointer<QWidget> QCompleterPrivate::widget

Definition at line 47 of file qcompleter_p.h.

Referenced by showPopup().

◆ wrap

bool QCompleterPrivate::wrap

Definition at line 59 of file qcompleter_p.h.


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