update URL in about dialog
[presencevnc] / src / mainwindow.cpp
index d0d8787..e042805 100644 (file)
@@ -78,7 +78,7 @@ MainWindow::MainWindow(QString url, int quality, bool view_only):
        //set up menu
        QAction *connect_action = new QAction(tr("Connect"), this);
        disconnect_action = new QAction(tr("Disconnect"), this);
-       show_toolbar = new QAction(tr("Show Toolbar"), this);
+       show_toolbar = new QAction(tr("Show toolbar"), this);
        show_toolbar->setCheckable(true);
        show_toolbar->setChecked(settings.value("show_toolbar", true).toBool());
        QAction *pref_action = new QAction(tr("Preferences"), this);
@@ -172,7 +172,7 @@ void MainWindow::about() {
        QMessageBox::about(this, tr("About Presence VNC"),
                tr("<center><h1>Presence VNC 0.8</h1>\
 <p>A touchscreen friendly VNC client</p>\
-<p><a href=\"https://garage.maemo.org/projects/presencevnc/\">https://garage.maemo.org/projects/presencevnc</a></p></center>\
+<p><a href=\"http://presencevnc.garage.maemo.org/\">http://presencevnc.garage.maemo.org/</a></p></center>\
 <small><p>&copy;2010 Christian Pulvermacher &lt;pulvermacher@gmx.de&gt;<br />\
 Based on KRDC, &copy; 2007-2008 Urs Wolfer<br />\
 and LibVNCServer, &copy; 2001-2003 Johannes E. Schindelin</p>\
@@ -182,16 +182,17 @@ and LibVNCServer, &copy; 2001-2003 Johannes E. Schindelin</p>\
 void MainWindow::showConnectDialog()
 {
        ConnectDialog *connect_dialog = new ConnectDialog(this);
-       connect(connect_dialog, SIGNAL(connectToHost(QString, int, int)),
-               this, SLOT(connectToHost(QString, int, int)));
+       connect(connect_dialog, SIGNAL(connectToHost(QString, int, int, bool)),
+               this, SLOT(connectToHost(QString, int, int, bool)));
        connect_dialog->exec();
 }
 
-void MainWindow::connectToHost(QString url, int quality, int listen_port)
+void MainWindow::connectToHost(QString url, int quality, int listen_port, bool view_only)
 {
        disconnectFromHost();
 
        vnc_view = new VncView(this, url, RemoteView::Quality(quality), listen_port);
+       vnc_view->setViewOnly(view_only);
 
        connect(vnc_view, SIGNAL(statusChanged(RemoteView::RemoteStatus)),
                this, SLOT(statusChanged(RemoteView::RemoteStatus)));