Changeset 13537 for branches/OMEdit/OMEditGUI/SearchClassDialog.cpp
- Timestamp:
- 2012-10-20T20:27:24+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OMEdit/OMEditGUI/SearchClassDialog.cpp
r13405 r13537 114 114 } 115 115 116 void SearchClassSuggestion::setClassesList(QStringList classes) 117 { 118 mClassesList = classes; 119 } 116 120 117 121 bool SearchClassSuggestion::eventFilter(QObject *pObject, QEvent *event) … … 206 210 return; 207 211 } 208 MainWindow* pMainWindow = mpSearchClassBox->getSearchClassDialog()->getMainWindow();209 212 QStringList foundedItemsList; 210 mClassesList.clear();211 mClassesList = pMainWindow->getOMCProxy()->getClassNames("", "true");212 213 foreach (QString item, mClassesList) 213 214 { … … 336 337 mpMainWindow->openLibraryTreeNode(pItem, mpDontOpenClassCheckBox->isChecked()); 337 338 } 339 340 //! Checks the activation of the dialog. 341 //! Only fetch the classes from OMC once when the dialog becomes active. 342 //! @param QEvent 343 void SearchClassDialog::changeEvent(QEvent *event) 344 { 345 if (event->type() == QEvent::ActivationChange) 346 { 347 if (isActiveWindow()) 348 { 349 mpSearchClassTextBox->getSearchClassSuggestion()->getClassesList().clear(); 350 mpSearchClassTextBox->getSearchClassSuggestion()->setClassesList(getMainWindow()->getOMCProxy()->getClassNames("", "true")); 351 } 352 } 353 }
Note: See TracChangeset
for help on using the changeset viewer.