Commit graph

4542 commits

Author SHA1 Message Date
Emmanuel Pescosta a9b04801db Port Dolphin from Nepomuk to Nepomuk2 according to the Nepomuk2Port mini guide on techbase - http://techbase.kde.org/Projects/Nepomuk/Nepomuk2Port
REVIEW: 106825
2012-10-15 21:46:59 +02:00
Pino Toscano c239ae19de Merge remote-tracking branch 'origin/KDE/4.9' 2012-10-13 09:27:54 +02:00
Amol Godbole 67cae55f9d Use not only Alt+Return, but also Alt+Enter as shortcut for "Properties"
BUG: 307603
REVIEW: 106753
FIXED-IN: 4.9.3
2012-10-07 19:39:59 +02:00
Dawit Alemayehu bc66254304 Merge branch '4.9' 2012-10-03 15:09:58 -04:00
Frank Reininghaus 2277ccaf23 Fix the hidden "EnlargeSmallPreviews" option
This option, introduced in 99e4eb0f3a, did
not work any more since 2069c20021.

CCBUG: 307522
2012-10-03 10:14:20 +02:00
Frank Reininghaus 0e49df9214 Find out the main window by calling the parent widget's window() member
KFileItemModel calls the dir lister's setMainWindow() method to make
sure that the dir lister caches authentication data. However, the method
used to determine the main window (qApp->activeWindow()) is not
guaranteed to yield the DolphinMainWindow or the KonqMainWindow. In
particular, if "Split View" is enabled in Dolphin's settings dialog, the
active window is the dialog, and when it is closed, any later access to
the stored pointer leads to a crash.

A better method is to verify that the model's parent is a QWidget and
then use this widget's window(). I had to make a small modification in
DolphinMainWindow to make sure that it also works correctly when the
view is split (the new view container had been created with a 0 parent
previously).

I tested it in Dolphin and Konqueror and verified that the "main window"
passed to the dir lister is really the application's main window.

BUG: 306459
FIXED-IN: 4.9.3
2012-09-29 19:53:14 +02:00
Dawit Alemayehu 65b7e3b785 Redo the fix for CTRL+Tab not working when using Dolphin's filemanagement part
in Konqueror. The original fix, commit 4f7ed2b, prevents drag and drop from
working correctly.

CCBUG: 302329
REVIEW: 106569
2012-09-28 14:01:21 -04:00
Dawit Alemayehu b7a8327c30 Merge branch '4.9' 2012-09-27 17:48:56 -04:00
Vishesh Handa 9b01d1bcc1 Dolphin Places: Only show file results in Nepomuk Queries
Dolphin is a file manager, and shouldn't be concerned with non-file
resources like notes, contacts and other stuff.

Use FileQuery instead of Query.

This also results in a faster queries. With File Queries Nepomuk can
perform some internal optimizations.

BUG: 306029
REVIEW: 106274

Cherry-picked from 6892d39d29
2012-09-28 02:37:35 +05:30
Emmanuel Pescosta 814611ca36 Some speed improvements in KFileItemModelRolesUpdater:
- Use QSet.erase() instead of QSet.remove() => no expensive Rehashing
- Get rid of += in sortAndResolvePendingRoles()
- Some other small changes

REVIEW: 106577
2012-09-27 18:47:55 +02:00
Frank Reininghaus 831251d0f3 Add a new config option for the icon size in the Places Panel
To change the icon size in the Places Panel to, e.g., 60 pixels, add
the following lines to $KDEHOME/share/config/dolphinrc :

[PlacesPanel]
IconSize=60

A value of -1 means that the standard "Small" size should be used
(which has been the default before this commit).

It is planned to add an "Icon Size" submenu to the context menu of the
Places Panel in KDE 4.10, but we cannot do this in the 4.9 branch
because of the string freeze.

FIXED-IN: 4.9.2
BUG: 301959
2012-09-27 08:12:02 +02:00
Emmanuel Pescosta 63561edb45 Fix a Bug in KFileItemModelRolesUpdate::setEnabledPlugins.
Changes were never overtaken because of a wrong comparison.

FIXED-IN: 4.9.2
2012-09-26 17:36:51 +02:00
Dawit Alemayehu 7cef34939d Fixed CTRL+Tab not working when using Dolphin's filemanagement part in Konqueror.
BUG: 302329
FIXED-IN: 4.9.2
REVIEW: 106569
2012-09-26 10:16:44 -04:00
Amandeep Singh 509464cce9 Adding license header in kitemlistviewaccessible
Added the license header in kitemlistviewaccessible.*
Accessibility headers not included when QT_NO_ACCESSIBILITY defined
Removed unnecessary debug statement
2012-09-26 04:36:31 +05:30
Frank Reininghaus a5d8edb8c2 Fix coding style and unnecessary complexity in KItemListViewAccessible
CCMAIL: aman.dedman@gmail.com
CCMAIL: gladhorn@kde.org
2012-09-25 22:01:03 +02:00
Emmanuel Pescosta c330be5f5c Fixes Bug 305783 - dragging a file over a directory #c4
does not expand the dir => Bug discovered: When you drag a
     item onto a folder-view-item and then move it away
     instantly before the autoactivation event is triggered
     (After 750ms), the folder will be opened anyway.

BUG: 305783
REVIEW: 106381
FIXED-IN: 4.9.2
(cherry picked from commit 9ab8bcd6aa)
2012-09-25 17:06:34 +02:00
Frederik Gladhorn c914273feb Do not include role name in acc name, add desc.
The role is already known. Including it in the
accName means a screen reader will read
"zoom slider slider".
2012-09-25 12:50:06 +02:00
Amandeep Singh c08a4794ff Removing layouter from public, adding TableModelChanged update
REVIEW : 106555
2012-09-25 04:01:48 +05:30
Frank Reininghaus 631f97a6d9 Revert part of 20b0cb68bf
That commit, which disregarded roles with empty text for the row number
calculation in Icons View, caused the problem that icons might jump
around while information was retrieved asynchronously because previously
empty roles could get a non-empty value, and the corresponding items
would need an additional row in the view.

Thanks to Hrvoje Senjan for testing this feature in master and reporting
this issue early, such that we could fix it quickly and prevent that
other users suffer from this bug!

CCBUG: 304752
2012-09-24 23:32:51 +02:00
Frank Reininghaus a740120fe1 Fix crash when receiving Nepomuk info for a recently deleted file.
BUG: 306036
FIXED-IN: 4.9.2
2012-09-24 22:59:59 +02:00
Amandeep Singh 2fafb33240 Removing unneccessary case for Sibling in navigate 2012-09-23 02:15:24 +05:30
Frederik Gladhorn 8f816c8d95 Make cell indices work. 2012-09-22 22:41:54 +02:00
Frederik Gladhorn 174749c349 Accessibility: Fix cellAt
Row and column are 0 based, the cell function
uses 1 based indices.
2012-09-22 21:41:36 +02:00
José Millán Soto e6fd6f32b4 Set accessible name to selectHomeUrlButton 2012-09-22 20:35:58 +02:00
Amandeep Singh 1b5b731621 Merge branch for accessibility 2012-09-22 23:49:15 +05:30
Amandeep Singh 990c7d260f Returning correct rowCount. 2012-09-22 23:47:18 +05:30
Amandeep Singh 4196026cd8 Making code confirm to policy 2012-09-22 23:47:18 +05:30
Amandeep Singh 28239e6ca8 Removing in-class functions and unnecessary destructor 2012-09-22 23:47:18 +05:30
Amandeep Singh 0ae031a4e6 Modify code according to dolphin policy 2012-09-22 23:47:17 +05:30
Luca Beltrame f1b822d926 Merge branch 'KDE/4.9'
Conflicts:
	konq-plugins/dirfilter/dirfilterplugin.cpp
	konq-plugins/dirfilter/dirfilterplugin.h
2012-09-21 10:55:08 +02:00
Emmanuel Pescosta c824340147 Fix Bug 297355 - Dolphin leaves file preview tooltips open even when is not visible
BUG: 297355
FIXED-IN: 4.9.2
REVIEW: 106499
2012-09-20 17:57:10 +02:00
Emmanuel Pescosta 904d7b0701 Restore old behavior: Navigating by double-clicking in folder panel (Double-Click - show folder content and expand folder)
BUG: 295573
REVIEW: 106497
FIXED-IN: 4.9.2
2012-09-20 17:56:32 +02:00
Emmanuel Pescosta 4855b582b4 Fixes Bug 304878 - Dolphin shows "ghost" folders in places after autofs umount nfs shares
BUG: 304878
REVIEW: 106456
FIXED-IN: 4.9.2
2012-09-20 17:56:00 +02:00
Emmanuel Pescosta 580bcae62c Fixes Bug 293200 - Drag&drop files in dolphin doesnt preserve origin
Patch 106381 Comment #3:
When "Open folders during drag operations" is enabled, two things happen, both in the DolphinView and in the Folders Panel:

1) When hovering a folder that can be expanded (this is the case for folders with sub-folders in the Folders Panel and in the DolphinView if in Details View mode), toggle its "expanded" state.
2) When hovering a folder that can not be expanded (i.e., a folder without sub-folders or any folder in Icons or Compact View), open this folder in the DolphinView via the KItemListController's itemActivated(int) signal.

The bug described in bug 293200 comment 3 is that 1) is always wanted, but 2) is not wanted for the Folders Panel.

BUG: 293200
FIXED-IN: 4.9.2
2012-09-19 19:00:52 +02:00
Frank Reininghaus 40c513d477 Prevent unwanted URL changes when using the Terminal Panel
The root cause of the problem was that TerminalPanel's member
m_konsolePartCurrentDirectory, which is used to determine in
TerminalPanel::sendCdToTerminal(QString& dir) if the Konsole part's
directory is aleady 'dir', such that issuing the 'cd' command is not
needed, was updated too late, namely when the part's
currentDirectoryChanged(QString) signal was received, which may be up
to one second after the 'cd' command.

When changing the directory from "dir1" to "dir2" and going back to
the "dir1" in less than one second (either by using the 'Back' action
or by activating a tab which still had "dir1" open), the 'cd dir1'
command was therefore suppressed because the Terminal Panel still
thought that "dir1" was the current directory in the part. However,
the directory of the part was actually "dir2", and when the
currentDirectoryChanged(QString) signal was received from the part, the
view's URL was set to "dir2" as well.

BUG: 306349
BUG: 304838
FIXED-IN: 4.9.2
2012-09-19 09:28:35 +02:00
Dawit Alemayehu 399c4b22ea Corrected the compile fix commit, rev 965fc6b3.
(cherry picked from commit 1e45cb9019)
2012-09-15 14:41:06 -04:00
Dawit Alemayehu 0b918c3f82 Corrected the compile fix commit, rev 965fc6b3. 2012-09-15 13:44:54 -04:00
Frank Reininghaus fa255857a0 Re-enable renaming items with the rename dialog
User feedback has shown that many users used the dialog for renaming
files. Since the dialog is still used when renaming multiple files, I
think there is no good reason not to use it for renaming single files
as well if the user wants.

Note that we cannot add an option in the settings dialog due to string
freeze issues. For the time being, you will have to add the line
"RenameInline=false" to the [General] section of
$KDEHOME/share/config/dolphinrc.

BUG: 304627
FIXED-IN: 4.9.2
2012-09-12 21:19:41 +02:00
Emmanuel Pescosta 186141f4d3 Fixes Bug 305783 - dragging a file over a directory #c4
does not expand the dir => Bug discovered: When you drag a
     item onto a folder-view-item and then move it away
     instantly before the autoactivation event is triggered
     (After 750ms), the folder will be opened anyway.

BUG: 305783
REVIEW: 106381
2012-09-12 19:33:28 +02:00
Dawit Alemayehu fa36040a9a Fix compile against the minimum required kdelibs version (v4.7.97)
(cherry picked from commit f0d5e062bf)
2012-09-11 16:57:51 -04:00
Dawit Alemayehu 7bccdf85f7 Fix compile against the minimum required kdelibs version (v4.7.97) 2012-09-11 16:57:18 -04:00
Emmanuel Pescosta 5fbc010179 Mount unmounted devices, when a file is dropped upon it in places-panel.
BUG: 176277
REVIEW: 106072
FIXED-IN: 4.9.2

(cherry picked from commit 824fa6a437)
2012-09-11 20:23:28 +02:00
Emmanuel Pescosta bdfd49e7e7 Mount unmounted devices, when a file is dropped upon it in places-panel.
BUG: 176277
REVIEW: 106072
2012-09-11 20:17:56 +02:00
Emmanuel Pescosta e280e7f68c Fixes Bug 242007 - "Open Folder during Drag operation" cannot go into different partition using "Places Panel"
BUG: 242007
REVIEW: 106380
2012-09-11 20:09:01 +02:00
Frank Reininghaus 42dad0a948 Fix possible crash when refreshing the view while renaming inline
It is not reproducible on every machine for me, but it seems that it can
happen that DolphinView's slot slotRoleEditingFinished() is invoked
after the items have already been removed from the model. In that case,
we have to return from the slot immediately to prevent a crash.

BUG: 306147
FIXED-IN: 4.9.2
2012-09-11 19:43:53 +02:00
Frank Reininghaus 7de641316a Fix possible crash in KStandardItemListWidget::paint()
According to the backtrace in the bug report, it is possible that
KStandardItemListWidget::paint() is called if the hash m_textInfo has
not been initialised. The widget's index must be -1 in this case, see
KStandardItemListWidget::triggerCacheRefreshing(). It looks like this
can only happen if the item is about to be removed from the view, see
KItemListView::slotItemsRemoved().

I could not reproduce the crash, so I'm not sure why exactly this
happens, but this commit should at least prevent the crash.

BUG: 306167
FIXED-IN: 4.9.2
2012-09-11 19:34:23 +02:00
Frank Reininghaus f9ba9a7236 Use a better icon for recently accessed items, part 2
I had missed one places where the incorrect icon was used in my
previous commit d7e7ca53bb.

BUG: 304323
FIXED-IN: 4.9.2
2012-09-11 19:25:20 +02:00
Frank Reininghaus eb54d5b348 Simplify boolean expression
Thanks to André Wöbbeking for noticing that this was unnecessarily
complex!
2012-09-11 19:17:40 +02:00
Dawit Alemayehu 2da3823b74 Implemented the new KParts extension, KParts::ListingiNotificationExtension.
REVIEW: 106333
(cherry picked from commit acef4b1c28)
2012-09-07 08:54:14 -04:00
Dawit Alemayehu 8b11c747a0 Implemented the new KParts extension, KParts::ListingiNotificationExtension.
REVIEW: 106333
2012-09-07 08:52:53 -04:00