Commit graph

134 commits

Author SHA1 Message Date
Ivailo Monev
debf72cbf2 kfile: fix up action for KUrlNavigator
the fix is only for non-local file URLs, KUrl already does the correct
thing by stat()-ing local file URLs (see KUrl::upUrl())

trailing slash is added to the URL by
KUrlNavigator::Private::updateButtonVisibility() too before checking if it
is possible to go up which essentially means that KUrlNavigator was not
ment to be for files (it does not autocomplete files either) even tho it is
possible to open file by adding file name manually to the URL (via dolphin
anyway, not via KFileDialog tho)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 13:00:31 +03:00
Ivailo Monev
f452e2e50b kdecore: reimplement KDateTime via QDateTime
KDateTime shall be used only for storing date and time while KLocale
shall be used to display such, not even going to test what KDateTime
does because it is basically a few methods on top of QDateTime now.

and because QDateTime knows not much about calendar systems while
KLocale supports several it makes sense for KDateTime to not be used for
displaying date and time thus the TODOs for KLocale are simply removed

note that KLocale still uses its own parser and formatter which means
that the change affects only KDateTime and its uses, not KLocale

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-21 07:51:13 +03:00
Ivailo Monev
888f1bec7c generic: drop support for sequenced thumbnails
unused

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-15 00:24:33 +03:00
Ivailo Monev
8cf2ae7bc2 generic: drop floppy support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-14 06:30:29 +03:00
Ivailo Monev
82a26a1197 kfile: set the remote protocol category to places
because it is part of the places (see KFilePlacesModel)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-14 06:04:02 +03:00
Ivailo Monev
e3f4e41c44 kfile: add mtp protocol to KUrlNavigatorProtocolCombo categories, remove reference to non-existing protocols
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-13 18:22:59 +03:00
Ivailo Monev
55a923205a kfile: fix KDirSortFilterProxyModel sorting by permissions for non-local files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-06 20:00:20 +03:00
Ivailo Monev
5cb62b9388 solid: use QString instead of QVariant for the Solid::StorageAccess signals arguments
to avoid needless conversion to and from QVariant

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-05 07:03:18 +03:00
Ivailo Monev
74dc070da5 kfile: remove duplicate header inclusion
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-05 02:31:52 +03:00
Ivailo Monev
0c7ca11781 kfile: show message appropriate for the mode from KFileWidget::slotOk()
follow-up on 7f92b84e27

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-05 02:29:38 +03:00
Ivailo Monev
471df42df0 kio: remove now non-operational KDirLister::OpenUrlFlags
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 13:34:54 +03:00
Ivailo Monev
6fd9d4463f kfile: disable the KFileWidget filter widget for directory only mode
TODO from 55458f706c

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 10:25:13 +03:00
Ivailo Monev
7f92b84e27 kfile: show message appropriate for the mode from KFileWidget::slotOk()
TODO from 55458f706c, this is something that
should've been done when KFile::Directory was introduced (before the fork)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 10:06:25 +03:00
Ivailo Monev
ee0d50c901 generic: purge most manual tests
long overdue, have no use for them

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 07:03:28 +03:00
Ivailo Monev
978cf7f0dd kfile: add the selected directory to recent directories from KFileWidget
note that if class was not empty any URL selected was added to recent dirs
(which could be a file, duh). now directories will be added only for
directory mode and when the class (see KFileWidget about starting
directory) is not empty

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 04:06:55 +03:00
Ivailo Monev
4cc96022e8 generic: drop KFile::Tree and KFile::DetailTree modes
is interesting how things are all over kio and kfile for this

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 03:26:43 +03:00
Ivailo Monev
55458f706c kfile: purge KDirSelectDialog
that way file and directory dialogs will be consistent, not to mention
there were things that KDirSelectDialog was lacking such as resizable
places area.

more changes are needed to account for the directory mode
(KFile::Directory), currently for directory only mode the filter is set
to "All Folders" but it can be changed (the filter widget is not
disabled). also when an attempt to open non-existing directory by name
(via the name input widget) the error says "the file cannot be found"
- it should be "the directory cannot be found" for directory mode

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 03:25:54 +03:00
Ivailo Monev
29628e9f4e kfile: remove redundant KDirOperatorDetailView destructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-01 20:02:29 +03:00
Ivailo Monev
bbacbaf373 kfile: KDirOperator::Private::checkPreviewInternal() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-01 20:02:15 +03:00
Ivailo Monev
7b2e97c1c9 kfile: remove redundant KDirOperatorDetailView::currentChanged() method
the QTreeView::currentChanged() method is not virtual

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-01 19:49:41 +03:00
Ivailo Monev
fd93fbbecc kio: reimplement KDirLister
has to be done to fix the caching issues, bonus points for being much
simpler and cleaner

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-01 06:18:59 +03:00
Ivailo Monev
5290bf44e0 kdecore: deal with KMimeType TODO
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-29 19:51:10 +03:00
Ivailo Monev
eac8fd79cc kdecore: re-use KUrl::AdjustPathOption for KUrl::fileName() and KUrl::directory()
so that it is clear that the options shall affect only the result, also for
local files the correct thing can be done regardless of the trailing slash
as is done in KUrl::upUrl()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-26 20:47:38 +03:00
Ivailo Monev
181e119ecc kdecore: KUrl::equals() rework to use KUrl::url() for the comparison
same thing (all URL components are compared) except the trailing slash
option can be re-used for it essentially adding one more option (to add
trailing slash when comparing)

also fixed and tested KUrl::upUrl() for some cases

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-26 01:30:23 +03:00
Ivailo Monev
30cd526513 kdecore: set the scheme to file when it KUrl is constructor from string and it is empty
the test case for it is "local file 3" case of KUrl::cleanPath() test and
the KUrlNavigator test

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-23 17:53:20 +03:00
Ivailo Monev
9f05a33ee6 generic: build fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-23 14:08:10 +03:00
Ivailo Monev
3cdc7da129 kdecore: simplify KUrl by using QDir::cleanPath() and QUrl::resolved()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-23 11:30:35 +03:00
Ivailo Monev
0db3a7291f kfile: adjust query check in KFileWidget::getStartUrl()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-22 15:32:21 +03:00
Ivailo Monev
ed79c859b2 generic: merge KDELibs4ToolsTargets and KDELibs4LibraryTargets
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 23:57:38 +03:00
Ivailo Monev
5613e5483c generic: remove redundant build varibles
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 20:25:52 +03:00
Ivailo Monev
36c910c653 generic: move stuff from KDE4Internal module to KDELibs4Config
large-scale changes to the build system, nothing a user sees tho - it is
all under the hood

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 19:01:40 +03:00
Ivailo Monev
16600b80d7 kfile: remove redundant KUrlNavigator::keyReleaseEvent() reimplementation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-12 23:19:48 +03:00
Ivailo Monev
c865e56c82 kfile: remove duplicate header inclusions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-12 23:19:27 +03:00
Ivailo Monev
7394efdc83 kfile: KFilePlacesItem optimizations
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-12 22:02:10 +03:00
Ivailo Monev
102f74021f kio: export KAbstractViewAdapter class
currently only the plasma folderview applet uses it but it has a copy of
the header so better export it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-12 16:31:48 +03:00
Ivailo Monev
56ca9a4c41 generic: remove redundant fixx11h header inclusions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-11 18:42:58 +03:00
Ivailo Monev
78933232a2 generic: remove build variable used to specify library type
only shared builds are supported now

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-10 23:19:17 +03:00
Ivailo Monev
e978590acd generic: define KDE_DEFAULT_DEBUG_AREA in the main build file for each library
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-09 23:43:20 +03:00
Ivailo Monev
a05e71695c kfile: drop support for reading bookmarks from user-places.xbel
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-08 14:32:21 +03:00
Ivailo Monev
98e133548c kfile: include required QTimer header
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-08 12:20:42 +03:00
Ivailo Monev
25bc94ac0e kio: remove unused KBookmarkExporterBase, KBookmarkImporterBase and KXBELBookmarkImporterImpl classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-08 08:16:00 +03:00
Ivailo Monev
ea7d508307 kfile: mark KFileBookmarkHandler reimplementations as final
also KFileBookmarkHandler::openBookmark() is not used as slot

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-06 14:22:22 +03:00
Ivailo Monev
004a32ab63 kfile: remove declaration of non-existing KFileBookmarkHandler::popupMenu() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-06 14:14:53 +03:00
Ivailo Monev
dc77272b5d kfile: remove unused KFileBookmarkHandler member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-06 14:09:27 +03:00
Ivailo Monev
57b0640985 kfile: remove declaration of non-existing KFileBookmarkHandler::importOldBookmarks() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-06 14:08:39 +03:00
Ivailo Monev
7862c2ca66 kio: remove unused KBookmarkDomBuilder class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-06 14:06:47 +03:00
Ivailo Monev
bfa8788988 kfile: remove archive KIO slaves leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-08 09:24:52 +02:00
Ivailo Monev
9b41127ecb generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-13 00:40:18 +02:00
Ivailo Monev
ae2e43ccc8 kfile: remove unused QFSFileEngine header inclusion
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-29 19:17:03 +03:00
Ivailo Monev
49c15a69a8 kfile: log KNewFileMenu messages to the kfile area
1203 is reserved for libkonq

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-22 20:44:49 +03:00