На этой странице

Utils::PathListEditor Class

class Utils::PathListEditor

Класс PathListEditor представляет собой элемент управления, позволяющий пользователю редактировать список путей (к каталогам) с использованием разделителей, принятых на данной платформе (';', ':'). Подробнее...

Header: #include <PathListEditor>

Общедоступные функции

QString fileDialogTitle() const
QStringList pathList() const
void setFileDialogTitle(const QString &l)
void setPathList(const QStringList &l)
void setPathList(const QString &pathString)

Подробное описание

Обычно используется для списков путей, управляемых переменными среды, такими как PATH. Он основан на элементе « QPlainTextEdit », так как должен обеспечивать удобное редактирование и поддержку элементов, не являющихся каталогами, таких как

"etc/mydir1:$SPECIAL_SYNTAX:/etc/mydir2".

При вставке текста в него разделитель платформы для удобства заменяется символами новой строки.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.