Commit graph

18990 commits

Author SHA1 Message Date
l10n daemon script 0abe0e4e8c SVN_SILENT made messages (.desktop file) 2014-02-23 04:46:47 +00:00
l10n daemon script 957d62a7e1 SVN_SILENT made messages (.desktop file) 2014-02-18 05:07:20 +00:00
Emmanuel Pescosta 0e045b72c2 Remove some unused functions.
void KFileItemModel::slotClear(const KUrl& url)

bool UpdateItemsThread::lockPlugin()    <- Done with QMutexLocker
void UpdateItemsThread::unlockPlugin()

REVIEW: 115627
2014-02-11 20:30:50 +01:00
Frank Reininghaus cba1533b74 Ensure that KItemListViewLayouter always has a size hint resolver
KItemListViewLayouter uses a KItemListSizeHintResolver to find out how
much space the items will need in the view.

Before this commit, the size hint resolver object could be changed at
runtime, and it could also be null. However, we never made use of these
possibilities, so all the code that checks if m_sizeHintResolver is
null is actually not needed at all.
2014-02-11 18:28:32 +01:00
l10n daemon script edca99745d SVN_SILENT made messages (.desktop file) 2014-02-10 04:12:59 +00:00
l10n daemon script 1b86b410e8 SVN_SILENT made messages (.desktop file) 2014-02-09 05:40:55 +00:00
Christophe Giboudeaux f463efea90 Fix includes 2014-02-07 15:41:48 +01:00
Frank Reininghaus 4ba9b4c14d Merge remote-tracking branch 'origin/KDE/4.12' 2014-02-07 10:26:00 +01:00
Frank Reininghaus e45fc620b4 Only initialize the hash m_items in KFileItemModel if it is needed
Moreover, clear the entire hash if items are added or removed.

This saves time and memory when loading a directory, and it fixes
problems that might occur if the model is in an inconsistent state, such
as crashes that can happen when we try to remove individual items from
m_items.

BUG: 329494
FIXED-IN: 4.13.0
REVIEW: 115432
2014-02-07 10:22:17 +01:00
Frank Reininghaus d8fecb5318 Fix build if Baloo is not installed 2014-02-07 10:14:29 +01:00
Vishesh Handa 5707e1e92c Port Dolphin to Baloo
Nepomuk is being replaced with Baloo
2014-02-06 20:29:09 +01:00
Emmanuel Pescosta 15f409de33 Set the Details View colummns width to the preferred column width, by double-clicking the header grips.
BUG: 293315
FIXED-IN: 4.13
REVIEW: 115503
2014-02-06 13:00:28 +01:00
Frank Reininghaus be29aed516 Restore the URLs of both views correctly when restoring a session
The problem was that we restored the URL of the right view while the
left one is still active. When we received the signal
urlChanged(KUrl& url) from the right URL navigator, we then set the URL
of the active (i.e., left) view to 'url', such that both views showed
the same URL.

BUG: 330047
FIXED-IN: 4.12.3
REVIEW: 115406
2014-02-02 10:19:57 +01:00
Emmanuel Pescosta 47c8eebe96 Don't store the index of the file item in the VersionControlObserver::ItemState, get the index of the file item on demand instead.
Fixes some "old"-index problems, esp. when you copy/move around files while the version control thread is still running.

FIXED-IN: 4.13
REVIEW: 115410
2014-01-31 20:56:57 +01:00
Frank Reininghaus 4865303004 Always enable the "Create New..." menu if the URL is writable
This commit works around the problem that KDirLister may not provide a
"rootItem" for some kioslaves by setting up a KFileItem with the view
URL and using this to find out if the URL is writable.

BUG: 330001
CCBUG: 330015
REVIEW: 115405
FIXED-IN: 4.12.2
2014-01-30 22:10:31 +01:00
Hrvoje Senjan c802990494 [kde-baseapps]: Remove strigi check
Strigi is completely unused within kde-baseapps,
only KFileMetainfo & co is used withing folderview.

REVIEW: 115366
2014-01-28 23:43:22 +01:00
Maarten De Meyer 17d5d0c4ee Install all user agent desktop files.
REVIEW: 113607
2014-01-24 12:59:43 +01:00
l10n daemon script c2253773b1 SVN_SILENT made messages (.desktop file) 2014-01-22 06:22:47 +00:00
l10n daemon script 5dcc26bbb8 SVN_SILENT made messages (.desktop file) 2014-01-22 03:54:49 +00:00
Frank Reininghaus 7d63247690 Merge remote-tracking branch 'origin/KDE/4.12' 2014-01-21 19:14:44 +01:00
Frank Reininghaus 29195b73e1 Use only one "directory contents counting" thread per process
The pointer to QThread object is stored in a global variable, and each
view increments/decrements a reference count when it starts/stops using
the thread. If this thread reaches zero, the thread is stopped.

Note that we cannot just use a smart pointer, like QSharedPointer, to
manage the thread, because we must make sure that the thread is not
running any more before the QThread is deleted.

REVIEW: 115064
2014-01-21 19:08:07 +01:00
Emmanuel Pescosta 8007143f34 Don't show tooltips while inline-renaming.
FIXED-IN: 4.12.2
REVIEW: 115146
BUG: 330126
2014-01-20 17:41:44 +01:00
Emmanuel Pescosta 986fde3f16 Remove the "retrieved items" code from UpdateItemStatesThread and VersionControlObserver.
Showing an error message, makes no sense in this case - the user can see it when all items are "unversioned".
The plugins still have the ability to show error/warning messages on real errors. (and only where it makes sense ;)

REVIEW: 114992
FIXED-IN: 4.13
2014-01-16 12:55:42 +01:00
Emmanuel Pescosta 3542e67c4e Use the QMap iterator instead of foreach(key, map.keys()) in UpdateItemStatesThread::run()
and in VersionControlObserver::slotThreadFinished().

So we get O(n) complexity instead of O(n*logn), and O(1) memory instead of O(n).
Thanks to Thiago Macieira for providing this information.

FIXED-IN: 4.13
REVIEW: 115018
2014-01-15 20:27:20 +01:00
Emmanuel Pescosta 75f0b9b2af Calculate all item size hints at once.
The speed up is really small, but theses changes are mostly straightforward and make the code a bit nicer - break
the KStandardItemListWidgetInformant::itemSizeHint beast into three smaller functions.

FIXED-IN: 4.13
REVIEW: 112979
2014-01-12 23:24:00 +01:00
Frank Reininghaus 288b4cde37 Update copyright year 2014-01-12 16:56:09 +01:00
Dawit Alemayehu 88155cddd4 Merge remote-tracking branch 'origin/KDE/4.12' 2014-01-09 08:29:36 -05:00
Dawit Alemayehu af5a796edd Append "-viewmode" to object name of actions associated with services that provide multiple views.
BUG: 322686
FIXED-IN: 4.12.1
REVIEW: 114926
2014-01-09 08:28:46 -05:00
Àlex Fiestas 1346d19ad2 Create FavIconsModule namespace in kdebug
Make FaviIconsModule a better neighbor of the KDED
community by having its own namespace :p

REVIEW: 111164
2014-01-07 06:49:53 +01:00
Frank Reininghaus 63a14f93d7 Merge remote-tracking branch 'origin/KDE/4.12' 2014-01-06 20:19:48 +01:00
Frank Reininghaus 8ed499f28f Kill any running preview jobs before starting a new one
If loading a preview takes long, it was possible before this commit
that a preview for a new item was requested before the first preview
was shown. In that case, there was a race condition, and the first
preview to arrive stayed in the Information Panel.

This commit fixes this by keeping a pointer to the preview job and
killing it before starting a new one.

BUG: 250787
FIXED-IN: 4.12.1
REVIEW: 114561
2014-01-06 20:15:11 +01:00
Frank Reininghaus 2553e9a2f4 Avoid calling KFileItemModel::index() in KFileItemModelRolesUpdater
KFileItemModel allows to find out the index of a KFileItem with its
index(const KFileItem&) method. Calling this method is not extremely
expensive, but it's also not free (it looks up the URL of the KFileItem
in a QHash, i.e., it has to call qHash(QString) for the full URL).

In KFileItemModelRolesUpdater, we sometimes converted the known index to
a KFileItem and then back to an index in applyResolvedRoles(KFileItem).
This patch fixes this by modifying applyResolvedRoles such that it takes
the index directly as its argument.

REVIEW: 114847
2014-01-06 20:10:08 +01:00
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