On Jan 6, 2014, at 11:38 AM, Marc Mutz <[email protected]> wrote:

> On Thursday 02 January 2014 21:04:27 Jiergir Ogoerg wrote:
>> buffer() // getter
>> buffer_set(..) // setter
>> BufferSupportsFind() // bool
>> 
>> selection() // getter
>> SelectionMove(..) // move selection
>> selection_set(..) // setter
>> SelectionUnset(...) // unset something
> 
> You might find the std policy of having the same name for getter and setter 
> (differing in constness and argument count) interesting, then:
> 
> off_t pos = buffer.pos();
> buffer.pos(pos + 1);

Urgs, so sacrificing sensible/natural method names for the sake of having 
property-related methods next to each other when they are alphabetically sorted?

Btw, in Qt Creator’s locator you get all 
buffer/setBuffer/hasBuffer/isBufferEnabled methods when you type just “. 
buffer” ;)

-- 
Eike Ziller, Senior Software Engineer - Digia, Qt
 
Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 
144331 B

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to