|
|
@ -37,8 +37,15 @@ namespace qbrowserlib { |
|
|
|
void newView(qbrowserlib::SwissWebView*); |
|
|
|
void newView(qbrowserlib::SwissWebView*); |
|
|
|
public: |
|
|
|
public: |
|
|
|
//! Default construction, creates new @ref SwissWebView
|
|
|
|
//! Default construction, creates new @ref SwissWebView
|
|
|
|
SwissWebView(QNetworkAccessManager* net, |
|
|
|
SwissWebView(QWidget *parent=0, |
|
|
|
Executor* executor, QWidget *parent=0): QWebView(parent) { |
|
|
|
QNetworkAccessManager* net=0, |
|
|
|
|
|
|
|
Executor* executor=0): QWebView(parent) { |
|
|
|
|
|
|
|
if (!net) net = (_fallbackNetworkAccessManager = |
|
|
|
|
|
|
|
std::auto_ptr<QNetworkAccessManager> |
|
|
|
|
|
|
|
(new QNetworkAccessManager)).get(); |
|
|
|
|
|
|
|
if (!executor) executor = (_fallbackExecutor = |
|
|
|
|
|
|
|
std::auto_ptr<Executor> |
|
|
|
|
|
|
|
(new Executor)).get(); |
|
|
|
//! @bugfix, gcc does not yet support constructor calling
|
|
|
|
//! @bugfix, gcc does not yet support constructor calling
|
|
|
|
x(new SwissWebPage(net, executor, this)); |
|
|
|
x(new SwissWebPage(net, executor, this)); |
|
|
|
} |
|
|
|
} |
|
|
@ -65,6 +72,11 @@ namespace qbrowserlib { |
|
|
|
// is not assigned
|
|
|
|
// is not assigned
|
|
|
|
newView(new SwissWebView(p)); |
|
|
|
newView(new SwissWebView(p)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::auto_ptr<QNetworkAccessManager> _fallbackNetworkAccessManager; |
|
|
|
|
|
|
|
std::auto_ptr<Executor> _fallbackExecutor; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|