Permalink
Browse files

Fixed #51 QxtGlobalShortcut doesn't send signal

  • Loading branch information...
1 parent 4ecc2af commit 15e45d13f0ba110a806692932b24152bdead9a81 jpnurmi committed Nov 26, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/gui/qxtglobalshortcut_mac.cpp
  2. +1 −1 tests/other/app/mainwindow.cpp
@@ -53,7 +53,7 @@ quint32 QxtGlobalShortcutPrivate::nativeModifiers(Qt::KeyboardModifiers modifier
{
quint32 native = 0;
if (modifiers & Qt::ShiftModifier)
- native |= shiftKeyBit;
+ native |= shiftKey;
if (modifiers & Qt::ControlModifier)
native |= cmdKey;
if (modifiers & Qt::AltModifier)
@@ -33,7 +33,7 @@ MainWindow::MainWindow(QWidget* parent, Qt::WindowFlags flags)
QxtGlobalShortcut* shortcut = new QxtGlobalShortcut(this);
connect(shortcut, SIGNAL(activated()), this, SLOT(toggleVisibility()));
- QKeySequence key("Ctrl+Alt+S");
+ QKeySequence key("Ctrl+Shift+Alt+S");
if (shortcut->setShortcut(key))
ui.labelVisibility->setText(ui.labelVisibility->text().arg(key.toString(QKeySequence::NativeText)));
else

0 comments on commit 15e45d1

Please sign in to comment.