Commit Graph

78 Commits

Author SHA1 Message Date
David Faure
a2b502dbf4 Port the last uses of KMimeType. Only plasma/package.cpp is left... 2012-06-20 00:38:04 +02:00
Stephen Kelly
330efc1fa3 Create a QFontMetrics object explicitly with a QFont.
Since 6c1bdc1854a7700c2b3a345b95f6a2fdca84037d in Qt 5 there is
no longer an implicit conversion.
2012-06-08 17:33:16 +02:00
David Faure
9057ce0c70 Fix compilation with the new cmake automoc stuff. 2012-02-08 23:34:07 +01:00
Aaron Seigo
3948cfb8cf use d->setWidget which notes that it's not a palette customization 2011-12-04 14:00:32 +01:00
Aaron Seigo
bd3f840f3b similar work around in mousePressEvent as we have in contextMenuEvent 2011-04-09 20:07:00 +02:00
Davide Bettio
d8546805e5 Display applet context menu when the label hasn't any context menu to show. It makes sense to show a context menu only when the text can be selected or when there is a link.
reviewboard: http://reviewboard.kde.org/r/6009/

svn path=/trunk/KDE/kdelibs/; revision=1202176
2010-11-29 23:29: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
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
Aaron J. Seigo
021d8e4823 * don't set the font on the native widget in change events
* don't set the palette on the native widget in change events
* reset the value of customFont when it is set specifically because !customFont (allowing future theme changes to take effect as a result)

svn path=/trunk/KDE/kdelibs/; revision=1187721
2010-10-20 10:07:40 +00:00
Aaron J. Seigo
4c5f141992 don't set the native widget's palette. since this now works in QGraphicsProxyWidget, it now causes new problems: setting the palette on the widget (not the nativeWidget()) doesn't work for users of Plasma::* widgets. love it when work arounds to bugs cause new bugs once the original bugs are fixed upstream. ;)
svn path=/trunk/KDE/kdelibs/; revision=1185467
2010-10-13 13:16:35 +00:00
Jacopo De Simoi
7879ff137c Do not paint twice most Plasma::Label out there!
svn path=/trunk/KDE/kdelibs/; revision=1150751
2010-07-16 17:04:37 +00:00
Marco Martin
748d85362c set null icons on the widgets after been put in a proxy.
would hopefully cause a bit less pixmap usage

svn path=/trunk/KDE/kdelibs/; revision=1149631
2010-07-13 21:32:07 +00:00
Marco Martin
3f6a5ac01a re enable fading for long text labels
svn path=/trunk/KDE/kdelibs/; revision=1128895
2010-05-20 15:49:05 +00:00
Marco Martin
4ab87220a3 try to be more strict when the policy is fixed:
the minimum and the preferred size are the same (i.e. avoid to cut away text, always)

svn path=/trunk/KDE/kdelibs/; revision=1125673
2010-05-11 22:06:17 +00:00
Aaron J. Seigo
56d063430e let's try this out without our "work around Qt bugs" hack and see if Qt is now well behaved
svn path=/trunk/KDE/kdelibs/; revision=1124321
2010-05-08 20:45:36 +00:00
Aaron J. Seigo
fb2d1cf524 respecdt the contents rect
svn path=/trunk/KDE/kdelibs/; revision=1124318
2010-05-08 20:43:51 +00:00
Aaron J. Seigo
5ed9e14f0e propagate cursor changes to the native widget
svn path=/trunk/KDE/kdelibs/; revision=1111916
2010-04-07 01:44:56 +00:00
Marco Martin
3ba74c0fe8 export wordwrap in api and Q_PROPERTY
svn path=/trunk/KDE/kdelibs/; revision=1099291
2010-03-05 12:36:38 +00:00
Aaron J. Seigo
c2b211aba8 don't need this debug anymore
svn path=/trunk/KDE/kdelibs/; revision=1096905
2010-02-27 22:20:15 +00:00
Aaron J. Seigo
b2b72f7f2c fix a regression with the link fix: we only want to go into text browser mode when text is selectable
svn path=/trunk/KDE/kdelibs/; revision=1096900
2010-02-27 22:16:05 +00:00
Aaron J. Seigo
7fb501467a since we can't do a hit test, only accept the mouse event if text selection is turned on; when Qt is fixed, we can get rid of this
svn path=/trunk/KDE/kdelibs/; revision=1095481
2010-02-24 11:56:18 +00:00
Aaron J. Seigo
9e5a7b85c1 make link licking and text selection -actually- work
svn path=/trunk/KDE/kdelibs/; revision=1095290
2010-02-23 23:02:15 +00:00
Marco Martin
06341cfb73 put all context menus in a separate window, resolving cutting and z-order issues
BUG:207956

svn path=/trunk/KDE/kdelibs/; revision=1067048
2009-12-28 19:52:54 +00:00
Marco Martin
bd279b081f update the geometry when the text changes, apparently it doesn't get done automagically :/
svn path=/trunk/KDE/kdelibs/; revision=1057231
2009-12-01 19:33:01 +00:00
Marco Martin
4b9e4f71cd workaround to the random gibberish when fading:
use an intermediate pixmap also when opacity() < 1

svn path=/trunk/KDE/kdelibs/; revision=1052747
2009-11-22 12:49:58 +00:00
Marco Martin
8c047a91eb don't fade the label if the width is exactly the text width
svn path=/trunk/KDE/kdelibs/; revision=1046037
2009-11-07 10:56:06 +00:00
Darío Andrés Rodríguez
59296fb520 - Fix several minor issues reported by Krazy2
(http://reviewboard.kde.org/r/1837/)


svn path=/trunk/KDE/kdelibs/; revision=1034756
2009-10-13 12:40:13 +00:00
Marco Martin
c47fdfefbe set the disabled color as a transparent version of the text color
svn path=/trunk/KDE/kdelibs/; revision=1030948
2009-10-03 15:20:56 +00:00
Marco Martin
8c1408f179 apparently if the label is hidden it doesn't receive font change events,
so at show event i have to check if the font is different from
QApplication::font() :/
now: is this the intended behaviour of qt or is a bug?
CCMAIL:plasma-devel@kde.org

svn path=/trunk/KDE/kdelibs/; revision=1030634
2009-10-02 20:14:40 +00:00
Marco Martin
67515c758a always use plasma::theme font, unless somebody call setFont on the
widget                                                                                
round two: sync the native widgets fonts with the plasma::theme font,                 
unless setFont was called

svn path=/trunk/KDE/kdelibs/; revision=1023050
2009-09-13 19:18:29 +00:00
Aaron J. Seigo
9525a9a267 clean up the svg if we change the image strategy
svn path=/trunk/KDE/kdelibs/; revision=1022990
2009-09-13 17:15:56 +00:00
Aaron J. Seigo
45b39e84c4 * repaint the svg when the theme changes
* delete the svg before creating a new one
* only create a new svg object if the path has changed

svn path=/trunk/KDE/kdelibs/; revision=1022989
2009-09-13 17:13:55 +00:00
Beat Wolf
03d8572ae4 fix a double delete bug
svn path=/trunk/KDE/kdelibs/; revision=1018485
2009-09-01 18:42:09 +00:00
Riccardo Iaconelli
339a5f84e4 fix a huge leak :-)
Signed-off-by: Riccardo Iaconelli <riccardo@kde.org>

svn path=/trunk/KDE/kdelibs/; revision=1018177
2009-09-01 12:01:30 +00:00
Marco Martin
d6eb165ee5 setTextSelectable, to be able to select text XOR drag the widget with
the mouse

svn path=/trunk/KDE/kdelibs/; revision=1017058
2009-08-29 16:59:28 +00:00
Marco Martin
c67decb4d9 fade out the end of the text when there is not enough room (and wordwrap
is off)

svn path=/trunk/KDE/kdelibs/; revision=1012310
2009-08-17 12:24:33 +00:00
Aaron J. Seigo
47b8b802ac standardize link colors
svn path=/trunk/KDE/kdelibs/; revision=993491
2009-07-08 19:25:20 +00:00
Marco Martin
9b40257b21 sinc link colors
svn path=/trunk/KDE/kdelibs/; revision=966171
2009-05-10 14:38:00 +00:00
Marco Martin
0d9a13405e forward linkHovered signal too
svn path=/trunk/KDE/kdelibs/; revision=933384
2009-02-28 20:25:13 +00:00
Marco Martin
ccf2fef95f hasScaledContents/setScaledcontents properties, useful for qtscript
svn path=/trunk/KDE/kdelibs/; revision=903557
2008-12-30 20:53:02 +00:00
Sebastian Kügler
168ae12dc5 svn path=/trunk/KDE/kdelibs/; revision=903301 2008-12-30 12:53:33 +00:00
Marco Martin
614c2252d1 add alignment/setAlignment wrapping in the api
svn path=/trunk/KDE/kdelibs/; revision=900868
2008-12-23 20:39:59 +00:00
Marco Martin
1b7bf8cdb9 use plasma font in some more widgets
svn path=/trunk/KDE/kdelibs/; revision=899830
2008-12-21 17:17:35 +00:00
Aaron J. Seigo
df73771a1b ++compile
svn path=/trunk/KDE/kdelibs/; revision=879801
2008-11-04 02:55:37 +00:00
Aaron J. Seigo
1b523b9054 ok, this time JUST the plasma dir ;)
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9 bum-de-dum! plasma to kdelibs.
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Allen Winter
eae853582b coding style fixes.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870205
2008-10-12 01:31:54 +00:00
Aaron J. Seigo
835035a94d forward the link activated signal; common one
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866468
2008-09-30 23:21:22 +00:00
Marco Martin
0dd6b99014 Plasma::Label should be able to actually display svgs from the theme
now
cleaning some juck debug stuff in label

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841020
2008-08-02 13:01:16 +00:00
Marijn Kruisselbrink
21b148b963 change all ClassName::Private classes to ClassNamePrivate, and adjust friends accordingly; this makes plasma compilable with gcc < 4.2
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826893
2008-07-01 18:56:43 +00:00