Created
March 17, 2014 20:36
-
-
Save Chocimier/9607829 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/ui/Window.cpp b/src/ui/Window.cpp | |
index bbbe0fe..f34cb0d 100644 | |
--- a/src/ui/Window.cpp | |
+++ b/src/ui/Window.cpp | |
@@ -18,6 +18,7 @@ | |
**************************************************************************/ | |
#include "Window.h" | |
+#include "../core/ActionsManager.h" | |
#include "../core/SettingsManager.h" | |
#include "../core/WebBackend.h" | |
#include "../core/WebBackendsManager.h" | |
@@ -60,6 +61,7 @@ Window::Window(bool privateWindow, ContentsWidget *widget, QWidget *parent) : QW | |
connect(m_ui->addressWidget, SIGNAL(requestedLoadUrl(QUrl)), this, SLOT(setUrl(QUrl))); | |
connect(m_ui->addressWidget, SIGNAL(requestedSearch(QString,QString)), this, SLOT(search(QString,QString))); | |
connect(m_ui->searchWidget, SIGNAL(requestedSearch(QString,QString)), this, SLOT(handleSearchRequest(QString,QString))); | |
+ connect(ActionsManager::getAction(QLatin1String("FullScreen")), SIGNAL(triggered()), this, SLOT(toggleFullScreen())); | |
} | |
Window::~Window() | |
@@ -67,6 +69,11 @@ Window::~Window() | |
delete m_ui; | |
} | |
+void Window::toggleFullScreen() | |
+{ | |
+ m_ui->navigationWidget->setVisible(m_ui->navigationWidget->isHidden()); | |
+} | |
+ | |
void Window::changeEvent(QEvent *event) | |
{ | |
QWidget::changeEvent(event); | |
diff --git a/src/ui/Window.h b/src/ui/Window.h | |
index 93818dd..7465824 100644 | |
--- a/src/ui/Window.h | |
+++ b/src/ui/Window.h | |
@@ -174,6 +174,7 @@ protected slots: | |
void notifyRequestedOpenUrl(const QUrl &url, bool background, bool newWindow); | |
void updateGoBackMenu(); | |
void updateGoForwardMenu(); | |
+ void toggleFullScreen(); | |
private: | |
ContentsWidget *m_contentsWidget; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment