Changeset 1186 for trunk/camelot/view/controls/tableview.py
- Timestamp:
- 03/13/10 12:31:24 (6 months ago)
- Files:
-
- 1 modified
-
trunk/camelot/view/controls/tableview.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/camelot/view/controls/tableview.py
r1184 r1186 127 127 self.number_of_rows = None 128 128 layout.addLayout( widget_layout ) 129 self._expanded_search = QtGui.Q Label('Expanded')129 self._expanded_search = QtGui.QWidget() 130 130 self._expanded_search.hide() 131 131 layout.addWidget(self._expanded_search) … … 133 133 self.setSizePolicy( QSizePolicy.Minimum, QSizePolicy.Fixed ) 134 134 self.setNumberOfRows( 0 ) 135 135 post( admin.get_columns, self._fill_expanded_search_options ) 136 137 def _fill_expanded_search_options(self, columns): 138 layout = QtGui.QHBoxLayout() 139 for field, attributes in columns: 140 if 'operators' in attributes: 141 widget = QtGui.QLabel(field) 142 layout.addWidget( widget ) 143 self._expanded_search.setLayout( layout ) 144 145 136 146 def expand_search_options(self): 137 147 if self._expanded_search.isHidden():
