[PC-BSD Commits] r13458 - pcbsd/current/src-qt4/pc-sysinstaller

svn at pcbsd.org svn at pcbsd.org
Thu Oct 20 09:50:18 PDT 2011


Author: kris
Date: 2011-10-20 09:50:18 -0700 (Thu, 20 Oct 2011)
New Revision: 13458

Modified:
   pcbsd/current/src-qt4/pc-sysinstaller/sys-keyboardwidget.cpp
Log:

Change to not use pc104, but user selected keyboard model, just set "us" layout



Modified: pcbsd/current/src-qt4/pc-sysinstaller/sys-keyboardwidget.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-sysinstaller/sys-keyboardwidget.cpp	2011-10-20 16:49:00 UTC (rev 13457)
+++ pcbsd/current/src-qt4/pc-sysinstaller/sys-keyboardwidget.cpp	2011-10-20 16:50:18 UTC (rev 13458)
@@ -34,8 +34,16 @@
 
 void SysInstaller::slotToggleKeyLayout()
 {
+  if ( ! comboBoxKeyboardModel->currentIndex() == -1 )
+     return;
+
+   QString model;
+   model = comboBoxKeyboardModel->currentText();
+   model = model.remove(0, model.indexOf("- (") + 3 );
+   model.truncate(model.size() -1 );
+
    if ( toggleKeyLayout) {
-     Scripts::Backend::changeKbMap("pc104", "us", QString());     
+     Scripts::Backend::changeKbMap(model, "us", QString());     
      toggleKeyLayout = false;
    } else {
      slotUpdateKbOnSys();



More information about the Commits mailing list