diff options
author | Timothy Pearson <[email protected]> | 2011-12-05 22:04:08 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-05 22:04:08 -0600 |
commit | e02e31c8b9d854cd62cbe9799228f6e08e882773 (patch) | |
tree | 53303c981d0b20e03c5a2fc8e959fa74adcb90d1 /src/table | |
parent | 143f194af098d44bf0dd1ebb29e59f30ce48d523 (diff) | |
download | tqt3-e02e31c8b9d854cd62cbe9799228f6e08e882773.tar.gz tqt3-e02e31c8b9d854cd62cbe9799228f6e08e882773.zip |
Sync with latest script
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/qtable.cpp | 10 | ||||
-rw-r--r-- | src/table/qtable.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/table/qtable.cpp b/src/table/qtable.cpp index b48d8dd14..5f8ba78a0 100644 --- a/src/table/qtable.cpp +++ b/src/table/qtable.cpp @@ -18,7 +18,7 @@ ** and the KDE Free TQt Foundation. ** ** Please review the following information to ensure GNU General -** Public Licensing retquirements will be met: +** Public Licensing requirements will be met: ** http://trolltech.com/products/qt/licenses/licensing/opensource/. ** If you are unsure which license is appropriate for your use, please ** review the following information: @@ -1782,7 +1782,7 @@ TQSize TQCheckTableItem::sizeHint() const There are two approaches to populating the table's cells. The first and simplest approach is to use TQTableItems or TQTableItem subclasses. The second approach doesn't use TQTableItems at all - which is useful for very large sparse tables but retquires you to + which is useful for very large sparse tables but requires you to reimplement a number of functions. We'll look at each approach in turn. @@ -1790,14 +1790,14 @@ TQSize TQCheckTableItem::sizeHint() const a new TQTableItem for the cell if one doesn't already exist, and displays the text in it. By default the table item's widget will be a TQLineEdit. A pixmap may be put in a cell with setPixmap(), - which also creates a table item if retquired. A cell may contain \e + which also creates a table item if required. A cell may contain \e both a pixmap and text; the pixmap is displayed to the left of the text. Another approach is to construct a TQTableItem or TQTableItem subclass, set its properties, then insert it into a cell with setItem(). If you want cells which contain comboboxes use the TQComboTableItem - class. Similarly if you retquire cells containing checkboxes use + class. Similarly if you require cells containing checkboxes use the TQCheckTableItem class. These table items look and behave just like the combobox or checkbox widgets but consume far less memory. @@ -1841,7 +1841,7 @@ TQSize TQCheckTableItem::sizeHint() const inefficient. The solution is to \e draw the cell as it should appear and to create and destroy cell editors on demand. - This approach retquires that you reimplement various functions. + This approach requires that you reimplement various functions. Reimplement paintCell() to display your data, and createEditor() and setCellContentFromEditor() to support in-place editing. It is very important to reimplement resizeData() to have no diff --git a/src/table/qtable.h b/src/table/qtable.h index 5bd89d15b..1f4f7bac1 100644 --- a/src/table/qtable.h +++ b/src/table/qtable.h @@ -18,7 +18,7 @@ ** and the KDE Free TQt Foundation. ** ** Please review the following information to ensure GNU General -** Public Licensing retquirements will be met: +** Public Licensing requirements will be met: ** http://trolltech.com/products/qt/licenses/licensing/opensource/. ** If you are unsure which license is appropriate for your use, please ** review the following information: |