mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 18:50:52 +01:00
LinkSingleElementWidget: add line for filter available element.
filter work with the information of element. elementSelectorWidget: add filter method. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2926 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -41,6 +41,11 @@ class ElementSelectorWidget : public QWidget
|
||||
~ElementSelectorWidget();
|
||||
Element * selectedElement () const{return selected_element;}
|
||||
void showElement(Element *elmt);
|
||||
void clear();
|
||||
void setList(QList <Element *> elmt_list);
|
||||
|
||||
public slots:
|
||||
void filter(const QString &str);
|
||||
|
||||
private:
|
||||
void buildInterface();
|
||||
@@ -56,6 +61,8 @@ class ElementSelectorWidget : public QWidget
|
||||
QList <Element *> elements_list;
|
||||
QSignalMapper *sm_, *sm_show_;
|
||||
Element *selected_element, *showed_element;
|
||||
QList <QWidget *> content_list;
|
||||
QStringList string_filter;
|
||||
};
|
||||
|
||||
#endif // ELEMENTSELECTORWIDGET_H
|
||||
|
||||
Reference in New Issue
Block a user