Crossfire Server, Trunk
AssetFieldCompleter Class Reference

#include <AssetFieldCompleter.h>

+ Inheritance diagram for AssetFieldCompleter:
+ Collaboration diagram for AssetFieldCompleter:

Public Member Functions

 AssetFieldCompleter (QWidget *parent)
 

Protected Member Functions

virtual QString pathFromIndex (const QModelIndex &index) const override
 
virtual QStringList splitPath (const QString &path) const override
 

Detailed Description

Word completer to suggest fields from assets. Will correctly handle dots and such. The code is heavily borrowed from https://doc.qt.io/qt-6/qtwidgets-tools-customcompleter-example.html

Definition at line 25 of file AssetFieldCompleter.h.

Constructor & Destructor Documentation

◆ AssetFieldCompleter()

AssetFieldCompleter::AssetFieldCompleter ( QWidget *  parent)

Standard constructor.

Parameters
parentparent widget.

Definition at line 61 of file AssetFieldCompleter.cpp.

References addAssetData(), assetData, navar-midane_time::data, and root.

+ Here is the call graph for this function:

Member Function Documentation

◆ pathFromIndex()

QString AssetFieldCompleter::pathFromIndex ( const QModelIndex &  index) const
overrideprotectedvirtual

Definition at line 77 of file AssetFieldCompleter.cpp.

References navar-midane_time::data, and npc_dialog::index.

◆ splitPath()

QStringList AssetFieldCompleter::splitPath ( const QString &  path) const
overrideprotectedvirtual

Definition at line 73 of file AssetFieldCompleter.cpp.

References python_init::path.


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