Commit graph

21 commits

Author SHA1 Message Date
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
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
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
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
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
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
98e133548c kfile: include required QTimer header
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-08 12:20:42 +03: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
e88c621aa2 generic: authorization reimplementation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-25 19:27:41 +03:00
Ivailo Monev
08f290fa8b generic: cast pointers with QObject as base class via qobject_cast<T>()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-01 18:06:11 +00:00
Ivailo Monev
ed512b28ae kfile: replace static function call with its body where used
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-21 21:20:31 +00:00
Ivailo Monev
18ac6803e4 kfile: code shrinks 2015-10-12 18:18:24 +03:00
Ivailo Monev
21ad0df488 generic: make changes required for building against katie 2015-08-11 05:56:07 +03:00
Ivailo Monev
bbea8b2acc generic: drop most of the KIOSK functionality 2015-05-19 05:23:35 +00:00
Ivailo Monev
bf501e6429 generic: remove redudant virtual_hook definitions 2015-04-23 14:50:12 +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
c3f3bcb965 windows code remove 2014-11-19 15:17:14 +00:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00