Репозитории ALT
S: | 4.8.7-alt25 |
5.1: | 4.6.3-alt1.M51.1 |
4.1: | 4.4.3-alt1.M41.1 |
4.0: | 4.3.4-alt5.M40.1 |
3.0: | 4.0.1-alt1 |
+updates: | 4.0.1-alt2 |
+backports: | 4.2.3-alt7.1.M30 |
Группа :: Система/Библиотеки
Пакет: qt4
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: qt-4.0.1-alt-qmenubar-key_f10.patch
Скачать
Скачать
diff -Naur qt-x11-opensource-src-4.0.1-orig/src/gui/widgets/qmenubar.cpp qt-x11-opensource-src-4.0.1/src/gui/widgets/qmenubar.cpp
--- qt-x11-opensource-src-4.0.1-orig/src/gui/widgets/qmenubar.cpp 2005-08-16 12:41:11 +0400
+++ qt-x11-opensource-src-4.0.1/src/gui/widgets/qmenubar.cpp 2005-10-22 21:29:38 +0400
@@ -1137,6 +1137,24 @@
}
}
+ // Sergey A. Sukiyazov <sukiyazov@mail.ru>
+ // Make behavior like Gtk2 applications. Activate first menu in menubar (if present)
+ // by pressing F10 or Super_L/R (Win_L/R)
+ if(event->type()==QEvent::KeyRelease) {
+ QKeyEvent *kev = static_cast<QKeyEvent*>(event);
+
+ if(kev->key() == Qt::Key_F10) {
+ QAction *act = d->actionList.at(0);
+
+ if (act) {
+ d->setCurrentAction(act);
+ if(act->menu()) {
+ d->popupAction(act, true);
+ }
+ }
+ }
+ }
+
return false;
}