summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainview.cpp13
-rw-r--r--src/mainwindow.cpp1
2 files changed, 8 insertions, 6 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 59ffde4d..61e340cb 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -92,7 +92,6 @@ MainView::MainView(QWidget *parent)
connect(m_tabBar, SIGNAL(closeOtherTabs(int)), this, SLOT(slotCloseOtherTabs(int)));
connect(m_tabBar, SIGNAL(reloadTab(int)), this, SLOT(slotReloadTab(int)));
connect(m_tabBar, SIGNAL(reloadAllTabs()), this, SLOT(slotReloadAllTabs()));
- connect(m_tabBar, SIGNAL(tabMoved(int, int)), this, SLOT(moveTab(int, int)));
// connecting urlbar signals
connect(urlBar(), SIGNAL(activated(const KUrl&)), Application::instance(), SLOT(loadUrl(const KUrl&)));
@@ -306,9 +305,6 @@ void MainView::newTab()
{
WebView *w = newWebView();
- urlBar()->setUrl(KUrl(""));
- urlBar()->setFocus();
-
HomePage p(w);
switch(ReKonfig::newTabsBehaviour())
@@ -316,12 +312,16 @@ void MainView::newTab()
case 0:
w->setHtml( p.rekonqHomePage() );
break;
+ case 1:
+ urlBar()->setUrl(KUrl(""));
+ break;
case 2:
w->load( QUrl(ReKonfig::homePage()) );
break;
default:
break;
}
+ urlBar()->setFocus();
}
@@ -658,7 +658,8 @@ void MainView::showTabPreview(int tab)
}
m_previewPopup = new KPassivePopup(this);
- m_previewPopup->setFrameShape(QFrame::NoFrame);
+ m_previewPopup->setFrameShape(QFrame::StyledPanel);
+ m_previewPopup->setFrameShadow(QFrame::Plain);
m_previewPopup->setFixedSize(w, h);
QLabel *l = new QLabel();
l->setPixmap(WebSnap::renderPreview(*(webView(tab)->page()), w, h));
@@ -668,4 +669,4 @@ void MainView::showTabPreview(int tab)
QPoint pos(m_tabBar->tabRect(tab).x(),m_tabBar->tabRect(tab).y()+m_tabBar->tabRect(tab).height());
m_previewPopup->show(mapToGlobal(pos));
-} \ No newline at end of file
+}
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 8b4f5c6c..c8ac0378 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -745,6 +745,7 @@ void MainWindow::slotHome()
{
HomePage p(w);
w->setHtml( p.rekonqHomePage(), QUrl());
+ m_view->urlBar()->setFocus();
}
else
{