session_menu->addAction(connect_action);
session_menu->addAction(disconnect_action);
session_menu->addSeparator();
- //session_menu->addAction(pref_action);
- //session_menu->addSeparator();
+ session_menu->addAction(pref_action);
+ session_menu->addSeparator();
session_menu->addAction(tr("&Quit"), this, SLOT(close()));
QMenu* view_menu = menuBar()->addMenu(tr("&View"));
layout2->addWidget(disable_tapping);
#endif
+ always_show_local_cursor = new QCheckBox(tr("Always show local cursor"), this);
+ always_show_local_cursor->setChecked(settings.value("always_show_local_cursor", false).toBool());
+ layout2->addWidget(always_show_local_cursor);
+
QPushButton *ok = new QPushButton(tr("Done"));
ok->setMaximumWidth(100);
settings.setValue("right_zoom", rightzoom_selector->currentIndex());
settings.setValue("disable_tapping", disable_tapping->isChecked());
#endif
+ settings.setValue("always_show_local_cursor", always_show_local_cursor->isChecked());
settings.sync();
}
void save();
private:
QSettings settings;
+#ifdef Q_WS_MAEMO_5
QMaemo5ListPickSelector *rotation_selector;
QMaemo5ListPickSelector *leftzoom_selector;
QMaemo5ListPickSelector *rightzoom_selector;
QCheckBox *disable_tapping;
+#endif
+ QCheckBox *always_show_local_cursor;
};
#endif
void VncView::clipboardSelectionChanged()
{
- //kDebug(5011);
-
if (m_status != Connected)
return;
void VncView::clipboardDataChanged()
{
- //kDebug(5011);
-
if (m_status != Connected)
return;
left_zoom = settings.value("left_zoom", 0).toInt();
right_zoom = settings.value("right_zoom", 1).toInt();
disable_tapping = settings.value("disable_tapping", false).toBool();
+
+ bool always_show_local_cursor = settings.value("always_show_local_cursor", false).toBool();
+ if(always_show_local_cursor)
+ showDotCursor(CursorOn);
}
//convert commitString into keyevents