瀏覽代碼

Merge branch 'add-ctkpathlineedit-namefilters-as-qproperty'

* add-ctkpathlineedit-namefilters-as-qproperty:
  Set ctkPathLineEdit::nameFilters as property for use in designer and python
Jean-Christophe Fillion-Robin 11 年之前
父節點
當前提交
7466ab0a38
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Libs/Widgets/ctkPathLineEdit.h

+ 5 - 0
Libs/Widgets/ctkPathLineEdit.h

@@ -110,6 +110,11 @@ class CTK_WIDGETS_EXPORT ctkPathLineEdit: public QWidget
   /// If this property is set to a positive value, the minimumSizeHint() and sizeHint() take it into account.
   Q_PROPERTY(int minimumContentsLength READ minimumContentsLength WRITE setMinimumContentsLength)
 
+  /// This property holds the list of regular expressions (in wildcard mode) used to help the user
+  /// complete a line.
+  /// For example: "Images (*.jpg *.gif *.png)"
+  Q_PROPERTY(QStringList nameFilters READ nameFilters WRITE setNameFilters)
+
 public:
   enum Filter { Dirs        = 0x001,
                 Files       = 0x002,