Commit graph

19058 commits

Author SHA1 Message Date
l10n daemon script e017685b10 SVN_SILENT made messages (.desktop file) 2014-01-05 06:37:20 +00:00
l10n daemon script 59ce131c2c SVN_SILENT made messages (.desktop file) 2014-01-05 04:05:40 +00:00
l10n daemon script 0bef039642 SVN_SILENT made messages (.desktop file) 2014-01-03 07:26:39 +00:00
l10n daemon script d341a66c70 SVN_SILENT made messages (.desktop file) 2014-01-03 04:45:39 +00:00
Dawit Alemayehu 10105d94fc Merge remote-tracking branch 'origin/KDE/4.12' 2014-01-01 14:56:38 -05:00
Dawit Alemayehu ce040ab74f Remove the Undo closed window entry from the manager before opening the closed window.
BUG: 301974
REVIEW: 114780
FIXED-IN: 4.12.1
2014-01-01 14:55:53 -05:00
Frank Reininghaus 0276b642ae Merge remote-tracking branch 'origin/KDE/4.12' 2013-12-29 09:50:17 +01:00
Frank Reininghaus de3a06a268 Remove redundant data from KItemListViewLayouter's ItemInfo struct
It is not necessary to save the position of each item as a QPointF
because all items in a row will have the same y-coordinate, and all
items in a column will have the same x-coordinate. Therefore, we can
reduce the number of doubles that we store from

(number of items) * 2

to

(number of rows) + (number of colums)

which is at least 50% less.

REVIEW: 114460
2013-12-29 09:42:25 +01:00
Frank Reininghaus 67bb99c5de Disable the "Create folder" action in read-only directories
The action can be triggered, e.g., by pressing F10.

BUG: 294054
FIXED-IN: 4.12.1
REVIEW: 114560
2013-12-29 09:23:17 +01:00
l10n daemon script c816f3d755 SVN_SILENT made messages (.desktop file) 2013-12-29 06:40:54 +00:00
l10n daemon script ac65aa4505 SVN_SILENT made messages (.desktop file) 2013-12-29 04:07:55 +00:00
Yuri Chornoivan 51f66221c7 Add 'with'
(cherry picked from commit 0d6d678080)
backport to 4.12.1
2013-12-24 10:58:11 +01:00
Yuri Chornoivan f49458574e Remove extra word from docs
(cherry picked from commit 6db6f3a997)
backport to 4.12.1
2013-12-24 10:57:51 +01:00
Burkhard Lück 34bf1d91df Section on using kioslaves by Tim Edwards, thanks
REVIEW:113984
(cherry picked from commit 9153e97f15)
backport to 4.12.1
2013-12-24 10:57:26 +01:00
Frank Reininghaus 9262355494 Merge remote-tracking branch 'origin/KDE/4.12' 2013-12-22 13:20:02 +01:00
Frank Reininghaus 5e13b762f4 Fix crash when dragging children of expanded folders in Details View
The problem was that the loop in KFileItemModel::createMimeData() which
is supposed to find out if any parent of an item has been added to the
QMimeData already (because it is not necessary to add the item in that
case) did not loop through the parents of the item, but incorrectly
replaced the local variable 'itemData' by its parent.

BUG: 329119
REVIEW: 114562
2013-12-22 13:17:05 +01:00
Frank Reininghaus 640f5dca62 Add unit test for KFileItemModel::createMimeData().
The test verifies that creating the mime data for a child of an expanced
folder does not cause a crash. The regression happenened in the master
branch, but it doesn't hurt to have the test also in KDE/4.12.

CCBUG: 329119
2013-12-22 13:12:51 +01:00
Frank Reininghaus c0a851893e Update filtered items when the "refreshItems" signal is received
This fixes the problem that the new file name is not shown in the view
if an item is renamed while it is filtered.

BUG: 329118
FIXED-IN: 4.12.1
REVIEW: 114459
2013-12-22 12:50:14 +01:00
Frank Reininghaus 2260d70e21 Update the roles for filtered items if necessary
Since Dolphin 4.11, we store not only KFileItems, but also the
corresponding ItemData struct for filtered items. This is required for
keeping track of the parent-child relationships, and has the nice side
effect that the ItemData need not be re-determined when the items are
shown again.

However, this can become a problem if the visible roles or the sort role
change while some items are filtered.

This is fixed by is fixed by clearing the QHash "values" for the
filtered items if the visible roles change. The hash will be
re-populated with all requested data as soon as the items are shown
again and the data(int) method of the model is called.

Moreover, before the items are inserted into the model after filtering,
we have to make sure that the sort role "Permissions"/"User"/etc. is
present in the hash "values". This is achieved by factoring out the code
that currently does this job for new items in createItemDataList() into
a new function, and calling this in insertItems(), because the same
treatment is required for the previously filtered files.

BUG: 328791
FIXED-IN: 4.12.1
REVIEW: 114266
2013-12-14 11:51:07 +01:00
Frank Reininghaus ba583630e7 Merge remote-tracking branch 'origin/KDE/4.12' 2013-12-06 01:36:42 +01:00
Frank Reininghaus c1ff5204ef Make KFileItemModel::createMimeData() faster
Moreover, this commit ensures that the order of the URLs in the
QMimeData object is the same as the order of the items in the view.

Selecting many items and copying them to the clipboard could take quite
a bit of time. This is because we used
KDirModel::simplifiedUrlList(urls) to remove child items from the list
of URLs, and this function sorts the URLs internally to make it easier
to find out which of them are child URLs.

However, since commit 5c5d87fec4, the
selected indices are already stored in ascending order, and this makes
it easy to detect if an item is a child of the last item that has been
added to the QMimeData.

BUG: 283409
REVIEW: 113515
FIXED-IN: 4.13.0
2013-12-06 01:22:39 +01:00
Frank Reininghaus f863968b73 Merge remote-tracking branch 'origin/KDE/4.11' into KDE/4.12 2013-12-06 00:56:34 +01:00
Yuri Chornoivan 490f4c2dea Fix libkonq translation catalog loading in Gwenview (patch by Burkhard Lueck) 2013-12-04 07:25:44 +02:00
Emmanuel Pescosta 385e5fef2c Fix Bug 328262 - rename bug if you cancel when folder already exists
Only connect the renamingFailed signal if there is no item with the new name in the model yet.

BUG: 328262
FIXED-IN: 4.11.5
REVIEW: 114228
2013-12-03 19:00:28 +01:00
Frank Reininghaus 3dc7c849c0 Lazy-load the item data also in Compact View
The recent changes which prevent that all data for each item are saved
in a QHash already when loading the folder (see
https://git.reviewboard.kde.org/r/112725/), which save both memory and
time, do not work yet in Compact View, because
KItemListWidgetInformant::itemSizeHint() calls the model's data(int)
method for every item, which then initializes the hash.

This patch prevents that by accessing the file name directly if only
the "Name" is shown in the view, just like it's done in Icons View.

REVIEW: 113849
2013-12-02 23:14:39 +01:00
Dawit Alemayehu 467656450d Merge remote-tracking branch 'origin/KDE/4.12' 2013-11-29 08:58:21 -05:00
Dawit Alemayehu 0c76683c36 Removed unneeded debug statement 2013-11-29 08:57:54 -05:00
Dawit Alemayehu 5e107b9882 Merge remote-tracking branch 'origin/KDE/4.12' 2013-11-29 08:42:24 -05:00
Dawit Alemayehu d4a1b5c6bc Fixed what is displayed when "Show the value of environment variables" is checked during auto detect 2013-11-29 08:41:41 -05:00
Andrea Iacovitti 40bc548566 Merge remote branch 'origin/KDE/4.12' 2013-11-28 17:20:23 +01:00
Andrea Iacovitti d7848233bb Merge remote branch 'origin/KDE/4.11' into KDE/4.12 2013-11-28 17:18:48 +01:00
Andrea Iacovitti f1699adb2a In case of 'system proxy' proxyType, NoProxyFor config key holds the name
of the env variable (e.g. no_proxy) and not its value. Because of this
KProtocolManager::noProxyFor() can not be used to get NoProxyFor config
setting in KProxyDialog::load() as it returns the content of the environment
variable and not its name.
Added helper method KSaveIOConfig::noProxyFor() to read that value directly
from config file.

REVIEW: 114105
2013-11-28 17:14:09 +01:00
Frank Reininghaus fc80d969f4 Merge remote-tracking branch 'origin/KDE/4.12' 2013-11-22 18:00:51 +01:00
Yuri Chornoivan 0d6d678080 Add 'with' 2013-11-22 18:15:44 +02:00
Yuri Chornoivan 6db6f3a997 Remove extra word from docs 2013-11-22 18:14:10 +02:00
Burkhard Lück 9153e97f15 Section on using kioslaves by Tim Edwards, thanks
REVIEW:113984
2013-11-22 05:25:08 +01:00
Frank Reininghaus 07a924f361 Merge remote-tracking branch 'origin/KDE/4.11' into KDE/4.12 2013-11-21 00:51:08 +01:00
Yichao Yu b3322111c1 Fix incorrect geometry updates in KItemListContainer
When resizing the window and when KItemListContainer::updateGeometries
is called before the scrollbar visibility is updated, a relayout is
triggered in `m_controller->view()->setGeometry` which updates the
scrollbar visibility and calls back to
`KItemListContainer::updateGeometries` again. Since the first call,
which has the wrong geometry (due to the incorrect scrollbar states),
updates the geometries of the scene and viewport after the second call
(which has the right geometry!!) returns, the final result is a size
that corresponded to the old scrollbar state before this commit.

This patch uses the new geometry of the view after updating it (since
it might not be the size we put in) and therefore makes the sizes
consistent.

BUG: 327709
FIXED-IN: 4.11.4
REVIEW: 113939
2013-11-21 00:47:40 +01:00
Frank Reininghaus 2736d24f98 Make the "Create New..." menu in the "item context menu" work again
Since https://git.reviewboard.kde.org/r/111989/, the "Create New..."
menu in the context menu that appears when right-clicking a folder was
not a child of the DolphinMainWindow any more, but of the context menu
itself. This is the reason why the dialog that asks for a file name
when choosing one of the "Create New..." options disappeared
immediately.

This patch makes sure that the main window is the parent of the
"Create New..." menu again.

BUG: 327783
REVIEW: 113930
2013-11-21 00:41:33 +01:00
Patrick von Reth 314fb5ce7e dolphinnewfilemenu.cpp is part of dolphinprivate 2013-11-19 19:51:16 +01:00
Burkhard Lück 58bb248453 add hint that single/double click option is system wide and can be changed in systemsettings as well
(cherry picked from commit 47b7273090)
backport for 4.12
2013-11-19 05:54:36 +01:00
Frank Reininghaus d673c412b4 Merge remote-tracking branch 'origin/KDE/4.12' 2013-11-18 23:48:14 +01:00
Frank Reininghaus 293d6752ec Merge remote-tracking branch 'origin/KDE/4.11' into KDE/4.12 2013-11-18 23:44:45 +01:00
Yichao Yu 39e7ba46e8 Fix scrollbar spacing when no scrollbar is visible in dolphin.
Before this commit, Dolphin reserved space for the scrollbar spacing
even when no scrollbar is visible resulting in a ugly gap in the view
when:

1. the theme uses QStyle::SH_ScrollView_FrameOnlyAroundContents and
2. the theme has a positive PM_ScrollView_ScrollBarSpacing.

QtCurve can have both while Oxygen have 1 but not 2.
To reproduce the problem with Oxygen style. Replace the
`width += ....` (which returns -2 or 0 for Oxygen) with `width += 2`.

See more info here:
https://github.com/QtCurve/qtcurve-qt4/issues/9#issuecomment-28630517

CCBUG: 306631
FIXED-IN: 4.11.4
REVIEW: 113902
2013-11-18 23:40:45 +01:00
Burkhard Lück 47b7273090 add hint that single/double click option is system wide and can be changed in systemsettings as well 2013-11-18 05:55:56 +01:00
Frank Reininghaus 6dd2ae4e15 Update the Places Panel entries when switching the language
Before this commit, we stored the translated "Places" in
.kde4/share/apps/kfileplaces/bookmarks.xml. This was not intentional -
it only happened because
PlacesItem::updateBookmarkForRole(const QByteArray& role) always stored
the translated text (returned by PlacesItem::text()) in the KBookmark.

This is be fixed by first checking if the text() is equal to the
translation of the text that is already stored in the KBookmark, and
not updating it in that case.

Note that we have to make sure that all "Places"-related use the same
context "KFile System Bookmarks" to make that work.

Thanks to Burkhard Lück and Albert Astals Cid for helping to fix this
problem!

BUG: 319282
FIXED-IN: 4.12.0
REVIEW: 113850
2013-11-15 09:20:10 +01:00
Frank Reininghaus 9c3c20ee4f Merge remote-tracking branch 'origin/KDE/4.11' into KDE/4.12 2013-11-14 09:14:51 +01:00
David Rosca 41ece8e93d Do not select items when navigating back/forward with the mouse
If we detect that the user pressed the back/forward buttons while
hovering the empty space of the view, such that
DolphinView::slotMouseButtonPressed(int, Qt::MouseButtons) will request
that Dolphin navigates back/forward in the history, handling the mouse
press event should stop. This prevents the possible unexpected selection
of items in the new directory.

BUG: 327412
FIXED-IN: 4.11.4
2013-11-14 09:08:29 +01:00
Wolfgang Bauer e0ecb8f861 Make it build with QT_STRICT_ITERATORS
Redo commit 81c99da7e0 by Kevin Ottens

Was removed by mistake during the last merge with KDE/4.11, sorry!
2013-11-06 17:53:43 +01:00
Wolfgang Bauer 0fb536d1b5 Merge branch 'KDE/4.11' into KDE/4.12
Revert "Files passed as arguments: Ignore unsupported files"

This reverts commit cd9e50ae4f.

See bug#327224 for details.
2013-11-06 17:07:10 +01:00