23 #ifndef QTXPATHLISTEDIT_H
24 #define QTXPATHLISTEDIT_H
36 class QStringListModel;
39 #pragma warning( disable:4251 )
57 QStringList pathList()
const;
58 void setPathList(
const QStringList& );
60 bool isDuplicateEnabled()
const;
61 void setDuplicateEnabled(
const bool );
64 bool contains(
const QString& )
const;
67 void remove(
const int );
68 void remove(
const QString& );
69 void insert(
const QString&,
const int = -1 );
74 void onUp(
bool =
false );
75 void onDown(
bool =
false );
76 void onInsert(
bool =
false );
77 void onDelete(
bool =
false );
82 void setModelData(
QWidget*,
const QModelIndex& );
83 void setEditorData(
QWidget*,
const QModelIndex& );
85 bool checkExistance(
const QString&,
const bool =
true );
86 bool checkDuplicate(
const QString&,
const int,
const bool =
true );
#define QTX_EXPORT
Definition: Qtx.h:36
For more information see QT documentation.
Definition: SUIT_Application.h:42
Custom item delegate for the paths list widget.
Definition: QtxPathListEdit.cxx:166
Path editor widget.
Definition: QtxPathListEdit.cxx:140
The QtxPathListEdit class represents a widget for files or directories paths list preference items ed...
Definition: QtxPathListEdit.h:43
Qtx::PathType myType
Definition: QtxPathListEdit.h:90
QStringListModel * myModel
Definition: QtxPathListEdit.h:91
bool myDuplicate
Definition: QtxPathListEdit.h:93
QCompleter * myCompleter
Definition: QtxPathListEdit.h:92
QListView * myList
Definition: QtxPathListEdit.h:89
PathType
Path type, indicates required directory/file operation.
Definition: Qtx.h:91