diff options
Diffstat (limited to 'src/webwindow')
-rw-r--r-- | src/webwindow/webwindow.cpp | 12 | ||||
-rw-r--r-- | src/webwindow/webwindow.h | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp index 4351f331..631c9a2c 100644 --- a/src/webwindow/webwindow.cpp +++ b/src/webwindow/webwindow.cpp @@ -36,7 +36,7 @@ WebWindow::WebWindow(QWidget *parent) { WebPage *p = new WebPage(_view); _view->setPage(p); - + // layout QVBoxLayout *l = new QVBoxLayout; l->addWidget(_edit); @@ -44,7 +44,7 @@ WebWindow::WebWindow(QWidget *parent) l->setContentsMargins(0, 0, 0, 0); setLayout(l); - setContentsMargins(0,0,0,0); + setContentsMargins(0, 0, 0, 0); // line edit signals connect(_edit, SIGNAL(returnPressed()), this, SLOT(checkLoadUrl())); @@ -72,7 +72,7 @@ WebWindow::WebWindow(WebPage *page, QWidget *parent) { _view->setPage(page); page->setParent(_view); - + // layout QVBoxLayout *l = new QVBoxLayout; l->addWidget(_edit); @@ -80,7 +80,7 @@ WebWindow::WebWindow(WebPage *page, QWidget *parent) l->setContentsMargins(0, 0, 0, 0); setLayout(l); - setContentsMargins(0,0,0,0); + setContentsMargins(0, 0, 0, 0); // line edit signals connect(_edit, SIGNAL(returnPressed()), this, SLOT(checkLoadUrl())); @@ -98,7 +98,7 @@ WebWindow::WebWindow(WebPage *page, QWidget *parent) // page signals connect(page, SIGNAL(pageCreated(WebPage *)), this, SIGNAL(pageCreated(WebPage *))); - + } @@ -112,7 +112,7 @@ WebPage *WebWindow::page() { if (!_view) return 0; - + WebPage *p = qobject_cast<WebPage *>(_view->page()); return p; } diff --git a/src/webwindow/webwindow.h b/src/webwindow/webwindow.h index e5f68567..7d72ed34 100644 --- a/src/webwindow/webwindow.h +++ b/src/webwindow/webwindow.h @@ -43,7 +43,7 @@ public: void load(const QUrl &); WebPage *page(); - + QUrl url() const; QString title() const; QIcon icon() const; @@ -60,7 +60,7 @@ Q_SIGNALS: void loadFinished(bool); void pageCreated(WebPage *); - + private: QWebView *_view; QLineEdit *_edit; |