Crossfire Server, Trunk
AssetFieldCompleter.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef ASSET_FIELD_COMPLETER_H
14 #define ASSET_FIELD_COMPLETER_H
15 
16 #include <QCompleter>
17 
18 class QStandardItem;
19 
25 class AssetFieldCompleter : public QCompleter {
26 
27 public:
32  AssetFieldCompleter(QWidget *parent);
33 
34 protected:
35  virtual QStringList splitPath(const QString &path) const override;
36  virtual QString pathFromIndex(const QModelIndex &index) const override;
37 };
38 
39 #endif /* ASSET_FIELD_COMPLETER_H */
AssetFieldCompleter::AssetFieldCompleter
AssetFieldCompleter(QWidget *parent)
Definition: AssetFieldCompleter.cpp:61
python_init.path
path
Definition: python_init.py:8
AssetFieldCompleter
Definition: AssetFieldCompleter.h:25
npc_dialog.index
int index
Definition: npc_dialog.py:102
AssetFieldCompleter::splitPath
virtual QStringList splitPath(const QString &path) const override
Definition: AssetFieldCompleter.cpp:73
AssetFieldCompleter::pathFromIndex
virtual QString pathFromIndex(const QModelIndex &index) const override
Definition: AssetFieldCompleter.cpp:77