Commit graph

4753 commits

Author SHA1 Message Date
Christophe Giboudeaux 81d5335060 Move docs. 2014-06-29 17:51:48 +02:00
Christophe Giboudeaux a769261131 Remove the automoc noise 2014-06-29 10:36:32 +02:00
l10n daemon script 74d8522ac6 SVN_SILENT made messages (after extraction) 2014-06-29 01:36:02 +00:00
Christophe Giboudeaux ae1960be45 Reenable tests. 2014-06-29 02:07:41 +02:00
Christophe Giboudeaux 37492b2275 KF5ify Dolphin. 2014-06-29 01:35:37 +02:00
Christophe Giboudeaux c8a2db7d4e Create KF5::Konq 2014-06-28 22:17:55 +02:00
l10n daemon script caadc66bd8 SVN_SILENT made messages (after extraction) 2014-06-28 01:32:56 +00:00
Christophe Giboudeaux 7fa0c566ed Revert "Fix build"
This reverts commit 780e76f35bca0ced37a691a50367cf705388cc38.

Update your kfilemetadata/baloo/baloo-widgets builds instead.
2014-06-27 18:05:36 +02:00
Rohan Garg 50d123a60d Fix build 2014-06-27 17:00:12 +02:00
Christophe Giboudeaux 3614b7fea7 Fix build. 2014-06-27 10:34:57 +02:00
Christophe Giboudeaux 4417875294 Rename the Baloo modules. 2014-06-27 10:08:24 +02:00
l10n daemon script e99e511236 SVN_SILENT made messages (after extraction) 2014-06-27 01:41:26 +00:00
Arjun AK 0a607c28f5 prevent goBack, goForward, goHome and goUp from being called twice
REVIEW: 118782
2014-06-25 18:53:05 +05:30
Emmanuel Pescosta 4a40a2c66e Add AppStream meta data file (imported from https://github.com/ximion/kde-appstream-metadata-templates/blob/master/apps/dolphin.appdata.xml)
Thanks to Matthias Klumpp for providing this file!

REVIEW: 118701
2014-06-25 14:31:15 +02:00
Scarlett Clark ea1e7822e5 Kde-baseapps frameworks - replace generic soversion.
Review:118851
2014-06-20 13:08:48 -07:00
Lukáš Tinkl 96f4646b66 i18n fixes 2014-06-20 21:12:34 +02:00
Scarlett Clark e41c969063 kde-baseapps frameworks dolphin with snapshot frameworks branch baloo/baloo-widgets path fixes. 2014-06-20 04:18:58 -07:00
Emmanuel Pescosta 24823bbfd1 Implemented DolphinRecentTabsMenu to encapsulate the recent
tabs menu related code from DolphinMainWindow in a new class.

The DolphinRecentTabsMenu remembers the tab configuration if a
tab has been closed.

REVIEW: 118805
2014-06-19 22:04:36 +02:00
Frank Reininghaus efa19caa46 Implement TODO concerning changed roles
When emitting the itemsChanged signal in KFileItemModel::setRoles,
use the changed roles in the argument of the signal.

A warning message which was related to this issue was removed in
7a83252e0d

REVIEW: 118815
2014-06-19 20:35:22 +02:00
Frank Reininghaus 7a593fc92b Merge branch 'KDE/4.13' 2014-06-19 20:32:30 +02:00
Frank Reininghaus a8e86cf7ef Remove confusing warning message
The message
"TODO: Emitting itemsChanged() with no information what has changed!"
is not helpful for the user.

The implementation of the TODO will be done in master, see
https://git.reviewboard.kde.org/r/118815/

CCBUG: 336174
2014-06-19 20:27:58 +02:00
Frank Reininghaus 6bccf73e92 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	dolphin/src/dolphincontextmenu.cpp
	dolphin/src/panels/folders/treeviewcontextmenu.cpp
2014-06-12 08:51:50 +02:00
Frank Reininghaus 9dc1513f8b Do not crash if QApplication::clipboard()->mimeData() is a null pointer
This removes the remaining unchecked accesses to the clipboard mime
data after commit 7828b057da. According
to a bug report, it can be a null pointer on Wayland.

BUG: 335053
REVIEW: 118649
2014-06-12 08:37:11 +02:00
l10n daemon script 3b119c4ff9 SVN_SILENT made messages (.desktop file) 2014-06-09 04:33:35 +00:00
Frank Reininghaus 05c8254ee4 Make the settings dialog work in the frameworks branch
The KF5 version of KPageDialog has no virtual slot
"slotButtonClicked(int button)". Its kdelibs 4.x counterpart had such
a slot, which was connected automatically to the corresponding signal.

This slot was overriden by

DolphinSettingsDialog::slotButtonClicked(int button)

which was responsible for applying the changed setting and restoring
the default values if the corresponding button was clicked.

The lack of the buttonClicked(int) signal and the corresponding slot
caused the problem that clicking a button in the settings dialog had no
effect.

This patch makes the functions applySettings() and restoreDefaults()
functions slots, and connects them directly to the "clicked" signal of
the corresponding buttons.

BUG: 335709
REVIEW: 118576
2014-06-06 00:51:15 +02:00
Frank Reininghaus c12dc996f5 Merge remote-tracking branch 'origin/master' into frameworks 2014-06-05 08:57:31 +02:00
Frank Reininghaus ea713e7a79 Merge remote-tracking branch 'origin/KDE/4.13' 2014-06-05 08:54:06 +02:00
Frank Reininghaus e07468c784 Separate width and height info in the layouting code
By separating the width and height info, we can save some unnecessary
overhead in terms of memory and CPU cycles, and make the calculation of
the height of a row (or the width of a column in Compact View) a bit
simpler.

To achieve this, this patch extends the concept of "logical rows"
(which are actually columns in Compact View) to "logical width" and
"logical height" (which is the actual height and width, respectively, in
 Compact View). The distinction between rows/columns and "logical"
rows/columns may be a bit confusing, but the confusion is already in the
current code, and I hope that it will be mitigated a bit by prefixing
the corresponding variables with "logical".

REVIEW: 118454
2014-06-05 08:50:52 +02:00
Frank Reininghaus 470e305be4 Change the Dolphin version in frameworks to 4.60
Since the KF5 libraries and the applications will not have a
synchronized release schedule any more, it does not make sense to
continue using KDE_VERSION_STRING as the Dolphin version.
2014-06-04 22:03:08 +02:00
Frank Reininghaus c7d607a7fc Make Dolphin windows with multiple tabs closable
The return type and return values of KMessageBox::createKMessageBox()
have changed in KF5. We have to adjust the code
in DolphinMainWindow::closeEvent(QCloseEvent* event) in order to make
windows with multiple tabs closable.

BUG: 335732
REVIEW: 118508
2014-06-04 21:56:36 +02:00
Frank Reininghaus 352f644159 Fix possible crash if a kioslave adds multiple items with the same URL
When opening the URL "man:", there are multiple items with the same
name (for example, _exit is shown twice here). When opening a new tab,
the kioslave reports some items as deleted (I have not quite understood
why). The problem is that it reports some of the duplicate items twice
in the list of deleted items. This confused KFileItemModel and
corrupted the internal data structures, and finally, caused a crash.

The fix is to remove all duplicates from
KItemRangeList::fromSortedContainer(const Container& container).

New unit tests included.

BUG: 335672
REVIEW: 118507
FIXED-IN: 4.13.2
2014-06-04 21:49:02 +02:00
Frank Reininghaus 59d01e8acc Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	lib/konq/konq_operations.cpp
2014-06-01 14:52:56 +02:00
Frank Reininghaus 90e27974a4 Merge remote-tracking branch 'origin/KDE/4.13' 2014-06-01 14:48:30 +02:00
Emmanuel Pescosta 96c34cfe65 Fix Bug 334696 - File/directory icons/names move to the right when opening/refreshing contents of Dolphin
Take the scrollbar spacing into account.

BUG: 334696
REVIEW: 118319
FIXED-IN: 4.13.2
2014-05-29 15:33:03 +02:00
Emmanuel Pescosta fb69036dbd Use "selectionToggleRect().contains(pos)" instead
of "m_selectionToggle->contains(pos)" in
KItemListWidget::setHoverPosition(const QPointF& pos).

This wrong check was accidentally introduced by
commit 24326d4473

BUG: 299328
REVIEW: 118320
FIXED-IN: 4.13.2
2014-05-29 15:31:24 +02:00
Emmanuel Pescosta fa36c3fd1f Merge branch 'master' into frameworks
Conflicts:
	dolphin/src/statusbar/statusbarspaceinfo.cpp
2014-05-25 14:43:18 +02:00
Frank Reininghaus 4fe788f115 Keep the "free space" information updated in all visible views
The old code would watch the free space on a mount point, i.e.,
determine the free space again, in 10-second intervals, only until the
view became invisible once (even if it was invisible only for a very
short moment, i.e., while splitting the view).

This commit ensures that the mount point is watched again as soon as
the corresponding view becomes visible again.

Moreover, the object that watches the free space for a mount point is
shared among all views that show URLs that belong to this mount point.
To achieve this, there is a central cache which can be used to obtain
an existing MountPointObserver for a certain path. If necessary, a new
MountPointObserver is created and added to the cache.

The MountPointObserver is removed from the cache and destroyed only if
no views use it any more, and no new users appear until the next update
(which happens every 10 seconds). This prevents that the free space is
measured repeatedly when changing the current directory on the same
mount point.

Many thanks to Emmanuel Pescosta for the initial ideas to factor out
the "free space" code and to establish a central storage for the
"observer" objects, and for providing many good suggestions how to
improve the code!

BUG: 327708
REVIEW: 118208
FIXED-IN: 4.14.0
2014-05-22 18:42:17 +02:00
Frank Reininghaus a46121dc51 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	dolphin/src/search/filenamesearchprotocol.cpp
2014-05-21 22:49:40 +02:00
Frank Reininghaus f27c124237 Merge remote-tracking branch 'origin/KDE/4.13' 2014-05-21 22:44:48 +02:00
Frank Reininghaus 4ecdb8fe6e Remove debug output
This debug output was pushed accidentally in commit
c52ba9446b
2014-05-20 08:39:56 +02:00
Frank Reininghaus 1f9d35db19 Do not lose translation of Places items if a Dolphin window is closed
If the "Places" are updated outside the current Dolphin process,
PlacesItemModel::updateBookmarks() is called, which invokes
PlacesItem::setBookmark(const KBookmark& bookmark) for each item. This
commit ensures that the correct translation is used for system
bookmarks like "Root", "Network", etc.

Without this patch, all Places entries in the remaining Dolphin windows
would switch to US English if one of multiple windows is closed.

See http://lists.kde.org/?t=139660468400004&r=1&w=2 for details.

BUG: 334999
REVIEW: 118207
FIXED-IN: 4.13.2
2014-05-20 08:31:31 +02:00
Hrvoje Senjan 6edcabf9a0 Fix build when baloo is found 2014-05-14 18:05:28 +02:00
Hrvoje Senjan ee92e7a8b9 Adjust to changes in KAboutData 2014-05-14 18:04:38 +02:00
Frank Reininghaus d152bfc53b Merge branch 'KDE/4.13' 2014-05-13 19:14:25 +02:00
Frank Reininghaus 99e8f8e2e6 Stop listing children of collapsed folders
Before this patch, KDirLister would continue listing any children of
collapsed folders, even though the children themselves were removed
from the model. This could lead to new items being inserted as
top-level items at some later point, because no parent could be found
for them. This inconsistent model state could lead to a crash later on.

Many thanks to Martin Koller for helping to debug this problem!

BUG: 332102
REVIEW: 118055
FIXED-IN: 4.13.2
2014-05-13 19:06:42 +02:00
Frank Reininghaus 66f1759b6f Ensure that all children of a collapsed folder are removed
Before this patch, any (direct or indirect) children that might have
been in m_pendingItemsToInsert, i.e., that were not inserted into the
model yet because KDirLister had not finished listing the directory
yet, would be added to the model later without a proper parent. This
could cause a crash later on.

CCBUG: 332102
FIXED-IN: 4.13.2
2014-05-13 19:04:09 +02:00
Uzair Shamim 24d0ade8e3 Allow the widget in the "Additional Information" dialog to resize
BUG: 334355
REVIEW: 118088
FIXED-IN: 4.13.2
2014-05-13 18:59:34 +02:00
Frank Reininghaus 4cf04b91dd Merge remote-tracking branch 'origin/master' into frameworks
Since the master branch had never been merged into frameworks since the
creation of the frameworks branch, I had to fix a couple of merge
conflicts and make another change in order to make it build - I hope I
did not get anything wrong.

We should probably merge master into frameworks on a regular basis from
now on.

CCMAIL:kfm-devel@kde.org

Conflicts:
	dolphin/src/dolphinmainwindow.cpp
	dolphin/src/search/dolphinfacetswidget.cpp
	dolphin/src/statusbar/dolphinstatusbar.cpp
	dolphin/src/views/dolphinview.cpp
2014-05-13 18:42:05 +02:00
Alex Richardson 7e92abb4ea KF5::KDE4Support -> KF5::KDELibs4Support 2014-05-05 23:11:12 +02:00
Alex Richardson 9d7af8a24a Fix build of tests
This is the last commit for review 117395

REVIEW: 117395
2014-05-05 23:05:34 +02:00