summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews
Commit message (Collapse)AuthorAgeFilesLines
* Fixed crash in tst_qitemview.Gabriel de Dietrich2009-08-061-1/+2
| | | | | | QAbstractItemViewPrivate::selectionModel may be null. Reviewed-by: olivier
* Merge commit 'origin/4.5'Rohan McGovern2009-08-061-0/+7
|\ | | | | | | | | | | | | | | Conflicts: src/gui/dialogs/qfiledialog.cpp src/gui/dialogs/qfiledialog_win.cpp tests/auto/qicoimageformat/tst_qicoimageformat.cpp tests/auto/qscriptqobject/qscriptqobject.pro
| * Fixes hangup when pressing key in QListWidgetOlivier Goffart2009-08-051-0/+7
| | | | | | | | | | | | | | | | | | If there is severals matching items but all of them are disabled, it would have produced an infinite loop. Block the loop once we reach an already matched item. Task-number: 258949 Reviewed-by: Thierry
* | ItemViews: make it possible for chekcable items to get partiallyCheckedThierry Bastian2009-08-052-2/+13
| | | | | | | | | | | | | | Previously it was only switching between checked and unchecked. Task-number: 259008 Reviewed-by: ogoffart
* | Fixed bug where Q[Styled]ItemDelegate edition wouldn't terminate whenGabriel de Dietrich2009-08-042-13/+2
| | | | | | | | | | | | | | | | | | the item lost focus to an unrelated dialog. The tests against the active modal window was unnecessary. Task-number: 257859 Reviewed-by: olivier
* | Fixes selectionModel::hasSelection return value after model::resetLeonardo Sobral Cunha2009-08-041-0/+1
| | | | | | | | | | | | | | | | | | | | After resetting the model, the selectionModel::hasSelection() of the view should return false. Fixed the corresponding autotest, which was wrong. Task-number: 256502 Reviewed-by: thierry
* | Revert "Small simplification of code in ItemViews (delegate)"Olivier Goffart2009-07-312-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 95560abfdd3a1755b69f238eff2954d164dff6a5. Fix comboboxes used as editor. isAncestor() stops at windows. we want to go tought the whole widget chain, including parent windows Use case: examples/itemviews/coloreditorfactory/coloreditorfactory Task-number: 259034
* | Fixes doc typos and indentation in abstractitemview & itemselectionmodelLeonardo Sobral Cunha2009-07-282-238/+236
| | | | | | | | Reviewed-by: Trustme
* | Doc: Replace links to obsolete APIs.Volker Hilsheimer2009-07-253-6/+6
| |
* | #215745 Doc Change, virtual function (operator) called from constructorPeter Yard2009-07-241-1/+22
| |
* | doc: Changed several \reimp to \internalMartin Smith2009-07-201-1/+1
| | | | | | | | The base function was \internal pr private.
* | Merge commit 'origin/4.5'Oswald Buddenhagen2009-07-202-2/+40
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebCore/ChangeLog src/3rdparty/webkit/WebCore/generated/JSDOMWindow.cpp src/3rdparty/webkit/WebCore/page/DOMWindow.idl src/corelib/io/qdiriterator.cpp src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h tests/auto/qxmlquery/tst_qxmlquery.cpp tools/linguist/lconvert/main.cpp
| * Fix accidental selection of popup items under the mouse in QComboBoxmae2009-07-171-0/+2
| | | | | | | | | | | | | | | | | | | | If the widget under mouse is hidden, Qt can generate a synthetic mouse move event which gets delivered to the already hidden widget. This can then result in the wrong item being selected. Workaround: in QListView, ignore mouse move events when the widget is hidden. Reviewed-by: Denis
| * Enhanced QDirModel documentationMarkus Goetz2009-07-171-1/+4
| | | | | | | | Reviewed-by: Volker Hilsheimer
| * Better caching of file system icon providers.Norwegian Rock Cat2009-07-161-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | It turns out that we weren't doing any caching of icons provided by the file system. We now use the similar trick that's used on Windows which does some caching on the file extension. We do fill up the cache needlessly with extra information (16, 32, 64, and 128) icons. We probably could be better with a iconRef engine that generates these sizes on demand. Still performance is 100% better with this which means using it in itemviews works. Reviewed-by: Jens Bache-Wiig
* | Fix for selection with Shift-Arrow/Shift-Click in QListView's IconModeFrank Reininghaus2009-07-171-2/+8
| | | | | | | | | | | | | | | | | | | | | | This addresses the selection of items using Shift-Arrow or Shift-Click in QListView's IconMode if the items are in a grid layout. In the case that the items do not have the same size (e.g., because their text is wrapped), this commit prevents the unexpected selection of additional items. New unit tests are included. Merge-request: 666 Reviewed-by: Olivier Goffart
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtMarius Bugge Monsen2009-07-174-28/+31
|\ \
| * | Move QMacStyle icon handling down to the common style.Norwegian Rock Cat2009-07-171-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is more follow the cue of what is done on X11, mainly, if you are creating things like messageboxes or file views, you want them to follow the desktop (yes, you do). If you disable desktop settings aware, you get the old look. This also meant shifting around some functions into qt_cocoa_helpers_mac to make them more readily available instead of living in differnt files. People who use standard pixmap get the old values, but I think that's fine. If you haven't moved onto standardIcon (introduced in 4.1), you don't get the latest bling. Review-by: Jens Bache-Wiig
| * | Fixes: ItemView text editor is not visible with empty text and iconsOlivier Goffart2009-07-171-1/+5
| | | | | | | | | | | | | | | | | | | | | It was not visible wicause its height was 0 Task-number: 257481 Reviewed-by: mbm
| * | ItemViews: don't commit data from editors when hiding the viewThierry Bastian2009-07-162-2/+2
| | | | | | | | | | | | Task-number: 258106
| * | Small simplification of code in ItemViews (delegate)Thierry Bastian2009-07-162-12/+6
| | |
| * | QTreeView: fix the scrollTo with position center and bottomThierry Bastian2009-07-161-10/+14
| | | | | | | | | | | | | | | | | | This still needs to be autotested Task-number: 258225
* | | Fixes: Do not create a mapping for filtered items in QSortFilterProxyModel.Marius Bugge Monsen2009-07-171-16/+26
|/ / | | | | | | | | Task: 258227 Details: This patch fixes the problem where items that are filtered, can sometime still have a mapping. This creates a problem when they become visible again, and the outdated mapping already exists.
* | Build fix for mingwThierry Bastian2009-07-141-3/+2
| | | | | | | | | | we should include qt_windows.h and not windows.h because we have to define WINVER to 0x500.
* | QTreeView: now dragging lots of items is fastThierry Bastian2009-07-134-2/+47
| |
* | QListView: small refactoringThierry Bastian2009-07-112-67/+61
| | | | | | | | It is useless to store the vector of modelindex from intersectingSet
* | ItemViews selection: improve performance of QItemSelection::indexesThierry Bastian2009-07-111-12/+23
| | | | | | | | On windows it makes it 2x faster
* | ItemViews: make dragging faster when lots of items are selectedThierry Bastian2009-07-114-11/+55
| | | | | | | | | | | | | | QListView know exactly what they have on their viewport and we only paint items clipped to the viewport. So we don't need to ask for each item its visualRect. NB: QTreeView and QTableView probably deservee the same treatment
* | QListView: improve performance on QListView::selectedIndexesThierry Bastian2009-07-101-7/+9
| | | | | | | | Task-number: 233342
* | ItemViews: make the pixmap from drag and drop more efficientThierry Bastian2009-07-102-14/+21
| | | | | | | | | | | | | | We don't need to draw all the items that are selected. We just need those whose rect intersects the one from the viewport. Task-number: 233342
* | QTableView: auto-scrolling could be broken by invisible sectionsThierry Bastian2009-07-101-2/+2
| | | | | | | | Task-number: 248688
* | QTableView: horizontal scrollbar could be inoperent with big columnsThierry Bastian2009-07-101-0/+4
| | | | | | | | Task-number: 240266
* | Compile fix.Denis Dzyubenko2009-07-091-0/+1
| |
* | Fix compile issueThierry Bastian2009-07-093-13/+20
| |
* | QTreeView: cleanup of useless private slotsThierry Bastian2009-07-093-47/+20
| | | | | | | | currentChange is slot in the public class (QAbstractItemView
* | QTreeView: use QVariantAnimation over QTimeLineThierry Bastian2009-07-094-67/+55
| |
* | Animations: fix compilation with QT_NO_ANIMATIONThierry Bastian2009-07-082-1/+13
| |
* | ItemViews: _q_fetchMore now uses a timer instead of invokeMethodThierry Bastian2009-07-073-6/+9
| |
* | QColumnView: new uses QPropertyAnimation over QTimeLineThierry Bastian2009-07-072-22/+9
| |
* | QColumnView: didn't react to addition of rows/cols in the current viewThierry Bastian2009-07-076-17/+60
| | | | | | | | Task-number: 246999
* | ItemViews: it would go into DraggingState even without clicking an itemThierry Bastian2009-07-071-1/+1
| | | | | | | | | | | | | | We now just make sure that we start the drag if there was a pressed index. Task-number: 252643
* | QHeaderView::sizeHint: small bug fix and refactorThierry Bastian2009-07-061-5/+5
| |
* | QHeaderView: code cleanup in sizehint calculationThierry Bastian2009-07-031-9/+3
| |
* | QHeaderView: fixed the sizeHint with hidden sectionsThierry Bastian2009-07-031-4/+8
| | | | | | | | | | | | | | We used to check the 100 first sections and 100 last sections Now we make sure we check 100 visible sections Task-number: 255574
* | QHeaderView: the sizeHint for section now takes the indicator intoThierry Bastian2009-07-021-1/+1
| | | | | | | | | | | | account for all sections is sorting is enabled. Task-number: 208320
* | Merge branch '4.5'Thiago Macieira2009-07-022-2/+2
|\ \ | |/
| * Doc: correcting typoMorten Engvoldsen2009-07-012-2/+2
| | | | | | | | | | | | Correcting typos Task-number: 257225
* | doc: Corrected several qdoc warnings.Martin Smith2009-07-021-1/+1
| |
* | src/gui: Remove QT_WA and non-Unicode code paths, dropping Win9x and NT supportminiak2009-07-011-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Also - Make winPeekMessage() & winPostMessage() obsolete - FlashWindowEx, IsValidLanguageGroup functions no longer resolved dynamically (available on >= Windows 2000) - LoadIcon/LoadCursor -> LoadImage w/LR_SHARED for system icons/cursors - qsystemtrayicon_win: use Shell_NotifyIconGetRect if available (Windows 7) Merge-request: 604 Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
* | ItemViews: Fixed signal entered not being emitted when using the mouseThierry Bastian2009-07-012-33/+42
| | | | | | | | | | | | | | | | | | | | wheel The solution is to check the the current "entered item" hasn't change also when the scrollbars change values Task-number: 200665 Reviewed-by: janarve