Qt-interest Archive, January 2007
what do this piece of code?
Message 1 in thread
Hello,
First I'm sorry by my english.
I need to Know something.
what do this piece of code?
QTable::selection(0).isEmpty();
The full code is:
QTableSelection Spreadsheet::selection()
{
if (QTable::selection(0).isEmpty())
return QTableSelection(currentRow(), currentColumn(),
currentRow(), currentColumn());
return QTable::selection(0);
}
Thank you.
Regards.
--
[ signature omitted ]
Message 2 in thread
On Friday 19 January 2007 11:25, GONZALEZ DE LA VEGA, CARLOS wrote:
> Hello,
> First I'm sorry by my english.
>
> I need to Know something.
> what do this piece of code?
> QTable::selection(0).isEmpty();
>
> The full code is:
> QTableSelection Spreadsheet::selection()
> {
> if (QTable::selection(0).isEmpty())
> return QTableSelection(currentRow(), currentColumn(),
> currentRow(), currentColumn());
> return QTable::selection(0);
> }
Qt documentation is available online at http://doc.trolltech.com/
This particular method is documented at
http://doc.trolltech.com/3.3/qtable.html#selection
--
[ signature omitted ]