Commit graph

19 commits

Author SHA1 Message Date
Ivailo Monev
4051004a5e kio: checkDesktopFile() function optimization
KFileItem::isRegularFile() is a simple mode (member) check while
KFileItem::mostLocalUrl() does some dirty work

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-02 01:57:31 +03:00
Ivailo Monev
5301a82e4c kfile: do not store the custom protocols in KUrlNavigator
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-02 01:48:56 +03:00
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
74dc070da5 kfile: remove duplicate header inclusion
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-05 02:31:52 +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
9f05a33ee6 generic: build fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-23 14:08:10 +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
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
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
984ea61543 kfile: KTar does not support application/x-tzo
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-29 21:35:08 +03:00
Ivailo Monev
3fb0674831 generic: replace QLinkedList<T> with QList<T>
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-01-29 17:07:12 +02:00
Ivailo Monev
05c4419b77 generic: replace obsolete Qt::MidButton with Qt::MiddleButton
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-07 17:16:57 +00:00
Ivailo Monev
35a5ce1afe generic: remove some binary compatibility bits
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-02 23:23:14 +00:00
Ivailo Monev
21ad0df488 generic: make changes required for building against katie 2015-08-11 05:56:07 +03:00
Ivailo Monev
5333e9917d generic: remove deprecated API 2015-02-28 03:27:54 +00:00
Ivailo Monev
82fc15f54b generic: use CMake moc instead of automoc4 by default
for compatibilty reasons automoc4 support is not removed but it
shall be in the future. automoc4 has not been maintained for a
while (last commit is from 2011) and the stable release is from
2009.

CMake version >= 2.8.6 provides the functionality for mocking so
I see no reason to not make use of it.
2015-02-27 07:40:26 +00:00
Ivailo Monev
122f5ecea4 generic: remove Nepomuk support leftovers 2015-02-24 19:18:50 +00:00
Ivailo Monev
b99fa1400b more windows code remove 2014-11-19 15:19:19 +00:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00