projects
/
presencevnc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix symbol key
[presencevnc]
/
src
/
mainwindow.cpp
diff --git
a/src/mainwindow.cpp
b/src/mainwindow.cpp
index
7f8e832
..
385e1a2
100644
(file)
--- a/
src/mainwindow.cpp
+++ b/
src/mainwindow.cpp
@@
-282,9
+282,12
@@
void MainWindow::forceResizeDelayed()
void MainWindow::toggleFullscreen()
{
bool in_fullscreen = windowState() & Qt::WindowFullScreen;
void MainWindow::toggleFullscreen()
{
bool in_fullscreen = windowState() & Qt::WindowFullScreen;
+
//hide menu/toolbar in fullscreen (new state is !in_fullscreen)
toolbar->setVisible(show_toolbar->isChecked() and in_fullscreen);
//hide menu/toolbar in fullscreen (new state is !in_fullscreen)
toolbar->setVisible(show_toolbar->isChecked() and in_fullscreen);
+
#ifndef Q_WS_MAEMO_5
#ifndef Q_WS_MAEMO_5
+ //menu bar is invisible by default on maemo
menuBar()->setVisible(in_fullscreen);
#endif
menuBar()->setVisible(in_fullscreen);
#endif
@@
-334,6
+337,7
@@
void MainWindow::showInputPanel()
{
#ifdef Q_WS_MAEMO_5
vnc_view->setAttribute(Qt::WA_InputMethodEnabled, true);
{
#ifdef Q_WS_MAEMO_5
vnc_view->setAttribute(Qt::WA_InputMethodEnabled, true);
+
QEvent event(QEvent::RequestSoftwareInputPanel);
QApplication::sendEvent(vnc_view, &event);
#endif
QEvent event(QEvent::RequestSoftwareInputPanel);
QApplication::sendEvent(vnc_view, &event);
#endif