Commit graph

64 commits

Author SHA1 Message Date
Ivailo Monev
9e554f60fa generic: add new signal to solid device manager
its use case is shown in KFilePlacesModel, basically when a CD-ROM is
ejected it will be removed from the items in the model and when disc is
inserted item for it will be added to the model. Dolphin and Plasma require
changes of their own for this behaviour to be consistent across
applications

naming the method after OpticalDisc::availableContent(), have in mind it
should work when a disc is erased and written to for example or when a
device is formatted and no longer has filesystem which has not been tested
but in theory should work. may need additional checks for encrypted device
but that can be done in the future

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-06-10 02:15:42 +03:00
Ivailo Monev
842de7a83f generic: handle optical drive/disc as block devices
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-06-09 12:43:00 +03:00
Ivailo Monev
cdebea1cc0 plasma: remove unused member and class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-17 12:51:59 +02:00
Ivailo Monev
3022d99c57 generic: query enabled by default thumbnail creators plugins
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-11 09:43:47 +02:00
Ivailo Monev
58d483d9df generic: enable svgthumbnail by default
fixes thumbnails generation in plasma-desktop wallpaper configuration for
wallpapers in SVG format

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-11 09:17:56 +02:00
Ivailo Monev
31ee051ff4 generic: remove some compatibility bits
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-02-27 08:58:02 +02:00
Ivailo Monev
a2e5c29151 kfile: remove redundant KFilePlacesItem::m_manager member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-02-03 10:28:06 +02:00
Ivailo Monev
4d6fb007e7 generic: fix most of the overlinking issues
TODO from https://github.com/fluxer/katana/issues/7. I've decided to
keep KDE4 and Katie libraries as PUBLIC, all other libraries as PRIVATE
for that and not use INTERFACE at all since that will not require a lot
of changes to all other sub-projects (kde-baseapps, kde-workspace and
kde-extraapps) build systems.

MusicBrainz5 CMake module was also rewritten as the actual library that
should be linked to is libmusicbrainz5cc, libmusicbrainz5 is the C
version of it.

common checks for X11 extensions where move to main config header,
eventually to be moved to separate config-x11 header.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-09 21:58:11 +00:00
Ivailo Monev
48b41aadb9 kfile: fix race condition in KDirOperatorTest::testBug187066() test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-01 23:10:36 +00:00
Ivailo Monev
63cf8d43d5 generic: fix bootstrap build with testing enabled
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-01 22:53:13 +00:00
Ivailo Monev
5d6db58b4d generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-17 01:08:55 +00:00
Ivailo Monev
5b41f81878 generic: make use of KSettings where possible
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-12 17:45:25 +00:00
Ivailo Monev
cb8b3764f4 kfile: KFilePlacesViewDelegate cleanup
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-30 12:52:44 +00:00
Ivailo Monev
bdbbb9df78 generic: fix build against Katie
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-30 12:52:32 +00:00
Ivailo Monev
aede58befc generic: reimplement KDirWatch
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-29 12:18:09 +00:00
Ivailo Monev
f993043c4b generic: various cleanups
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-29 00:26:21 +00:00
Ivailo Monev
b545a580fa kfile: deal with TODO in KFilePlacesItem
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-28 23:41:15 +00:00
Ivailo Monev
3c5863fc0c kfile: fix issue #14
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-28 19:14:57 +00:00
Ivailo Monev
2f8448c76c generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-17 16:14:26 +00: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
61333c4671 generic: namespaced Qt4/Katie build fixes
most of the changes were done trought Katie's namefsck script which
convertes forward class declarations to include directives, however
other fixes here and there were needed as well as some questionable
changes to Q_DECLARE_TYPEINFO() macro calls because they most likely
have to do the namespacing themselfs (QT_BEGIN/END_NAMESPACE, and
probably will be in Katie) meaning that some of the changes may be
temporary and reverted later.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2017-08-04 09:24:39 +00:00
Ivailo Monev
8e79cf1d5a generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-11-03 12:19:19 +00:00
Ivailo Monev
3716d95998 generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-16 02:33:29 +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
710d16586f kfile: just use the toolkit for prewview image scaling
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-08-12 01:33:33 +00:00
Ivailo Monev
1f34f5ad73 generic: use CMake export header generator
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-27 20:13:02 +00:00
Ivailo Monev
da5cc549b4 kfile: KDirOperator::setUrl() review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-24 16:12:51 +00:00
Ivailo Monev
8ce61f70f3 kfile: fix regression since a4448333
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-24 09:04:32 +00:00
Ivailo Monev
a4448333c4 kfile: improve URL sanity check in KDirOperator::setUrl() 2016-04-23 20:58:28 +00:00
Ivailo Monev
271d52a150 kfile: cleanup and fixup KDirOperator
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-23 18:00:45 +00:00
Ivailo Monev
b48a55f396 generic: make use of qrand(), cleanup some checks in KDirOperator
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-22 01:32:28 +00:00
Ivailo Monev
30f56322ae kfile: remove compat and temporary code
the use of QDir over KIO::NetAccess speeds things up a little bit since the
Qt filesystem engine caches operations

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-21 22:58:37 +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
d147517cd5 generic: remove redudndant kdelnk checks
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-21 20:13:10 +00:00
Ivailo Monev
76b834d054 generic: remove redundant KHBox and KVBox headers inclusions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-18 18:42:39 +00:00
Ivailo Monev
b9788987ab generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-28 16:28:57 +00:00
Ivailo Monev
82dbf8202b generic: remove redundant classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-23 04:31:52 +02:00
Ivailo Monev
8cc2eab7fd generic: build system cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-02 04:32:40 +02:00
Ivailo Monev
dfc0b3b9bc generic: build system cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-01 15:28:30 +02:00
Ivailo Monev
562e784798 generic: stop using obsolete code paths
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-10-28 05:09:29 +02:00
Ivailo Monev
190fbddbbe generic: misc cleanups 2015-10-17 10:38:24 +03:00
Ivailo Monev
587dfedf8e kfile: remove deprecated updatePreviews method 2015-10-13 13:19:02 +03:00
Ivailo Monev
18ac6803e4 kfile: code shrinks 2015-10-12 18:18:24 +03:00
Ivailo Monev
69f2daf774 generic: code shrinks 2015-09-28 15:50:22 +00:00
Ivailo Monev
8e6fd12430 kfile: minor code shrink
iterating over empty list does nothing thus checking if the list
is empty before doing so seems pointless
2015-09-28 14:22:24 +00:00
Ivailo Monev
8718369cb2 kfile: minor library shrink 2015-09-28 14:11:01 +00:00
Ivailo Monev
7e6bd222da generic: cleanup headers inclusions 2015-09-24 17:34:26 +00:00
Ivailo Monev
e7133114e1 generic: misc cleanups 2015-09-05 05:16:46 +00:00
Ivailo Monev
078b3431a5 generic: misc cleanups 2015-09-03 22:21:32 +00:00
Ivailo Monev
007a44cd2f generic: major build system cleanup
the test are broken!
2015-09-01 01:05:33 +03:00