this will reject URLs such as https://foobar.com/ because kget cannot
handle such even tho KIO can get the page content (without the filename
component there is no telling what kget should save the URLs as, the
destination has to completed with filename manually)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
KHTTP rejects anything but GET or HEAD, see the following commit in the
kdelibs repo:
362b80c063948406c1de1d74c5e3e77dbd27a9ed
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
KUrl::upUrl() does not simply remove the filename component of the URL
now, KUrl::directory() does that (as it should)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
much more reliable than chopping the path into pieces to figure out the
package name. also because KGlobal::dirs()->findDirs() returns paths with
trailing slash the previous method was returning empty string
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
functionally the same except that it is not bound to the QIconEngine class
and if QIconEngine changes it does not have to be adjusted
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
where zero time timers do not make sense, e.g. when the frame applet
slideshow should be updated (never updating the slideshow automatically
could be a feature because the frame shows arrows to switch between images
but zero time for the slideshow is not handled by the frame applet)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
KImageIO::pattern() returns pattern for use in QFileDialog (glob and MIME
comment included) which is not valid filter for QDirIterator
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
poppler::get_creation_date() and the other date-related functions are not
documented to return such but it happens
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
in case the button text is not shown for some reason, also visually
indicating what the button will do
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
otherwise if the applet is resized to, say, 100x100 the icon would be still
16x16 - very small for applet with a 100x100 size
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
color can be now drag-n-dropped from kcolorchooser for example, dragging
the color that kolourpicker has picked may be implemented in the future
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
also not emitting the configValueChanged() signal while searching to not
trigger changes on the weather applet side while that is happening (after
search the source will be changed after selecting location item)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
by not using the location widget to display error and by not setting the
line edit widget text behind the back of KComboBox a lot of quirks are
fixed
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
plus something to fix (or improve) - when a color is dropped onto
buttons the color is changed but does not persist trough kcalc restart
regardless if custom button color is set or not
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>