summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Avoid PageFillGrid to segfault when a page is removedRafael Brandao2012-06-113-31/+5
| | | | | | | | | | | | | | | The problem was reproduced when you had 5 items (2 pages) and removed one item from the first page. Not sure the exact source of the problem but it seems to be Qt5-related (I'll try to reduce into a small test case). As this bug is critical, it's better to land as is and figure out the bug later. The fix is to change our Repeater to load the maximum number of pages, rather than creating as we need. I've also removed the previous behavior of empty slots and now all the pages are created once with empty slots and this layer is put behind the occupied slots. Reviewed-by: Marcelo Lira
* Updated the poor and broken test directory.Marcelo Lira2012-06-063-7/+20
| | | | | | | | | | | | | Also fixed the BookmarkModel, that was failing in two of the existing tests. BookmarkModel::insert method now also saves the timestamp of the saved bookmark. I'll not even talk about BookmarkModel::update method, it was missing everything. See the diff. Reviewed-by: Hugo Parente Lima
* TabsModel::remove should not emit a dataChanged signal, but it will anyways.Marcelo Lira2012-06-061-0/+12
| | | | | | | | | | | | | | | | | Calling "beginRemoveRows(...)" and "endRemoveRows()" methods should've been enough for the view to adapt to removal changes, instead of having to emit a "dataChanged(...)" signal as well. Nevertheless, The combined use of a QML Repeater item with RowsRangeFilter, our custom QSortFilterProxyModel, has showed unable to tackle the changes to the model, resulting in strange UI behavior. This may have something to do with QQuickRepeater::setModel() not connecting the model (our RowsRangeFilter) to the "destroyingItem(...)" signal, whose lines where commented out in qt5/qtdeclarative/src/quick/items/qquickrepeater.cpp since time immemorial (not shows on the git history). For now I just fixed the index of the last item in the range of altered items. Reviewed-by: Hugo Parente Lima
* TabsModel::remove should not emit a dataChanged signal.Marcelo Lira2012-06-051-2/+0
| | | | | | | | | | | | A dataChanged signal is not meant to be used when removing a row, because the inner workings of a model expect to operate over a still existing row, and insert it back on the model. Without this patch you can see Snowshoe crashing by opening 5 tabs (or any number whose modulo by 4 is 1; 4 is not magical, just the number of tabs per page on the paged grid) and closing one. Reviewed-by: Rafael Brandão
* Fix of build fixMarcelo Lira2012-06-051-1/+1
| | | | Reviewed-by: Trust me. No, seriously.
* Build fixHugo Parente Lima2012-06-051-1/+1
| | | | Reviewed-by: Trust me
* Shows correctly aligned empty slots when paged grid is empty.Marcelo Lira2012-06-041-1/+3
| | | | | | | | Before this fix an empty paged grid would show empty slots to the left, as if it was a previous empty page, and the slots in the central page would appear slightly unaligned. Reviewed-by: Rafael Brandão
* Added a thumbnail field to the BookmarksModel.Marcelo Lira2012-06-044-19/+20
| | | | | | | | | | At the moment it only returns a placeholder image, since we can't get web page thumbnails yet. Also changed the usage of "screenshot" in TabsModel to the more specific "thumbnail" term. Reviewed-by: Hugo Parente Lima
* Adds movement animation when items in the paged grid are removed.Marcelo Lira2012-06-041-0/+2
| | | | | Reviewed-by: Hugo Parente Lima Rafael Brandão
* Refactored TopSitesPanel component code to look more like TabsPanel.Marcelo Lira2012-06-041-13/+13
| | | | | | | | This makes things more regular and easy to change. Besides, seems aesthetically pleasant, and that's worth something. Reviewed-by: Hugo Parente Lima Rafael Brandão
* Transforms tab pager loose code into a proper component.Marcelo Lira2012-06-046-97/+133
| | | | | | | | | | | | Previously the code for the open tabs pager was sparsely found inside the NavigationPanel, this code was moved to a TabsPanel component, in an imitation of the TopSitesPanel component. The TabsPanel is now instantiated on Main, as a sibling of NavigationPanel, instead of residing inside it. Reviewed-by: Hugo Parente Lima Rafael Brandão
* Added more property changes to the transitions in the Main qml.Marcelo Lira2012-06-011-0/+9
| | | | | | That's for the sake of clarity. Reviewed-by: Trust me
* Removed transition that was looking bad.Marcelo Lira2012-06-011-2/+0
| | | | | | | | | | The transition dealt with the panel toggle and the plus button, they would slide out of the screen when not needed anymore. The transition lacked grace, and was there just because (not on any design spec), so it was removed in favor of the opacity fade already used everywhere else. Reviewed-by: Anderson Schimuneck
* Use maximum number of pages from UiConstants instead of magical numbers.Marcelo Lira2012-06-013-2/+6
| | | | Reviewed-by: Hugo Parente Lima
* Added new placeholder assets for tabs and top sites.Marcelo Lira2012-06-0119-38/+42
| | | | | | | These will be used while thumbnails of websites can not be used. Also removed assets obsoleted by these new ones. Reviewed-by: Hugo Parente Lima
* Removed unused assets.Marcelo Lira2012-06-014-3/+0
| | | | Reviewed-by: Hugo Parente Lima
* BookmarkModel insertion method must advertise it's actions.Marcelo Lira2012-06-011-0/+3
| | | | | | That's just polite, being it a model. Reviewed-by: Luciano Wolf
* The method createIndex is the peferred way to create valid QModelIndex objects.Marcelo Lira2012-06-012-6/+6
| | | | | | | | | | | | So says the Qt documentation, plus one less warning from QSortFilterProxyModel. For the healthly curious the warning was: "inconsistent changes reported by source model". And it happened when removing from top sites one item that was not the last. Reviewed-by: Luciano Wolf
* BookmarkModel should advertise when removing items.Marcelo Lira2012-05-301-0/+2
| | | | | | | With this fix our UI can respond to removal events in the bookmark storage. Reviewed-by: Rafael Brandão
* Blink the progress indicator outter circle, not the indicator itself on "pre ↵Hugo Parente Lima2012-05-301-2/+2
| | | | | | page load" state. Reviewed-by: Marcelo Lira
* Fixed tabs pager to automatically scroll out of an empty page.Marcelo Lira2012-05-301-0/+5
| | | | | | | | When the tabs pager has more than one page and the user closes all the tabs there, the pager should automatically scroll to the last page. Reviewed-by: Rafael Brandão
* Fix the top margin of TopSitesPanel after some asset changes.Hugo Parente Lima2012-05-301-1/+1
| | | | Reviewed-by: Luciano Wolf
* Modify grid's item overlay imageLuciano Wolf2012-05-304-1/+2
| | | | | | | Now using a smaller overlay since we don't have pin buttons any more on "Tabs" screen, just on "My Sites". Reviewed by: Marcelo Lira
* Removed the toolbar that shows tab indicators and url only.Marcelo Lira2012-05-301-23/+6
| | | | | | | | | | | | | Previously there was three states for the navigation toolbar in the bottom of the screen: 1. Only the tab indicators (the little circles). 2. The tab indicators and the url entry. 3. The tab indicators, the url entry and option buttons. The state #2 was removed for the sake of simplicity. Reviewed-by: Luciano Wolf
* Use new assets on PanelToggle bar and simplify a bit their logic.Hugo Parente Lima2012-05-297-50/+21
| | | | Reviewed-by: Rafael Brandão
* Fix a warning on TopSitesPanel.qml file.Luciano Wolf2012-05-291-2/+4
| | | | | | | It was complaining about a "Binding loop detected for property "visible"" on line 66. Now we use a property to link both components. Reviewed by: Hugo Parente
* Implement the toolbar relayout.Luciano Wolf2012-05-2919-70/+102
| | | | | | | | The new toolbar goes below navigation bar. Buttons added: "Share" and "Settings" Buttons modified: "Favorite" becomes "Pin" Reviewed by: Rafael Brandao
* Make PagedGrid support empty slot delegateRafael Brandao2012-05-296-24/+72
| | | | | | | | Put a page with empty slots behind the last page with actual items and also display a new one (also filled with empty slots) to the right of the last page when we didn't reach the limit of pages yet. Reviewed-by: Hugo Parente Lima
* Fix build caused by commit c855af4fc467c5d1a759724e584432e8f6cef466Hugo Parente Lima2012-05-281-1/+0
| | | | Reviewed-by: Trust me
* The WebView overlay is just a swipe area now.Marcelo Lira2012-05-282-66/+8
| | | | | | | | | | Swipe left and right to move through open tabs, click in the SwipeArea to go back to fullscreen view. The SwipeArea is in fact transparent, so the user will be under the impression of interacting with the WebView. Reviewed-by: Hugo Parente Lima
* Swiping the tab indicator bar to left and right moves through tabs.Marcelo Lira2012-05-281-4/+4
| | | | Reviewed-by: Hugo Parente Lima
* Add small side shadows to all screens.Hugo Parente Lima2012-05-283-0/+20
| | | | Reviewed-by: Marcelo Lira
* Use the correct asset for page slots in StatusBarIndicator.Hugo Parente Lima2012-05-283-6/+11
| | | | Reviewed-by: Marcelo Lira
* Blink the statusbar indicator when the load progress is 0%.Hugo Parente Lima2012-05-283-0/+15
| | | | Reviewed-by: Rafael Brandão
* Implement a QAbstractItemModel for tabs.Rafael Brandao2012-05-179-124/+301
| | | | | | | | This way we could use the same mechanism to display thumbs for both favorites (aka topsites) and opened tabs. Reviewed-by: Caio Oliveira Hugo Parente Lima
* PagedGrid should use a proper model.Rafael Brandao2012-05-176-226/+179
| | | | | | | | Now we need a QAbstractItemModel to fill the PagedGrid so the previous model in javascript needed to be implemented like the rest of our models. Reviewed-by: Caio Oliveira Hugo Parente Lima
* Use three states on StatusBarIndicator, active, inactive and invalid.Hugo Parente Lima2012-05-114-3/+11
| | | | | | | | When the status is invalid no matter if the item is active or not, this is used to show in the UI how many items he could have, so the non-used slots are marked as invalid. Reviewed-by: Rafael Brandão
* Use preferredMinimumContentsWidth = 980 and devicePixelRatio = 1.5Hugo Parente Lima2012-05-101-0/+4
| | | | | | | | | | | According to Qt documentation the default value of preferredMinimumContentsWidth is now zero, not suitable for mobile screens, 980 is a magical number that proved to work great on the majority of websites. The default value of devicePixelRatio is 1, but 1.5 show better results on N9 screen. Reviewed-by: Jesus Sanchez-Palencia
* Remove useless and added by mistake .directory file.Hugo Parente Lima2012-05-091-3/+0
| | | | Reviewed-by: Trust me
* Add .directory files to .gitignore.Hugo Parente Lima2012-05-091-0/+1
| | | | Reviewed-by: Trust me
* Update assets for PanelToggle.Hugo Parente Lima2012-05-0910-5/+9
| | | | Reviewed-by: Trust me.
* Fix position of reportContentOrientationChangeLauro Neto2012-05-081-2/+1
| | | | | | | | | | | reportContentOrientationChange has no effect when running on the desktop, so moving it to the harmattan-specific portion. Also there were some problems with the bottom ToolBar appearing at the first screen (only and randomly) when reportContent... is called *after* loading the QML sources. Reviewed-by: Alexis Menard
* [deb] Bump version to 0.2 and raise webkit version dependency.Lauro Neto2012-05-072-2/+9
|
* Revert hack to fix the status bar.Lauro Neto2012-05-042-3/+2
| | | | | | | | | | | | | | | The content's orientation was fixed on qtbase but it still does not show when not swiping on portrait mode, appearing just its empty black space. When swiping the system status bar appears correctly. Reverting the hack at least fixes the screen dimension problems that appeared when it was hidden. Also updated BrowserWindowMobile to report its orientation following the new orientation API. Reviewed-by: Rafael Brandão
* Use qrc:/// for Qt resource file URLsCaio Marcelo de Oliveira Filho2012-05-0413-32/+32
| | | | | | | | | | | | | | Fix Snowshoe for the recent Qt5 / WK update. The :/ syntax is for file names not URLs, and functions that take urls expect the qrc:/// syntax. This is documented in http://doc-snapshot.qt-project.org/5.0/qml-url.html This patch makes all the references to Qt resource files to use qrc:/// syntax. Reviewed-by: Jesus Sanchez-Palencia
* Implement fullscreen support in snowshoe.Alexis Menard2012-05-041-0/+11
| | | | Reviewed-by: Hugo Parente Lima
* Hide status bar until Qt5 orientation is fixedLauro Neto2012-04-271-0/+4
| | | | | | | | | | | | | | | QtComponents for QtQuick2 uses QWindow->reportContentOrientationChange to tell the system that its contents will be on a different orientation. It'll call QPlatformWindow->handleContentOrientationChange which is a placeholder function. Until it is properly handled the status bar will be being drawn twice for portrait apps as the system will think the application is still in landscape mode. There is a tentative fix at the link below https://codereview.qt-project.org/#change,24423 Reviewed-by: Luciano Wolf
* Prevent "cancel" to return to the same screenRafael Brandao2012-04-251-1/+2
| | | | | | | This bug could be reproduced if you start to press cancel and plus button alternately very fast. Reviewed-by: Alexis Menard
* Adjust transition to typing screen.Rafael Brandao2012-04-251-4/+6
| | | | | | | | | Not perfect yet, but more stable. After this change I couldn't reproduce the "black keyboard" bug anymore. Now, we wait for the keyboard to show to make further animations (fading elements). Reviewed-by: Alexis Menard
* Remove unneeded debug messageRafael Brandao2012-04-231-4/+1
| | | | Reviewed-by: Trust Me