[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Rekonq] 3b4d243: Let urlbar being usable also in fullscreen mode
From:       Andrea Diamantini <adjam7 () gmail ! com>
Date:       2010-08-31 22:42:02
Message-ID: 201008312242.o7VMg2TG011085 () kore ! kollide ! net
[Download RAW message or body]

commit 3b4d243c170ba45fdd1fc07cc24f3554c9e70857
Author: Andrea Diamantini <adjam7@gmail.com>
Date:   Wed Sep 1 00:47:33 2010 +0200

    Let urlbar being usable also in fullscreen mode
    
    BUG: 243900

diff --git a/src/application.cpp b/src/application.cpp
index d66e290..5e7cbd5 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -228,7 +228,6 @@ int Application::newInstance()
         }
     }
 
-
     if(isFirstLoad)
     {
         // give me some time to do the other things..
@@ -439,13 +438,13 @@ void Application::loadResolvedUrl(ThreadWeaver::Job *job)
     KUrl url = threadedJob->url();
     WebView *view = threadedJob->view();
 
-    // Bye and thanks :)
-    delete threadedJob;
-
     if (view)
     {
         view->load(url);
     }
+   
+    // Bye and thanks :)
+    delete threadedJob;
 }
 
 
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 5bacb69..11580f6 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -600,6 +600,10 @@ void MainWindow::setupPanels()
 
 void MainWindow::openLocation()
 {
+    if(isFullScreen())
+    {
+        setWidgetsVisible(true);
+    }
     m_view->urlBar()->selectAll();
     m_view->urlBar()->setFocus();
 }
diff --git a/src/webview.cpp b/src/webview.cpp
index 2c80003..b794007 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -40,6 +40,7 @@
 #include "searchengine.h"
 #include "websnap.h"
 #include "iconmanager.h"
+#include "urlbar.h"
 
 // KDE Includes
 #include <KService>
@@ -407,15 +408,17 @@ void WebView::mouseMoveEvent(QMouseEvent *event)
         return;
     }
 
-    if (Application::instance()->mainWindow()->isFullScreen())
+    MainWindow *w = Application::instance()->mainWindow();
+    if (w->isFullScreen())
     {
         if (event->pos().y() >= 0 && event->pos().y() <= 4)
         {
-            Application::instance()->mainWindow()->setWidgetsVisible(true);
+            w->setWidgetsVisible(true);
         }
         else
         {
-            Application::instance()->mainWindow()->setWidgetsVisible(false);
+            if(!w->mainView()->urlBar()->hasFocus())
+                w->setWidgetsVisible(false);
         }
     }
     KWebView::mouseMoveEvent(event);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic