hakaishi / nobleNote

Program to make and manage notes
Other
30 stars 4 forks source link

FindFileSystemModel should use reflection instead of qobject_cast to call methods on the runtime types of the sourceModels #136

Closed nebomuk closed 12 years ago

nebomuk commented 12 years ago

TODO: Rename FindFileSystemModel because it is a cumbersome name and will not longer be the proper description for this class.

use QMetaObject::invokeMethod to call methods on the sourceModels because there will be the following possible sourceModels: historyModel, trashModel, findFileModel and noteFSModel.

nebomuk commented 12 years ago

Reflection cannot be used here because QMetaObject::invokeMethod only works on methods marked with the Q_INVOKABLE macro or methods or slots.