Hi,

I am trying to implement indent left feature in a text editor. ( I am using Qt 3.3.2 ).
I have implemented it, but it is dead slow.
I tried implementing this feature in 3 ways.

1.
With the help of getSelection I get the paraFrom and paraTo.
I take one line ( para ) at a time. Process it. I.e, removing required blank spaces.
And then, remove that para ( the old one with blank spaces ) and insert a new one with insertPara .

Efficiency : very very poor

2. I used cursor and keyboard actions using moveCursor and doKeyboardActions function.
And tried to removing blank spaces directly hence avoiding insertPara and removePara functions

Efficiency : very poor

3. I get the selected text, process it, set it back using insert command ( instead of doing line by line).
Efficiency : poor

Now, i wonder how can i make it efficient!
Thanks in advance.