┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontextmenu.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-09-20 19:52:40 +0000
committerPeter Penz <[email protected]>2010-09-20 19:52:40 +0000
commitc7e8c4af3dbcec9973a161c319fcd63fd1086f23 (patch)
treeab9b3374638b1be7352b9329b9ca0329f43d9710 /src/dolphincontextmenu.h
parent4822c2cc3bcdc70d73bb76dd627b04312d463265 (diff)
Workaround for a X11-issue in combination with KModifierKeyInfo: When constructing KModifierKeyInfo in the constructor of the context menu, the user interface might freeze. Thanks to Mark Gaiser for clarifying this with the KModifierKeyInfo maintainer and testing the workaround!
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=1177658
Diffstat (limited to 'src/dolphincontextmenu.h')
-rw-r--r--src/dolphincontextmenu.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/dolphincontextmenu.h b/src/dolphincontextmenu.h
index ff8d13210..028dc4649 100644
--- a/src/dolphincontextmenu.h
+++ b/src/dolphincontextmenu.h
@@ -77,6 +77,17 @@ public:
/** Opens the context menu model. */
void open();
+ /**
+ * TODO: This method is a workaround for a X11-issue in combination
+ * with KModifierKeyInfo: When constructing KModifierKeyInfo in the
+ * constructor of the context menu, the user interface might freeze.
+ * To bypass this, the KModifierKeyInfo is constructed in DolphinMainWindow
+ * directly after starting the application. Remove this method, if
+ * the X11-issue got fixed (contact the maintainer of KModifierKeyInfo for
+ * more details).
+ */
+ static void initializeModifierKeyInfo();
+
private slots:
/**
* Is invoked if a key modifier has been pressed and updates the context
@@ -155,8 +166,9 @@ private:
QScopedPointer<KMenu> m_popup;
bool m_shiftPressed;
- KModifierKeyInfo m_keyInfo;
QAction* m_removeAction; // Action that represents either 'Move To Trash' or 'Delete'
+
+ static KModifierKeyInfo* m_keyInfo;
};
#endif