[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 243900] adress bar in full screen unusable
From: Andrea Diamantini <adjam7 () gmail ! com>
Date: 2010-08-31 22:46:12
Message-ID: 20100831224612.D1A7B63A7D () immanuel ! kde ! org
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=243900
Andrea Diamantini <adjam7@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Andrea Diamantini <adjam7 gmail com> 2010-09-01 00:46:11 ---
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);
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic