| 209 | |
| 210 | private Q_SLOTS: |
| 211 | void addNewToolViewByDoubleClick(const QModelIndex& index) |
| 212 | { |
| 213 | QListWidgetItem *item = itemFromIndex(index); |
| 214 | // Disable item so that the tool view can not be added again. |
| 215 | item->setFlags(item->flags() & ~Qt::ItemIsEnabled); |
| 216 | emit addNewToolView(m_mw, item); |
| 217 | } |
| 218 | |
| 219 | private: |
| 220 | MainWindow* const m_mw; |