summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews
Commit message (Collapse)AuthorAgeFilesLines
* Compile fixThierry Bastian2009-05-251-1/+1
|
* Fixed 'crazy' warnings about using a string instead of a characterThierry Bastian2009-05-254-5/+4
| | | | | | | Wherever I found that we were using a string instead of a single char I fixed the code. Reviewed-by: olivier
* Merge branch '4.5'Thiago Macieira2009-05-222-2/+4
|\ | | | | | | | | Conflicts: src/corelib/kernel/qsharedmemory_unix.cpp
| * Pressing enter in a QPlainTextEdit embedded on a itemview should insert a ↵Olivier Goffart2009-05-222-2/+4
| | | | | | | | | | | | | | | | | | | | newline Do the same special case as for QTextEdit (yes, this is a pitty that we have special cases like that Reviewed-by: Thierry Task-number: 252532
* | Merge branch '4.5' of ../qt-45-documentationDavid Boddie2009-05-202-4/+4
|\ \ | |/
| * Revert focus apparance on itemviews for X11Jens Bache-Wiig2009-05-201-3/+3
| | | | | | | | | | | | | | | | | | | | We changed this primarily for the mac as active appearance on widgets in itemviews should depend on the window activation state and not on the focus widget. It was explicitly added back for windows only but has been reported as a bug on X11 as well so we might as well keep it mac-only for now. Reviewed-by: mortens
| * Fix a typo in the class documentation for QItemDelegateAndy Shaw2009-05-201-1/+1
| |
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-05-192-2/+2
|\ \ | |/
| * Fix some typos in the documentation.Frederik Schwarzer2009-05-182-2/+2
| | | | | | | | | | | | Usually, "the the" is not proper English Reviewed-By: Thiago Macieira
* | Remove useless code and comment in QTreeViewOlivier Goffart2009-05-141-4/+0
| | | | | | | | | | | | In 8cd19116ae81c99fe28fbf91aa7f4c1c08163fe0 we changed viewItems to always contains the index to the columns 0, even if this columns is hidden. So this code and comment are now useless.
* | Fixes missing translations in QFileIconProviderJens Bache-Wiig2009-05-141-8/+4
| | | | | | | | | | | | | | | | While lupdate ignores ifdefs, it cannot handle ifdefs inside the translate statement itself. Task-number: 188337 Reviewed-by: janarve
* | QListView was assuming that selected indexes were always children ofThierry Bastian2009-05-121-2/+6
| | | | | | | | | | | | | | | | | | | | their root. This can be different. ...especially if one manages the selection by program or if you share the selection model with a treeview. Task-number: 196118 Reviewed-by: ogoffart
* | The editor geometry in item views is not correctly updated when 1stThierry Bastian2009-05-121-1/+1
| | | | | | | | | | | | | | | | | | | | shown The problem is that it gets the previous geometry of the cell whereas its own sizeHint might lead to change the geometry of the cell. Task-number: 253109 Reviewed-by: ogoffart
* | Almost 200 symbols that didn't need to be exported.Thierry Bastian2009-05-111-1/+1
| |
* | spanning columns did not have ViewItemPosition ↵Olivier Goffart2009-05-071-1/+1
| | | | | | | | | | | | | | | | | | QStyleOptionViewItemV4::OnlyOne set The new autotest tests lots of the flags of the QStyleOption Reviewed-by: Thierry Task-number: 252616
* | Merge branch '4.5' of git@scm.dev.troll.no:qt/qtSimon Hausmann2009-05-061-3/+4
|\ \ | |/ | | | | | | | | Conflicts: src/gui/kernel/qcocoaview_mac_p.h src/gui/widgets/qmainwindow.cpp
| * QListView in icon mode could crash when removing the last elementThierry Bastian2009-05-051-3/+4
| | | | | | | | | | Task-number: 252292 Reviewed-by: ogoffart
* | QTreeView could be not correctly updated when the 1st column is hidden.Thierry Bastian2009-05-061-26/+12
| | | | | | | | | | | | | | | | | | | | The problem was that we were not always storing the modelindex in column 0 for each QTreeViewItem. That was causing inconsistencies. Now it is always the case. It allowed to remove some calls to QModelIndex::sibling. Task-number: 239271 Reviewed-by: ogoffart
* | Accept the event when doing keyboard search on a itemview.Olivier Goffart2009-05-051-4/+5
| | | | | | | | | | | | | | | | | | | | This is required for KHTML Patch by David Faure (the test is not really related) Reviewed-by: Thierry Task-number: 252912
* | Merge commit 'origin/4.5'Olivier Goffart2009-05-043-9/+26
|\ \ | |/ | | | | | | Conflicts: src/gui/itemviews/qabstractitemview.cpp
| * Do not crash when passing wrong indexes to ↵Olivier Goffart2009-05-041-0/+9
| | | | | | | | | | | | | | | | | | QSortFilterProxyModel::indexFomSource and *ToSource Show a warning instead Task-number: 252507 Reviewed-by: Marius Bugge Monsen
| * Fixes a possible issue in itemviws where we would not scroll to theThierry Bastian2009-04-302-10/+17
| | | | | | | | | | | | | | current item on show Task-number: 252534 Reviewed-by: ogoffart
* | QDirModel now uses the same translations as QFileSystemModel toThierry Bastian2009-04-301-5/+6
| | | | | | | | | | | | represent sizes Task-number: 251703
* | introduce Q_WS_WINCEMaurice Kalinowski2009-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | Task-number: 246130 Reviewed-by: joerg Introduce Q_WS_WINCE for Windows CE only windowing parts. So far we decided to stick with Q_WS_WIN32, but having a separate define makes the code more readable. In addition Q_WS_WINCE_WM is available for Windows Mobile only parts, where we do not check for the OS on runtime.
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-04-292-11/+11
|\ \ | |/
| * Fix regression in QSelectionModel::rowIntersectsSelectionOlivier Goffart2009-04-281-10/+10
| | | | | | | | | | | | | | | | | | | | and QSelectionModel::columnsIntersectsSelection The documentation says "if one is selected" inside the row/column, so we need to look over if we find one which is selected Task-number: 252069 Reviewed-by: Marius Bugge Monsen
| * When minimizing/restoring an item view it could jump to its currentlyThierry Bastian2009-04-281-1/+1
| | | | | | | | | | | | | | selected item Task-number: 250446 Reviewed-by: ogoffart
* | QSortFilterProxyModel: remove the mapping of the child that are filtered awayOlivier Goffart2009-04-271-15/+36
| | | | | | | | | | | | | | when the filter change Task-Number: relates to 251296 Reviewed-by: Marius Bugge Monsen
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-04-202-8/+26
|\ \ | |/ | | | | | | Conflicts: src/gui/itemviews/qheaderview_p.h
| * Display error with QTableView with custom default row heightThierry Bastian2009-04-172-8/+26
| | | | | | | | | | | | | | QHeaderView can sometimes display holes when using default row height Task-number: 248050 Reviewed-by: ogoffart
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-04-171-4/+17
|\ \ | |/ | | | | | | Conflicts: tests/auto/qpainterpath/tst_qpainterpath.cpp
| * CompileOlivier Goffart2009-04-161-1/+1
| | | | | | | | Reviewed-by: TrustMe
| * QSortFilterProxyModel: In dynamic filter model, childs of temporarlyOlivier Goffart2009-04-161-1/+13
| | | | | | | | | | | | | | | | | | | | filtered items are not correctly updated. when filtering away a row, we should remove all the mapping of the children Task-number: 251296 Reviewed-by: Marius Bugge Monsen
| * Fix crash in the SQLQueryModel testsOlivier Goffart2009-04-161-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | Amend fd5f83e612729cebc5395c992bd98628bb9ea25f calling fetchMore in create_mapping was a bad idea bacause it may lead to infinite recurtion Make a special case for hasChildren instead Task-number: 250023 Reviewed-by: Marius Bugge Monsen BT: yes
* | QTreeView automatic resize can be brokenThierry Bastian2009-04-162-20/+19
| | | | | | | | | | | | | | QTreeView sometimes autoresizes the wrong column Task-number: 210390 Reviewed-by: janarve
* | Merge commit 'origin/4.5'Olivier Goffart2009-04-153-0/+7
|\ \ | |/ | | | | | | Conflicts: src/gui/graphicsview/qgraphicsitem.cpp
| * Fixes QSortFilterProxyModel not reporting child if the model need to fetchMoreOlivier Goffart2009-04-151-0/+3
| | | | | | | | | | | | | | | | QSortFilterProxyModel::hasChildren need to construct the mapping. And when it tries to construct the mapping, it needs to fetch the childs, so there is none. Task-number: 250023 Reviewed-by: Marius Bugge Monsen
| * Fixes: QTreeView font change regression if there is an application stylesheetOlivier Goffart2009-04-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | The way font propagation work has changed since 4.4: When there is a stylesheet enabled, font does not propagate. So when settings a font to the QAbstractItemView, the viewport font will not change, and hence no QEvent::FontChange on it. So catch the QEvent::FontChange in QAbstractItemView::event in addition to QAbstractItemView::viewportEvent. (we seems to use the view's font everywhere anyway) Task-number: 250754 Reviewed-by: Jens Bache-Wiig
| * Fix crash in QTreeViewOlivier Goffart2009-04-141-0/+1
| | | | | | | | | | | | | | Discovered in Kopete trunk BT: yes Reviewed-by: Thierry
* | Speed up selectAll in QTreeView with spansOlivier Goffart2009-04-061-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | When we had spans, in order to have the selection rect, we took the slow path in all cases, even if the header section did not move. Now, take the fast path if the sections did not move. This requires few adjustement to the code: we cannot call visualRect anymore since the index may be within a span. Task-number: 244651 Reviewed-by: Marius Bugge Monsen
* | Sppedup QTreeView with spans.Olivier Goffart2009-04-062-147/+264
| | | | | | | | | | | | | | | | | | | | | | Introduce an index to lookup spans in a certain index in a logaritmic time instead of linear. Behaviour change include that it is no longer possible to have spans with height or with of 0 (but this made no sens anyway) Reviewed-by: Marius Bugge Monsen Task-number: 244651
* | Merge branch '4.5'Thiago Macieira2009-04-031-0/+1
|\ \ | |/
| * Fixes crash in QTreeView with QSortFilterProxyModelOlivier Goffart2009-04-031-0/+1
| | | | | | | | | | | | | | | | | | If we get an hover event while the model gets invalidated, we might ends up calling itemDecorationAt before the viewitem is refreshed. Can be reproduced in KTorrent (Relates to KDE bug 172198) or Kopete trunk Reviewed-by: Thierry
* | Remove all call in itemviews to set/updateDirtyRegionThierry Bastian2009-03-305-29/+24
|/ | | | | | | Now we directly call viewport->update Task-number: 248850 Reviewed-by: ogoffart
* Make sure the sorting is updated when dynamic sorting is enabled and the ↵Olivier Goffart2009-03-241-0/+5
| | | | | | | model is reset Task-number: 248868 (part 2) Reviewed-by: Thierry
* Make sure QSortFilterProxyModel::sort always sort when DynamicSort is not usedOlivier Goffart2009-03-241-1/+1
| | | | | Task-number: 248868 (part 1) Reviewed-by: Thierry
* Long live Qt 4.5!Lars Knoll2009-03-2367-0/+49104