[prev in list] [next in list] [prev in thread] [next in thread]
List: ktexteditor-devel
Subject: Re: SmartRangeNofifier::caretExitedRange
From: Dominik Haumann <dhdev () gmx ! de>
Date: 2007-10-09 22:41:14
Message-ID: 200710100041.14347.dhdev () gmx ! de
[Download RAW message or body]
On Tuesday 09 October 2007, Anders Lund wrote:
> On Tuesday 09 October 2007, Anders Lund wrote:
> > Shouldn't the View implementation emit the signal? Grepping around in
> > the KTextEditor folder doesn't reveal it being submitted from anywhere
> > (nor does grepping in kdelibs/kate)...
>
> I tried to do this in KateViewInternal::dynamicMove, like this:
>
> foreach(KTextEditor::SmartRangeNotifier* n,
> exitedRange->notifiers()) emit n->caretExitedRange( m_view, exitedRange
> );
>
> but that leaves to warnings about the signal being protected 'in this
> context' as gcc puts it.
You can connect signals to signals, that is, adding a forward signal to
KateViewInternal and connecting all affected rangnes signal should work.
Reading the Qt documentation, maybe you can use QMetaObject::invokeMethod.
I don't know the right way to do it and have never used invokeMethod so
far...
Dominik
_______________________________________________
KTextEditor-Devel mailing list
KTextEditor-Devel@kde.org
https://mail.kde.org/mailman/listinfo/ktexteditor-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic