Lars Gullik Bjønnes a écrit :
This patch replaces several of workarea signals with direct function
calls into BufferView.
This means that the dependency direction is changed, now the frontend
depend on the core and not the other way around. (IMO more correct)
As a added bonues this should be a bit faster as well...
Will go in shortly, but comments are appreciated.
NB: Qt4 files have been updated, but not tested. So changes might be needed.
This patch goes in to fix compilation of Qt4.
Abdel
Index: QWorkArea.C
===================================================================
--- QWorkArea.C (revision 13671)
+++ QWorkArea.C (working copy)
@@ -19,7 +19,7 @@
#include "lcolorcache.h"
#include "qt_helpers.h"
-
+#include "BufferView.h"
#include "debug.h"
#include "funcrequest.h"
#include "LColor.h"
@@ -230,7 +230,10 @@
void QWorkArea::haveSelection(bool own) const
{
- wa_ptr = this;
+ // static_cast is not possible here
+ // wa_ptr = static_cast<QWorkArea*>(this);
+ /// \todo ask X11 and MAC devels why this wa_ptr is useful.
+ wa_ptr = (QWorkArea*)(this);
if (!QApplication::clipboard()->supportsSelection())
return;