- setWindowTitle(tr("Additional Keys"));
- QTabWidget *tabwidget = new QTabWidget(this);
-
- //modifiers
- ActionTab *mod_tab = new ActionTab(this);
- QAction *win = new QAction(tr("Win"), this);
- win->setShortcut(Qt::META);
- win->setCheckable(true);
- mod_tab->addAction(win);
- QAction *alt = new QAction(tr("Alt"), this);
- alt->setShortcut(Qt::ALT);
- alt->setCheckable(true);
- mod_tab->addAction(alt);
- tabwidget->addTab(mod_tab, tr("Modifiers"));
-
- //movement/text editing keys
- ActionTab *other_tab = new ActionTab(this);
- other_tab->addAction(tr("Insert"), Qt::Key_Insert);
- other_tab->addAction(tr("Delete"), Qt::Key_Delete);
- other_tab->addAction(tr("Backspace"), Qt::Key_Backspace);
- other_tab->addAction(tr("Home"), Qt::Key_Home);
- other_tab->addAction(tr("End"), Qt::Key_End);
- tabwidget->addTab(other_tab, tr("Editing"));
-
- //F1-F12
- ActionTab *fx_tab = new ActionTab(this);
- for(int i = 1; i<=12; i++)
- fx_tab->addAction(tr("F%1").arg(i), QString("F%1").arg(i));
- tabwidget->addTab(fx_tab, tr("F1-F12"));
-
- //common key sequences
- ActionTab *complex_tab = new ActionTab(this);
- complex_tab->addAction(tr("Ctrl+Alt+Del"), QString("Ctrl+Alt+Delete"));
- complex_tab->addAction(tr("Ctrl+Alt+Backspace"), QString("Ctrl+Alt+Backspace"));
- tabwidget->addTab(complex_tab, tr("Misc"));
-
- QVBoxLayout *layout = new QVBoxLayout();
- layout->addWidget(tabwidget);
- setLayout(layout);
+ setWindowTitle(tr("Additional Keys"));
+ QTabWidget *tabwidget = new QTabWidget(this);
+
+ //modifiers
+ ActionTab *mod_tab = new ActionTab(this);
+ win = new QAction(tr("Win"), this);
+ win->setShortcut(Qt::META);
+ win->setCheckable(true);
+ mod_tab->addAction(win);
+ alt = new QAction(tr("Alt"), this);
+ alt->setShortcut(Qt::ALT);
+ alt->setCheckable(true);
+ mod_tab->addAction(alt);
+ tabwidget->addTab(mod_tab, tr("Modifiers"));
+
+ //movement/text editing keys
+ ActionTab *other_tab = new ActionTab(this);
+ other_tab->addAction(tr("Insert"), Qt::Key_Insert);
+ other_tab->addAction(tr("Delete"), Qt::Key_Delete);
+ other_tab->addAction(tr("Backspace"), Qt::Key_Backspace);
+ other_tab->addAction(tr("Home"), Qt::Key_Home);
+ other_tab->addAction(tr("End"), Qt::Key_End);
+ tabwidget->addTab(other_tab, tr("Editing"));
+
+ //F1-F12
+ ActionTab *fx_tab = new ActionTab(this);
+ for(int i = 1; i<=12; i++)
+ fx_tab->addAction(tr("F%1").arg(i), QString("F%1").arg(i));
+ tabwidget->addTab(fx_tab, tr("F1-F12"));
+
+ //Misc
+ ActionTab *misc_tab = new ActionTab(this);
+ misc_tab->addAction(tr("Pause"), QString("Pause"));
+ misc_tab->addAction(tr("Print"), QString("print"));
+ misc_tab->addAction(tr("Menu"), QString("Menu"));
+ misc_tab->addAction(tr("Ctrl+Alt+Del"), QString("Ctrl+Alt+Delete"));
+ misc_tab->addAction(tr("Ctrl+Alt+Backspace"), QString("Ctrl+Alt+Backspace"));
+ tabwidget->addTab(misc_tab, tr("Misc"));
+
+ QVBoxLayout *layout = new QVBoxLayout();
+ layout->addWidget(tabwidget);
+ setLayout(layout);