Aaron Seigo
d1140aca7d
remove a number of unused variables
2012-10-25 21:17:01 +02:00
David Faure
e7e77f118a
Merge remote-tracking branch 'origin/KDE/4.10' into frameworks
...
Conflicts:
cmake/modules/FindKDE4Internal.cmake [ON vs TRUE]
experimental/libkdeclarative/kdeclarative.cpp [include changes]
kdecore/CMakeLists.txt [kshareddatacache.cpp exception support, but file moved]
kdecore/kernel/kcmdlineargs.cpp [+1 option, but qi18n]
kdeui/widgets/ktextedit.cpp [moc]
kdewebkit/kwebpage.cpp [QUrl]
kfile/kfilewidget.cpp [QUrl]
kfile/kurlnavigatortogglebutton.cpp [QT_NO_ACCESSIBILITY]
kinit/kinit.cpp [document path]
kio/kfile/kurlrequester.cpp [KDE::icon]
kio/kio/kprotocolmanager.cpp [kded5]
kio/kio/krun.cpp [document path]
kioslave/ftp/ftp.cpp [QUrl]
kioslave/http/kcookiejar/CMakeLists.txt [upd file resurrected]
kioslave/http/kcookiejar/kcookiescfg.upd [resurrected]
kioslave/http/kcookiejar/kcookiewin.cpp [KVBox porting]
mimetypes/kde.xml [kexi gone]
nepomuk/core/resourcedata.cpp [deleted]
nepomuk/test/CMakeLists.txt [deleted]
plasma/private/packages.cpp [Plasma::Applet::NoBackground]
tier1/kjs/src/kjs/jsonstringify.cpp [unsigned int]
tier1/solid/src/solid/CMakeLists.txt [hello udisks2]
2012-10-19 15:10:38 +02:00
Marco Martin
acdbe4556c
for small sizes, paint icons in a standard size
...
fixes blurry icons in the panel
2012-10-18 19:41:56 +02:00
David Faure
3d0d287103
perl -pi -e 's/KGlobal::locale/KLocale::global/' ...
2012-09-03 23:09:27 +02:00
Dominik Haumann
54433eaca3
KGlobalSettings::singleClick() -> style()->styleHint(QStyle::SH_ItemView_ActivateItemOnSingleClick)
...
KGlobalSettings::singleClick() is still used in kde3support.
- do we really need kde3support?
- should the singleClick be ported here as well?
2012-08-02 21:56:05 +02:00
David Faure
a2b502dbf4
Port the last uses of KMimeType. Only plasma/package.cpp is left...
2012-06-20 00:38:04 +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
Sune Vuorela
101a0b38f1
add some klocale includes to plasma to make it build
2012-03-24 11:51:32 +01: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
Ignat Semenov
148002cee4
Shrink the icon correctly on mouse clicks with respect to the global single/double-click mouse settings.
...
REVIEW:103831
2012-02-01 17:03:30 +04: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
109453976a
while properties are cool and all, let's not take the slow path just because we can.
2011-12-02 21:53:07 +01:00
Aaron Seigo
34376c31b1
animate transitions when an svg is used as well.
2011-12-02 21:53:07 +01:00
Aaron Seigo
dd15c33c2b
while properties are cool and all, let's not take the slow path just because we can.
2011-12-02 10:45:47 +01:00
Aaron Seigo
a97d486876
animate transitions when an svg is used as well.
2011-12-02 10:45:47 +01: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
Aaron Seigo
82eee5c3b7
avoid compiling in debug strings when compiled without debug
2011-07-29 15:46:52 +02:00
Aaron Seigo
c5cf7f8460
style
2011-04-28 10:54:23 +02:00
Marco Martin
ec6d137012
use smooth transformation for the pressed effect: it's used rarely enough to not pose too much performance issues
...
BUG:262128
svn path=/trunk/KDE/kdelibs/; revision=1212069
2011-01-05 16:41:06 +00:00
Kevin Ottens
d85c4cc7ff
Include cleanup.
...
Based on a patch by Marijn Kruisselbrink.
svn path=/trunk/KDE/kdelibs/; revision=1194730
2010-11-09 17:22:22 +00:00
Aaron J. Seigo
bea0aaed50
set up the theming in IconWidgetPrivate::init() instead of its ctor as that ends up causing a call to changeEvent, and so if call from the private class' ctor the d member of IconWidget isn't assigned (IconWidgetPrivate is still being constructed) and causes a crash
...
svn path=/trunk/KDE/kdelibs/; revision=1188698
2010-10-23 01:44:37 +00:00
Ingomar Wesp
6203d3795b
Minor clean-up.
...
svn path=/trunk/KDE/kdelibs/; revision=1188687
2010-10-23 00:10:45 +00:00
Ingomar Wesp
f7d405546e
- Add support for constraints to sizeHint.
...
- Remove unused QStyleOptionGraphicsItem* parameter from elidedText and
layoutText.
svn path=/trunk/KDE/kdelibs/; revision=1188672
2010-10-22 22:28:03 +00:00
David Faure
a48ae5b0d8
Fix compilation with gcc < 4.5
...
svn path=/trunk/KDE/kdelibs/; revision=1188570
2010-10-22 16:55:46 +00:00
Marco Martin
4dd1c28b6d
fix the wreckage caused by last commit
...
bad Aaron, no cookie :)
can you check if those changes make sense upon what your patch ws supposed to be?
CCMAIL:aseigo@kde.org
svn path=/trunk/KDE/kdelibs/; revision=1188445
2010-10-22 12:29:35 +00:00
Aaron J. Seigo
a793185b21
consolidate all the theming (palette, fonts) code for widgets into a private interface: ThemeWidgetInterface. have the relevant *Private classes inherit from it and all the tricky logic is now in one place and consistent.
...
svn path=/trunk/KDE/kdelibs/; revision=1188314
2010-10-22 00:25:17 +00:00
Marco Martin
935e4cb57c
don't draw the background if the state is not hover or pressed
...
BUG:240570
svn path=/trunk/KDE/kdelibs/; revision=1134320
2010-06-03 22:04:55 +00:00
Aaron J. Seigo
ff45696e8b
if we have a popup associated with our icon, show it
...
BUG:240265
svn path=/trunk/KDE/kdelibs/; revision=1133021
2010-05-31 22:42:51 +00:00
Aaron J. Seigo
30b2a10d57
yes, that makes a bit more sense ;)
...
svn path=/trunk/KDE/kdelibs/; revision=1130605
2010-05-25 19:43:14 +00:00
Marco Martin
5f04930024
if an invalid svg was set, return an empty string as svg()
...
svn path=/trunk/KDE/kdelibs/; revision=1129430
2010-05-22 11:35:53 +00:00
Aaron J. Seigo
2d1fe7b138
don't jiggle
...
BUG:202949
svn path=/trunk/KDE/kdelibs/; revision=1129021
2010-05-21 02:03:19 +00:00
Aaron J. Seigo
67b79a816c
--memoryLeak;
...
svn path=/trunk/KDE/kdelibs/; revision=1129020
2010-05-21 01:53:48 +00:00
Aaron J. Seigo
404241f348
move this non-exported class to the private header
...
svn path=/trunk/KDE/kdelibs/; revision=1128221
2010-05-18 18:04:51 +00:00
Aaron J. Seigo
6c5f292e2f
we're not checking the value, use a static_cast
...
svn path=/trunk/KDE/kdelibs/; revision=1125894
2010-05-12 16:17:33 +00:00
Marco Martin
fe9e96f8bf
reset the old icon when a mouseover occurs
...
svn path=/trunk/KDE/kdelibs/; revision=1125592
2010-05-11 19:43:19 +00:00
Marco Martin
2fa6d4204c
- when the background gets enabled, recalculate hints
...
- always add item margins to the hint
svn path=/trunk/KDE/kdelibs/; revision=1119097
2010-04-26 14:50:54 +00:00
Marco Martin
e979201682
add maximumIconSize and minimumIconSize properties: last step to have sane size hints
...
svn path=/trunk/KDE/kdelibs/; revision=1119084
2010-04-26 14:17:08 +00:00
Marco Martin
6bad7500be
take the max between width and height
...
svn path=/trunk/KDE/kdelibs/; revision=1118354
2010-04-24 14:03:48 +00:00
Marco Martin
5b49fc05e1
new property: preferredIconSize, aka the final solution to all layout problems
...
svn path=/trunk/KDE/kdelibs/; revision=1118322
2010-04-24 12:08:13 +00:00
Marco Martin
b9de116f33
get the margins right.
...
give the natural svg size if the icon is a svg
svn path=/trunk/KDE/kdelibs/; revision=1118304
2010-04-24 11:30:09 +00:00
Marco Martin
5d9b77ed76
reset any svg icon if a normal one gets set
...
svn path=/trunk/KDE/kdelibs/; revision=1117890
2010-04-23 11:35:43 +00:00
Marco Martin
5560dae986
scale coherently also the old icon during the animation
...
svn path=/trunk/KDE/kdelibs/; revision=1108404
2010-03-28 19:55:51 +00:00
Marco Martin
621ead5280
IconMargin is useful only to give good proportion when there is text,
...
when there isn't we want the whole size to be really precise with size
calculations
svn path=/trunk/KDE/kdelibs/; revision=1108320
2010-03-28 15:59:45 +00:00
Marco Martin
2f308de3da
always reset the icon change timer: will cause less unneeded animations
...
svn path=/trunk/KDE/kdelibs/; revision=1100808
2010-03-08 17:44:59 +00:00
Marco Martin
8c2dc5036a
the proper text to use here is action->toolTip()
...
CCMAIL:thomas.luebking@web.de
svn path=/trunk/KDE/kdelibs/; revision=1097986
2010-03-02 15:27:51 +00:00
Marco Martin
3408ebe777
we don't want acelerator markers in tooltips
...
svn path=/trunk/KDE/kdelibs/; revision=1097929
2010-03-02 13:02:51 +00:00
Marco Martin
3a2a21d34a
actually disable the fade when a bunch of fast changes (animation frames) happen
...
svn path=/trunk/KDE/kdelibs/; revision=1093280
2010-02-20 14:19:29 +00:00
Marco Martin
a9cc788fb2
animate icon change with fade, but only if the chage doesn't happen too frequently (so is still possible to fo an animation by quicky change the icon)
...
svn path=/trunk/KDE/kdelibs/; revision=1091092
2010-02-16 17:24:35 +00:00
Marco Martin
bd87a3f3b7
simplify a bit, now Svg can return directly a pixmap
...
svn path=/trunk/KDE/kdelibs/; revision=1091013
2010-02-16 14:38:58 +00:00