Unknown filetypes show a dialog where the user can choose between «save as» and «open with». If there is a plugin handler, we catch it and decide whether to pass to the plugin-handler or to handle it ourself (we do so, if the mime type is registered, otherwise we pass to the plugin handler). If the mimetype is known and registered, we launch the configured application, otherwise we show th edialog mentioned above.; refs #79

This commit is contained in:
Marc Wäckerlin committed 2012-05-08 14:01:42 +00:00
1 parent d415f0dae3
commit 04bcf67e6c
21 files changed
+2839 -2302

No files matched your search

+3 -1
View File
@@ -70,7 +70,7 @@ class SwissWebViewWidgetIfc: public QObject,
}
QWidget *createWidget(QWidget *parent) {
LOG;
return new SwissWebView(parent);
return new qbrowserlib::SwissWebView(&_net, &_executor, parent);
}
bool isInitialized() {
LOG;
@@ -82,6 +82,8 @@ class SwissWebViewWidgetIfc: public QObject,
}
private:
bool _initialized;
QNetworkAccessManager _net;
qbrowserlib::Executor _executor;
};
//! @}