projects
/
presencevnc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89eee25
)
Show view-only state in window title
author
Christian Pulvermacher
<pulvermacher@gmx.de>
Wed, 25 Jan 2012 20:39:31 +0000
(21:39 +0100)
committer
Christian Pulvermacher
<pulvermacher@gmx.de>
Wed, 25 Jan 2012 20:39:31 +0000
(21:39 +0100)
src/mainwindow.cpp
patch
|
blob
|
history
diff --git
a/src/mainwindow.cpp
b/src/mainwindow.cpp
index
c1a9b1c
..
34b740f
100644
(file)
--- a/
src/mainwindow.cpp
+++ b/
src/mainwindow.cpp
@@
-204,7
+204,7
@@
void MainWindow::connectToHost(QString url, int quality, int listen_port, bool v
this, SLOT(statusChanged(RemoteView::RemoteStatus)));
scroll_area->setWidget(vnc_view);
vnc_view->start();
- setWindowTitle(QString("Presence VNC - %1").arg(vnc_view->host()));
+ setWindowTitle(QString("Presence VNC - %1").arg(vnc_view->host()) + (view_only?tr(" [View Only]"):""));
disconnect_action->setEnabled(true);