Commit graph

723 commits

Author SHA1 Message Date
Frank Reininghaus e69d348975 Fix KFileItemModel performance regression
Commit 119f7a3f fixed a crash that was caused by the porting of the
natural sorting code to QCollator. QCollator is not thread-safe, so
every thread needs its own instance. However, that commit made every
recursive call in the sorting code create a new deep-copied QCollator
instance, which is quite expensive and thus made inserting any items
into the model very slow (this could also be seen in the KFileItemModel
benchmark).

This commit avoids unnecessary QCollator copying by forcing all sorting
functions which are called in the same thread to pass the 'lessThan'
object by const reference, such that no unnecessary copying of that
object, including a deep copy of the QCollator, takes place.

REVIEW: 123620
2015-05-07 22:14:00 +02:00
Ashish Bansal 1fe148805d Scroll by page if Shift Key is pressed
If shift key is pressed along with scroll, scroll up/down by whole page.

REVIEW: 123596
2015-05-06 15:47:18 +05:30
Lasse Liehu 82bf562c34 Enable translation scripting for date groups
This allows to work around limitations in Qt's date formatting.

Examples:

* Uppercasing the first character in a string because it's a title:
  Day of the week and month names returned by QDateTime::toString
  are usually lowercase.
* Correcting the noun case of a month name from "of [month]" to
  "in [month]" in Finnish: "of [month]" is correct when talking
  about a specific day, but wrong when talking about a specific month.

REVIEW: 123278
2015-04-23 17:40:33 +03:00
Lasse Liehu d4475653db Rewrap lines in KFileItemModel::dateRoleGroups
Now they are under 100 characters.
2015-04-23 17:40:33 +03:00
David Edmundson de84f223d4 Remove deprecated X scaling of QPixmaps
QPixmaps are no longer X pixmaps so this won't ever work anymore

REVIEW: 123138
2015-03-31 15:20:02 +02:00
David Edmundson 4ed0b82b02 Merge branch 'davidedmundson/highdpi'
REVIEW: 123137
2015-03-30 13:39:17 +02:00
David Edmundson 1b6ee5d6cd review comments 2015-03-27 16:28:57 +01:00
David Edmundson 35c0972671 Make KPixmapModifier::applyFrame handle high DPI images 2015-03-26 16:06:52 +01:00
David Edmundson 00b00d2371 Paint icons at the correct size 2015-03-25 18:31:40 +01:00
David Edmundson ebd03cc205 squash me with a some other commit in kitemlistwidgetinformant 2015-03-25 18:31:40 +01:00
David Edmundson ff8c61dbca Copy device pixel ratio from original pixmap inside KPixmapModifier::scale 2015-03-25 18:31:40 +01:00
David Edmundson 1fac8a7bba Create drag pixmaps which match the device pixel ratio 2015-03-25 18:31:40 +01:00
David Edmundson 6a4d4463b8 Provide scaled pixmaps in the main file model 2015-03-25 18:31:39 +01:00
Yuri Chornoivan e63b1de286 Fix some EBN issues 2015-03-19 20:13:40 +02:00
Emmanuel Pescosta 832e157ecd Port away from KDELibs4Support (we only use KDELibs4Support when baloo isn't present, because KFileMetaDataWidget is in KDELibs4Support)
Reviewed-By: Vishesh Handa
2015-02-26 18:10:42 +01:00
Emmanuel Pescosta 25751088c3 Move the KVersionControlPlugin2 interface from konqlib to Dolphin and remove the deprecated KVersionControlPlugin interface from konqlib
REVIEW: 122687
2015-02-25 17:21:10 +01:00
Emmanuel Pescosta 169cca55b9 Replace kDebug/kWarning by categorized logging (org.kde.dolphin) 2015-02-24 13:07:35 +01:00
Emmanuel Pescosta 6d9f5b2131 Removed unused KGlobal includes and use KIO/Job instead of KIO/JobClasses 2015-02-24 12:51:24 +01:00
Emmanuel Pescosta b3a0c25314 include KFileItem instead of KFileItemList 2015-02-24 12:25:28 +01:00
Emmanuel Pescosta 092ddf7702 Port away from KLocale 2015-02-24 12:22:16 +01:00
Emmanuel Pescosta 13a4c5ed4c Fix a QDateTime porting bug (different format expressions) in KFileItemModel::dateRoleGroups
REVIEW: 122625
2015-02-20 14:16:27 +01:00
Montel Laurent f67bdd0fb7 kdelibs4support-- 2015-02-06 13:21:27 +01:00
Montel Laurent 159234944c Fix includes 2015-02-06 09:35:26 +01:00
Montel Laurent c61cfc9860 Fix includes 2015-02-06 09:22:34 +01:00
Emmanuel Pescosta 5100c20c0d Port away from KGlobalSettings::singleClick() and use the mouse kcm module instead of implementing the single/double click settings on our one.
REVIEW: 122311
2015-02-01 16:16:13 +01:00
Emmanuel Pescosta fdb5c0d33e Port away from KGlobalSettings::naturalSorting() by moving it to Dolphin's GeneralSettings
REVIEW: 122310
2015-01-31 21:05:28 +01:00
Emmanuel Pescosta 08252ffc69 Port away from KGlobalSettings::graphicEffectsLevel()
REVIEW: 122309
2015-01-30 09:02:08 +01:00
Emmanuel Pescosta a06ee3399b Merge branch 'Applications/14.12' into frameworks
Conflicts:
	dolphin/src/main.cpp
	kdepasswd/kcm/kcm_useraccount.desktop
	konqueror/settings/ebrowsing/ebrowsing.desktop
	konqueror/settings/kio/cache.desktop
	konqueror/settings/kio/cookies.desktop
	konqueror/settings/kio/netpref.desktop
	konqueror/settings/kio/proxy.desktop
	konqueror/settings/kio/smb.desktop
	konqueror/settings/kio/uasproviders/firefox30oncurrent.desktop
	konqueror/settings/kio/uasproviders/ie90onwinnt71.desktop
	konqueror/settings/kio/useragent.desktop
	lib/konq/konq_operations.cpp
2015-01-28 17:13:59 +01:00
Emmanuel Pescosta 119f7a3fce Fix for crash which was introduced by commit
c2a0d3e889666539669562a6c1f7a080a0f29b11
(use QCollator instead of KStringHandler)

REVIEW: 121817
BUG: 342316
2015-01-04 21:45:30 +01:00
Emmanuel Pescosta 95220eebae Port from KStringHandler naturalCompare to QCollator compare.
Make use of the QCollator instance (m_collator) in nameRoleGroups instead of using QString::localeAwareCompare (uses QCollator internally)

We don't need the m_caseSensitivity anymore, because the QCollator instance also holds this information.

(This patch doesn't make use of QCollatorSortKey)

Reviewed by Kai

REVIEW: 121480
2014-12-17 17:48:10 +01:00
Andrius da Costa Ribas e1789b559e Fix Exports.
REVIEW: 121078
2014-11-20 01:06:58 -02:00
Emmanuel Pescosta d0f0f1f2e2 make use of initializer lists 2014-11-10 08:45:38 +01:00
Emmanuel Pescosta 82f19ab470 get rid of unused warnings 2014-11-10 08:42:37 +01:00
Frank Reininghaus 7e58ee0133 Make sure that m_selectionToggle is not 0 before calling deleteLater()
Commit 1938ad54d4 replaced delete by
deleteLater(). However, the latter cannot be used safely with null
pointers. This commit adds a safety check in order to make sure that
we do not get a crash.

Thanks to Christoph Feck for pointing out this issue.
2014-11-09 21:57:40 +01:00
Frank Reininghaus b73ed8eba9 Use deleteLater() to delete the selection toggle in KItemListWidget
This patch should make a crash with a backtrace as provided in the bug
report impossible. I'm not sure if this would really prevent the crash
- it looks like the actual cause of the problem could be in
QGraphicsView or anywhere else, but it's hard to tell because the bug
was reported just once and does not seem reproducible. But I'm pretty
sure that this change doesn't make anything worse.

BUG: 334785
REVIEW: 121087
2014-11-09 18:08:29 +01:00
Arjun AK cbe1d6aca4 Ensure input is a valid regexp before enabling regexp filter mode
Checking whether the input contains '*', '?' or '[' alone will
not do since there can be files with '[' in their name.

REVIEW: 120986
BUG: 340470
FIXED-IN: 14.12
2014-11-09 19:36:20 +05:30
Lukáš Tinkl 037d5db85b Q_DECL_OVERRIDE 2014-11-03 23:52:18 +01:00
Montel Laurent a76cb4c67f Port to QDebug*. KVBox-- 2014-10-27 22:30:02 +01:00
Lukáš Tinkl 1b4572dac9 port Dolphin from KUrl to QUrl
REVIEW: 120688
2014-10-21 21:19:14 +02:00
Lukáš Tinkl d9d7926c49 port Konqueror from KUrl to QUrl
REVIEW: 120650
2014-10-21 00:28:58 +02:00
Montel Laurent 0a6257bce3 Fix includes 2014-10-18 15:00:17 +02:00
Montel Laurent 31a0c4fbd5 Fix includes 2014-10-18 14:42:41 +02:00
Montel Laurent cac9083e2c fix forward declaration 2014-10-18 14:38:28 +02:00
Vishesh Handa 93465171bc Port Dolphin to the new Baloo APIs
REVIEW: 120582
2014-10-14 18:08:18 +02:00
Montel Laurent 6f6b1bbb69 Clean includes + port to QMenu 2014-10-10 23:36:36 +02:00
Montel Laurent 5c1420fec9 kdelibs4support-- 2014-10-07 07:38:16 +02:00
Emmanuel Pescosta 4de8cf43e6 Ported KIcon to QIcon
REVIEW: 120159
2014-09-12 13:15:54 +02:00
Emmanuel Pescosta b111b1482a fixed TODO:
Qt5: Replace Qt::XButton1 by Qt::BackButton and Qt::XButton2 by Qt::ForwardButton
2014-09-11 14:51:06 +02:00
Emmanuel Pescosta d4fb129710 Merge branch 'master' into frameworks
Conflicts:
	dolphin/src/dolphinmainwindow.cpp
	dolphin/src/dolphinmainwindow.h
	dolphin/src/dolphinrecenttabsmenu.cpp
	dolphin/src/dolphinviewcontainer.cpp
	kfind/CMakeLists.txt
2014-08-22 23:17:02 +02:00
Frederik Gladhorn 316539b9f3 Port accessibility to Qt 5
REVIEW: 119428
2014-08-10 19:00:02 +02:00