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:
@@ -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;
|
||||
};
|
||||
|
||||
//! @}
|
||||
|
Reference in New Issue
Block a user