diff options
| author | Tannin <devnull@localhost> | 2014-01-14 21:16:36 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-01-14 21:16:36 +0100 |
| commit | 6ed82866b07414e91dfe0c47ee5f580bfd4fe479 (patch) | |
| tree | 0b9fa043236d95ea821ab8e43bf641beeda701dc /src/mainwindow.cpp | |
| parent | a083a2d3b6506ab95d3b18ab0ffa7751750e0249 (diff) | |
- moved code for file previews to plugins
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 139db3f0..76bff3a0 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1017,6 +1017,12 @@ bool MainWindow::registerPlugin(QObject *plugin, const QString &fileName) return true; } } + { // preview plugins + IPluginPreview *preview = qobject_cast<IPluginPreview*>(plugin); + if (verifyPlugin(preview)) { + m_PreviewGenerator.registerPlugin(preview); + } + } { // proxy plugins IPluginProxy *proxy = qobject_cast<IPluginProxy*>(plugin); if (verifyPlugin(proxy)) { |
