Kevin Ottens
22f74fc0ca
More removals of Q_WS_* in favor of Q_OS_* or HAVE_X11
2012-08-03 11:45:20 +02:00
Albert Astals Cid
75ccb1b463
More K_GLOBAL_STATIC -> Q_GLOBAL_STATIC porting
...
Acked by dfaure
REVIEW: 105611
2012-07-19 21:19:01 +02:00
Marco Martin
f65d8b2abb
move all ContainmentPrivate impl in own file
2012-07-17 14:21:45 +02:00
Marco Martin
4a747bf164
appletprivate.cpp -> applet_p.cpp
2012-07-17 13:44:50 +02:00
Marco Martin
095a196120
move qgv privates in graphicsview/private
2012-07-16 21:35:17 +02:00
David Faure
68a7db068b
KUrl::List -> QList<QUrl> everywhere. Make KDirNotify API take urls, to avoid conversions in the caller.
...
DBus, however, needs QList<QUrl> <-> QStringList conversions, which is why
both nepomuk and now KIO have methods for this... => submitted to Qt5's QUrl.
2012-07-15 23:56:29 +02:00
David Faure
02260596a2
Fix compilation with Qt4
2012-06-23 01:00:19 +02:00
Stephen Kelly
9d49500245
Merge remote-tracking branch 'origin/KDE/4.8' into frameworks
...
Conflicts:
CMakeLists.txt
interfaces/terminal/example/CMakeLists.txt
kdecore/CMakeLists.txt
kdeui/actions/ktogglefullscreenaction.cpp
kdeui/widgets/khelpmenu.cpp
kio/kio/accessmanager.cpp
kio/kio/accessmanagerreply_p.cpp
nepomuk/core/nepomukmainmodel.cpp
nepomuk/core/resourcedata.cpp
nepomuk/core/resourcemanager.cpp
nepomuk/query/andterm_p.h
nepomuk/query/comparisonterm.cpp
nepomuk/query/comparisonterm_p.h
nepomuk/query/literalterm.cpp
nepomuk/query/literalterm_p.h
nepomuk/query/negationterm.cpp
nepomuk/query/negationterm_p.h
nepomuk/query/optionalterm.cpp
nepomuk/query/optionalterm_p.h
nepomuk/query/orterm.cpp
nepomuk/query/orterm_p.h
nepomuk/query/query.cpp
nepomuk/query/resourceterm.cpp
nepomuk/query/resourceterm_p.h
nepomuk/query/resourcetypeterm.cpp
nepomuk/query/resourcetypeterm_p.h
nepomuk/query/term_p.h
plasma/package.cpp
plasma/private/service_p.h
plasma/runnermanager.cpp
staging/kwidgets/autotests/kiconloader_unittest.cpp
tier1/kcoreaddons/src/caching/kshareddatacache.cpp
tier1/kdbusaddons/src/kdbusinterprocesslock.cpp
tier1/solid/src/solid/backends/fstab/fstabmanager.cpp
tier1/solid/src/solid/backends/wmi/wmicdrom.cpp
tier1/solid/src/solid/backends/wmi/wmidevice.cpp
tier1/solid/src/solid/backends/wmi/wmimanager.cpp
tier1/solid/src/solid/backends/wmi/wmiopticaldisc.cpp
2012-06-16 13:40:47 +02:00
David Faure
d2a0d70fcd
Ran convert-kstandarddirs.pl and fixed compilation (includes) in a few places
2012-06-12 15:02:33 +02:00
David Faure
907c6c2b02
KStandardDirs => QStandardPaths
...
(mostly using kf5/convert-kstandarddirs.pl)
2012-06-05 01:16:35 +02:00
David Faure
0fd5c690c8
KStandardDirs::locate/locateLocal ported, by script, this time.
...
(kdesdk/scripts/kf5/convert-kstandarddirs.pl coming up)
2012-05-30 20:25:25 +02:00
Stephen Kelly
745b39d905
Port from kde4_add_executable to ecm_mark_as_test.
2012-05-24 23:56:32 +02:00
Alex Merry
23b50f2dee
Allow QML items to be associated with operations in Plasma::Service
...
QML items derive from QGraphicsObject, but not QGraphicsWidget. We
actually only need QGraphicsObject (for the enabled property).
This allows calling (dis)associateWidget from QML (eg: in javascript
plasmoids) and passing in a QML item.
2012-05-11 11:55:48 +01:00
David Faure
4ce1afaa9f
Enable -DQT_NO_URL_CAST_FROM_STRING globally, and fix the code.
2012-05-02 15:08:52 +02:00
Julien Desgats
a69cb53cc5
Fixed some QIcon and kiconloader compile errors for Plasma
...
Reviewed by: Kevin Ottens
2012-04-28 16:57:00 +02:00
David Faure
af211f7c93
KIcon("foo") -> KDE::icon("foo")
...
include kicon.h -> kiconloader.h, or often, nothing at all.
2012-04-28 13:17:42 +02:00
John Layt
f404ada067
Remove unneeded klocale.h and kglobal.h
...
Replace locale.h with klocalizedstring.h where only i18n() needed
2012-04-06 16:42:07 +01:00
Stephen Kelly
4a1df77400
Port from KGlobalSettings::dndEventDelay() to QApplication::startDragDistance()
2012-04-04 11:43:46 +02:00
Claus Christensen
658fad620a
Replaced KGlobal::config() by KSharedConfig::openConfig()
...
Remodified: kded/kdedadaptor.cpp
2012-03-24 19:33:54 +01:00
Kurt Hindenburg
7463dde514
Allow plasma to build by adding kurl includes
2012-03-24 12:06:28 -04:00
David Faure
2365f2c657
Some KUrl-QUrl porting.
2012-03-11 10:34:38 +01:00
Marco Martin
8b00555903
move some stuff in qgv's private
2012-02-28 20:00:42 +01:00
Marco Martin
dba549382b
coronabase, a pure qobject corona
2012-02-28 19:22:59 +01:00
Marco Martin
c8a1b35f78
cleanupanddelete is qgv specific too
2012-02-28 16:52:11 +01:00
Marco Martin
abadc77276
move something more in the qgv class
2012-02-28 16:42:22 +01:00
Stephen Kelly
39afa5498b
Fix Qt5 build.
...
The operator QString() has been removed.
2012-02-27 10:51:45 +01:00
Marco Martin
2a909445bd
completely separe appletprivate
...
will be easier then to split with the qgraphicsview version
2012-02-20 16:38:00 +01:00
Christophe Giboudeaux
3a8ffb89c0
Remove deleted include
2012-02-20 12:40:47 +01:00
Aaron Seigo
03f35f1667
use libkwindowsystem
2012-02-19 14:07:35 +01:00
David Faure
083d157684
Merge remote-tracking branch 'origin/KDE/4.8' into origin-frameworks
...
Conflicts:
kdecore/network/k3datagramsocket.cpp
kdeui/actions/kstandardaction.cpp
kdeui/dialogs/kconfigdialogmanager.cpp
kdeui/icons/kicondialog.cpp
kdeui/itemviews/kviewstatesaver.h
kfile/knewfilemenu.cpp
kio/misc/kpac/downloader.cpp
kio/tests/kdirlistertest.cpp
kparts/browserextension.cpp
nepomuk/core/nepomukmainmodel.cpp
nepomuk/query/queryserviceclient.cpp
nepomuk/test/ratingpaintertestwidget.cpp
nepomuk/ui/kedittagsdialog.cpp
nepomuk/ui/ktagcloudwidget.cpp
nepomuk/ui/ktagdisplaywidget.cpp
nepomuk/ui/nepomukmassupdatejob.cpp
nepomuk/ui/tagwidget.cpp
nepomuk/utils/daterangeselectionwidget.cpp
nepomuk/utils/facetwidget.cpp
nepomuk/utils/searchwidget.cpp
plasma/containment.cpp
plasma/datacontainer.cpp
plasma/deprecated/animator.cpp
plasma/extenders/extender.cpp
plasma/plasma.h
plasma/scripting/wallpaperscript.cpp
tier1/solid/tests/networkingclient.cpp
(signal/slot normalization changes conflicted with KUrl->QUrl changes
and with other changes in frameworks)
2012-02-14 12:32:25 +01:00
Dawit Alemayehu
fb0b49af8c
Normalize all signal/slot connections.
...
REVIEW: 103728
2012-02-13 14:27:21 -05:00
David Faure
9057ce0c70
Fix compilation with the new cmake automoc stuff.
2012-02-08 23:34:07 +01:00
Stephen Kelly
d660ec244e
Merge remote-tracking branch 'origin/KDE/4.8' into frameworks
2012-02-07 12:38:06 +01:00
Stephen Kelly
b1b68adb7d
Don't use the QtGui module name in includes.
...
In Qt5, many of them are moved to QtWidgets, so this is the only
way to be source compatible with both Qt 4 and Qt 5.
2012-02-02 10:35:53 +01:00
Stephen Kelly
8d37df4b8f
Remove moc includes that can be omitted.
...
Mostly these are "<name>.moc" style includes which are incorrect
compared to qmake and cmake automoc behaviour.
2012-01-31 22:44:36 +01:00
Aaron Seigo
64f687dda0
hide tooltips on the applet when the handle is hovered
2012-01-27 15:34:01 +01:00
Aaron Seigo
8b09ffb51f
Merge remote branch 'origin/KDE/4.7' into frameworks
...
Conflicts:
plasma/corona.cpp
plasma/packagemetadata.cpp
plasma/private/packages.cpp
plasma/theme.cpp
2011-12-20 11:57:49 +01:00
Aaron Seigo
ca915b0e6c
allow resizing from both relevant corners of a popup dialog
...
also significantly cleans up the popup positioning code and fixes a
lurking bug where width() was used instead of height()
BUG:227095
2011-12-16 14:58:39 +01:00
Aaron Seigo
d6e06ff92d
allow controlling the resize a bit more
...
this allows e.g. popupapplet to put constraints on where the edges of the window can resize to
and react differently when the user is actively resizing the dialog.
CCBUG:227095
2011-12-16 14:57:20 +01:00
Aaron Seigo
1b2d92c085
delay showing popups until the next processing of events
...
allows things like hidden panels to show before calculating where to show the popup
BUG:288999
2011-12-16 12:52:29 +01:00
David Faure
c7ab521ee7
Merge remote-tracking branch 'origin/KDE/4.7' into origin-frameworks
...
Conflicts:
experimental/libkactivities/
plasma/applet.h
plasma/theme.cpp
staging/libkcoreaddons/src/jobs/kjob.cpp
2011-12-08 19:06:24 +01:00
Aaron Seigo
359cc3d68a
the effect watcher is not blur specific
2011-12-08 12:54:28 +01:00
Aaron Seigo
fe2286c5da
remove unecessary painting
2011-12-07 14:43:07 +01:00
Aaron Seigo
abd1d9ddba
make shortcuts and sharing settings enable Apply; use a QWeakPointer forthe shortcuts widget
2011-12-06 17:36:39 +01:00
Aaron Seigo
71d807c353
Merge remote branch 'origin/KDE/4.7' into frameworks
...
Conflicts:
CMakeLists.txt
kio/kfile/kfilemetadatareaderprocess.cpp
plasma/CMakeLists.txt
plasma/packagestructure.cpp
plasma/private/packages.cpp
threadweaver/Mainpage.dox
2011-12-04 14:25:38 +01:00
Aaron Seigo
27531a3173
the palette gets updated by all sorts of events on the scene now (incl. reparenting!), so make sure the palette is _really_ changing before marking it as custom
...
this fixes widget colours not updating with theme changes -> if, for instance, an offscreen widget is created, this results in a reparenting (to null)
and that in turn creates a palette changed event ... which was being intepretted as a custom palette being set and that would disable future updates
due to theme changes.
this also introduces a small helper which computes the palettes once for use by all widgets as a small performance improvement.
BUG:261967
2011-12-04 14:00:32 +01:00
Jaime Torres
2c5ec1a56a
change return by break and then add a common return
...
removing dead code (part of review 103323)
2011-12-04 12:27:01 +01:00
Jaime Torres
be08974bfe
remove dead code
...
remove dead code (see review 103323)
2011-12-04 12:25:46 +01:00
Aaron Seigo
97e4bd53d3
don't delete the kns3 dialog on application shutdown
...
BUG:288153
2011-12-03 21:22:45 +01:00
Aaron Seigo
1b9bf08082
fix spinboxes
...
BUG:285224
2011-12-02 21:53:07 +01:00
Aaron Seigo
ea8d0dcce2
get rid of the text halos
...
they are (relatively) expensive and should be unnecessary now:
we have blur, it works well, and when we don't blur we use different backgrounds.
one more "take one thing off" while i'm futzing around in tooltips
2011-12-02 21:48:34 +01:00
Aaron Seigo
464bab7a68
handle titles a little nicer: centered, no wrap for short titles
2011-12-02 21:48:34 +01:00
Aaron Seigo
d1cdb6c7d2
hide the label completely when no image is set. makes sure there isn't layout().spacing() extra padding
2011-12-02 21:48:34 +01:00
Aaron Seigo
f0498a9973
fix spinboxes
...
BUG:285224
2011-12-02 10:45:47 +01:00
Aaron Seigo
822243288d
get rid of the text halos
...
they are (relatively) expensive and should be unnecessary now:
we have blur, it works well, and when we don't blur we use different backgrounds.
one more "take one thing off" while i'm futzing around in tooltips
2011-11-30 15:44:29 +01:00
Aaron Seigo
7e4883f3bb
handle titles a little nicer: centered, no wrap for short titles
2011-11-30 15:39:29 +01:00
Aaron Seigo
3bf1d0d63d
hide the label completely when no image is set. makes sure there isn't layout().spacing() extra padding
2011-11-30 15:19:29 +01:00
Aaron Seigo
b31a05c41e
get rid of the source limiting; wasn't used, only overhead
2011-11-30 12:58:20 +01:00
Aaron Seigo
fee7b32974
allow ui/main.qml to be the default for plasmoids, and code/main.js for plasmoids, dataengines, runners
2011-11-30 12:58:20 +01:00
Aaron Seigo
685ae3b6c5
Merge remote-tracking branch 'origin/KDE/4.7' into frameworks
...
Conflicts:
plasma/popupapplet.cpp
2011-11-22 13:58:50 +01:00
Aaron Seigo
9775682bef
use a QWeakPointer with the graphics widget handed in as we don't own it
2011-11-22 13:29:02 +01:00
Aaron Seigo
3c55a5489a
Merge remote-tracking branch 'origin/KDE/4.7' into frameworks
...
Conflicts:
plasma/runnermanager.cpp
2011-11-22 12:56:16 +01:00
Aaron Seigo
f6f8d8b2ee
when setAllowedRunners is called, call loadRunners, which now also allows for being called while a search is in progress
...
loadRunners intelligently only unloads those runners with are no longer to be loaded, so this is a performance win.
it now also checks to see if there are pending jobs for the runners to be deleted (if any) and if so it creates a delayed
deleter for them -> no crashes
2011-11-22 12:17:06 +01:00
Ben Cooksley
7f0e9fb3b2
Don't crash on exit.
...
BUG:284989
REVIEW:103202
2011-11-22 21:18:04 +13:00
Aaron Seigo
90b02f3973
massive step towards QGraphicsView being separated from libplasma
...
* remove extenders (never panned out, used by exactly two components that we can find .. anywhere)
* move animations to libplasmagqv
* schedule js anims to be put into the js scriptengine
* move all QGraphicsProxyWidgets, except for IconWidget which is still used by PopupApplet, into libplasmaqgv
* create a subclass-able private class for Applet
TODO: move out icon widget, address FIXMES in graphicswidgetappletprivate.cpp and decide how to register the "right" private class for instantiation in Applet ctors
2011-11-17 14:43:37 +01:00
David Faure
bdf1f5c2dc
Merge remote-tracking branch 'origin/KDE/4.7' into origin-frameworks
...
Conflicts:
tier1/libkcoreaddons/src/io/kdirwatch.cpp
2011-11-16 14:44:08 +01:00
Marco Martin
a70c17bc59
fix drawing of focusindicator of spinbox and combobox
...
use the proper prefix for drawing the combobox focusindicator
2011-11-08 12:57:46 +01:00
Aaron Seigo
2c7751ccef
Merge remote-tracking branch 'origin/KDE/4.7' into frameworks
...
Conflicts:
CMakeLists.txt
kio/kio/kfileitem.cpp
plasma/datacontainer.cpp
plasma/datacontainer.h
plasma/private/wallpaper_p.h
plasma/private/wallpaperrenderthread.cpp
2011-10-30 10:44:59 +01:00
Aaron Seigo
176d4b896b
delay usage checks so quite disconnect/reconnects don't result in unecessary loss of data
...
(only to reload it again immediately thereafter...)
2011-10-30 10:35:29 +01:00
Aaron Seigo
97743420a0
add a wallpaper render that takes a pre-loaded QImage. FAR FAR faster than re-loading from disk if already in memory.
...
new API (new overload, really), but required to fix iperformance issues elsewhere, so considered a bug fix
2011-10-30 10:24:57 +01:00
Aaron Seigo
23784d26bb
less profanity
2011-10-30 01:58:11 +02:00
David Faure
108536cb93
Port from KTemporaryFile to QTemporaryFile, and deprecate KTemporaryFile.
...
My merge request (qtbase/57) for the missing feature in QTemporaryFile
(naming the temp file after the application, to be able to sort out which
app is leaking temp files), has been merged, so we don't need KTemporaryFile
anymore.
2011-10-04 16:52:38 +02:00
Marco Martin
044915b6cb
RSIP_OnMouseClick as Oxygen style does
2011-10-04 16:47:04 +02:00
Marco Martin
ef069ab402
RSIP_OnMouseClick as Oxygen style does
2011-10-03 17:26:12 +02:00
David Faure
685bebaed9
Merge remote branch 'origin/KDE/4.7' into origin-frameworks
...
Conflicts:
kdecore/tests/kservicetest.cpp
plasma/framesvg.cpp
2011-09-28 17:44:59 +02:00
Marco Martin
888a5753de
export data property to make it work in QML
2011-09-24 15:54:44 +02:00
Aaron Seigo
f8d94a98b8
use a hash instead of a map: the sorting was irrelevant and the API that uses this was ported to hashes as well
2011-09-19 11:27:54 +02:00
David Faure
24bd3d69eb
Merge remote branch 'origin/KDE/4.7' into origin-frameworks
2011-09-02 10:08:03 +02:00
Aaron Seigo
423ce0c356
don't emit addSource for a source being added in a sourceRequest event until the event is over
2011-09-01 19:07:22 +02:00
Marco Martin
37ac5105ab
fix resolution of paths w/ only a packageRoot+name
2011-08-31 12:53:09 +02:00
Stephen Kelly
e23c2dfbd6
Merge remote-tracking branch 'origin/KDE/4.7' into frameworks
...
Conflicts:
CMakeLists.txt
cmake/modules/FindNepomuk.cmake
kdecore/tests/kstandarddirstest.cpp
kdeui/util/kkeyserver.h
kio/kio/accessmanagerreply_p.h
kio/kio/hostinfo.cpp
plasma/containment.cpp
plasma/data/services/plasma.protocol
plasma/popupapplet.cpp
plasma/tooltipcontent.h
plasma/widgets/videowidget.h
2011-08-25 19:43:08 +02:00
Aaron Seigo
79ad385f41
give applets with no qwidget or graphicswidget a chance to do something
2011-08-25 17:35:07 +02:00
Aaron Seigo
ca320eb0d4
clarity in variable naming
2011-08-17 13:12:45 +02:00
Marco Martin
33e9192346
Merge branch 'libplasma2' into frameworks
...
Conflicts:
plasma/CMakeLists.txt
plasma/popupapplet.cpp
2011-08-12 11:45:49 +02:00
Aaron Seigo
f285745318
make extender applets freel resize
2011-08-11 00:15:05 +02:00
Montel Laurent
9e314fde8d
Pedantic
2011-08-07 00:50:21 +02:00
Aaron Seigo
ef6b65c2b1
simplify
2011-08-07 00:50:20 +02:00
Aaron Seigo
45e428dec5
--deprecatedUsage;
2011-08-07 00:50:20 +02:00
Dawit Alemayehu
10dcf8ffc0
Fixed -Wunused-parameter compiler warning.
...
REVIEW: 101881
2011-08-07 00:50:19 +02:00
Aaron Seigo
5484609cd3
consolidate creation code; use the layout; don't hide dialog if already hidden
...
fixes a few annoyances in the system tray
2011-08-03 16:45:29 +02:00
Aaron Seigo
f5b91c58de
consolidate creation code; use the layout; don't hide dialog if already hidden
...
fixes a few annoyances in the system tray
2011-08-03 16:45:28 +02:00
Kevin Kofler
3435f9f1e6
Add an API (currently private) for installing missing Plasma engines.
...
Use it when a requested data or script engine is not found.
REVIEW: 102175
2011-08-03 10:21:39 +02:00
Aaron Seigo
7c8cf530e1
Merge remote-tracking branch 'origin/master' into libplasma2
...
Conflicts:
plasma/theme.cpp
2011-07-30 20:20:10 +02:00
Aaron Seigo
50cfd997e9
make extender applets freel resize
2011-07-30 18:27:32 +02:00
Aaron Seigo
82eee5c3b7
avoid compiling in debug strings when compiled without debug
2011-07-29 15:46:52 +02:00
Aaron Seigo
fbde93c64f
give package a cache for found items; make the dptr implicitly shared
...
this drops a 100k loop of copies from ~2700ms to ~37ms and a 100k loop
of copy-n-find from ~3900ms to ~40ms.
the cache addition is predicated on the idea that lookups of the same files will be frequent enough to warrant the small amount of extra memory usage for the cache. if that does not hold in practice (though it appears to) then this will not be a gain and in fact be a small net loss for memory footprint
the dptr change is predicated on the assumption that copies of Package will be frequent, and so must be low cost. this is known to be true. even if it wasn't, there is no down-side to this change. the upside are significant time and memory savings.
2011-07-22 17:24:40 +02:00
Aaron Seigo
bd10c7175e
Merge remote-tracking branch 'origin/master' into libplasma2
...
Conflicts:
plasma/containment.cpp
plasma/package.cpp
plasma/packagestructure.cpp
plasma/private/package_p.h
plasma/scripting/scriptengine.cpp
2011-07-21 15:31:07 +02:00
Aaron Seigo
f3a66f1f79
allow stripping out the name and mimetype data from the package info; only really useful for package introspection (e.g. in plasmate and other such tools) but a waste on mobile
2011-07-21 14:41:01 +02:00
Aaron Seigo
3d5fa3ca43
build, though wallpaper is still broken
2011-07-21 14:39:02 +02:00
Aaron Seigo
4a3ef536e6
private class changes to match the public class usage
2011-07-19 21:52:33 +02:00