diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2008-08-15 02:05:33 +0400 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2008-08-15 02:05:33 +0400 |
commit | 764487e3fb697b7643a29ffa185f2c49d0a252ce (patch) | |
tree | b471ce86aa18db5496acc03b7d6058b0278034a1 | |
parent | be7961f3a418e45e271cd2734a410e5480a30408 (diff) |
Add suppression for XEvie and fix Qt4.4ism for context menu
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1227 05730e5d-ab1b-0410-a4ac-84af385074fa
-rw-r--r-- | src/mumble/GlobalShortcut_unix.cpp | 4 | ||||
-rw-r--r-- | src/mumble/GlobalShortcut_unix.h | 1 | ||||
-rw-r--r-- | src/mumble/MainWindow.cpp | 4 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/mumble/GlobalShortcut_unix.cpp b/src/mumble/GlobalShortcut_unix.cpp index e3eb3f303..d55fc3b37 100644 --- a/src/mumble/GlobalShortcut_unix.cpp +++ b/src/mumble/GlobalShortcut_unix.cpp @@ -108,6 +108,10 @@ GlobalShortcutX::~GlobalShortcutX() { wait(); } +bool GlobalShortcutX::canSuppress() { + return bXevie; +} + void GlobalShortcutX::run() { fd_set in_fds; XEvent evt; diff --git a/src/mumble/GlobalShortcut_unix.h b/src/mumble/GlobalShortcut_unix.h index 6bdedfb1f..f3fbae419 100644 --- a/src/mumble/GlobalShortcut_unix.h +++ b/src/mumble/GlobalShortcut_unix.h @@ -45,6 +45,7 @@ class GlobalShortcutX : public GlobalShortcutEngine { ~GlobalShortcutX(); void run(); QString buttonName(const QVariant &); + virtual bool canSuppress(); public slots: void inputReadyRead(int); void directoryChanged(const QString &); diff --git a/src/mumble/MainWindow.cpp b/src/mumble/MainWindow.cpp index 33738816f..2a26cfcd5 100644 --- a/src/mumble/MainWindow.cpp +++ b/src/mumble/MainWindow.cpp @@ -335,7 +335,11 @@ void MainWindow::on_qtvPlayers_doubleClicked(const QModelIndex &idx) { } void MainWindow::on_qteLog_customContextMenuRequested(const QPoint &mpos) { +#if QT_VERSION >= 0x040400 QMenu *menu = qteLog->createStandardContextMenu(mpos); +#else + QMenu *menu = qteLog->createStandardContextMenu(); +#endif menu->addSeparator(); menu->addAction(tr("Clear"), qteLog, SLOT(clear(void))); menu->exec(qteLog->mapToGlobal(mpos)); |