На цій сторінці

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.