Commit Graph

792 Commits

Author SHA1 Message Date
Marco Martin
324b6f11d4 set a write only property for the url
svn path=/trunk/KDE/kdelibs/; revision=936994
2009-03-08 20:08:27 +00:00
Marco Martin
a219e97dae correct shadow color
svn path=/trunk/KDE/kdelibs/; revision=935565
2009-03-05 16:24:12 +00:00
Matthias Fuchs
4088e89973 Adds comment to the constructor.
svn path=/trunk/KDE/kdelibs/; revision=935551
2009-03-05 15:41:01 +00:00
Marco Martin
754b8d34c3 paint the busy widget always square
use overlay widget to show the busy widget, duplication--

svn path=/trunk/KDE/kdelibs/; revision=935520
2009-03-05 13:05:12 +00:00
David Faure
d33e884393 Fix compilation of plasma with enable-final --- yet another X define conflicting with a Qt enum.
svn path=/trunk/KDE/kdelibs/; revision=935354
2009-03-04 21:28:02 +00:00
Marco Martin
ca820f5770 SVN_SILENT: forgotten @since :D
svn path=/trunk/KDE/kdelibs/; revision=934746
2009-03-03 18:11:33 +00:00
Marco Martin
aabf1acf74 a proxy for KTextBrowser, with usual style tweaks to make it look
plasmy

svn path=/trunk/KDE/kdelibs/; revision=934734
2009-03-03 17:38:16 +00:00
Marco Martin
ff578a8af4 a widget that allows the contents to scroll when
content is bigger than the widget itself by adding scrollbars

svn path=/trunk/KDE/kdelibs/; revision=934731
2009-03-03 17:31:54 +00:00
Aaron J. Seigo
0fc65ada51 we don't want to set the palette otherwise we get bad results like white-on-white; all the button painting is handled manually in the paint method, so we're safe there for colours
svn path=/trunk/KDE/kdelibs/; revision=934711
2009-03-03 16:39:29 +00:00
Marco Martin
a0194765cb don't have borders or background by default
svn path=/trunk/KDE/kdelibs/; revision=933789
2009-03-01 16:01:20 +00:00
Marco Martin
0d9a13405e forward linkHovered signal too
svn path=/trunk/KDE/kdelibs/; revision=933384
2009-02-28 20:25:13 +00:00
Aaron J. Seigo
a88f2d8247 FEATURE: allow themes to state that they should use the native widgets
svn path=/trunk/KDE/kdelibs/; revision=931193
2009-02-24 22:42:06 +00:00
Petri Damstén
13e9b7c2c4 delete svgBackground even if svgFilename is empty so it can be resetted.
svn path=/trunk/KDE/kdelibs/; revision=930783
2009-02-24 08:47:03 +00:00
Marco Martin
9fd15b5e2f check if the layout has also the tabwidget widget or not, crash--
svn path=/trunk/KDE/kdelibs/; revision=930400
2009-02-23 11:26:45 +00:00
Marco Martin
ca3004d9c4 Q_PROPERTY and Q_ENUMS to play well with javascript
svn path=/trunk/KDE/kdelibs/; revision=928719
2009-02-19 21:46:08 +00:00
Marco Martin
604bd19638 clip only when animating: some flicker, but clipping always is a bit
slower and seems to lose mouse events when the applet is in a
containment

svn path=/trunk/KDE/kdelibs/; revision=926630
2009-02-15 21:42:25 +00:00
Artur Duque de Souza
cae61ee4ca Use enums from KIconLoader
Instead of using hardcore numbers, it would be great to use the enums provided by 
KIconLoader whenever we use sizes for icons.

Made the change for the obvious ones replacing "16" by KIconLoader::SizeSmall, 
"22" by KIconLoader::SizeSmallMedium and "32" by KIconLoader::SizeMedium.

svn path=/trunk/KDE/kdelibs/; revision=926544
2009-02-15 16:35:52 +00:00
Marco Martin
828ac46bd4 use Plasma::Frame for controls background
svn path=/trunk/KDE/kdelibs/; revision=926412
2009-02-15 11:52:16 +00:00
Marco Martin
d544dc7c2d declare the Q_ENUM
svn path=/trunk/KDE/kdelibs/; revision=925910
2009-02-14 13:55:09 +00:00
Marco Martin
7c9a500b3d move the wheelEvent to nativeTabbar, it seems it works only there with
qt 4.5, while with 4.4 did work only in the proxywidget 

svn path=/trunk/KDE/kdelibs/; revision=925477
2009-02-13 11:43:58 +00:00
Pino Toscano
a136f604e6 extra ';'
svn path=/trunk/KDE/kdelibs/; revision=925310
2009-02-13 01:08:23 +00:00
Marco Martin
287a1f80d1 crash--
svn path=/trunk/KDE/kdelibs/; revision=925258
2009-02-12 21:08:31 +00:00
Marco Martin
fd1b73ba56 shownControls->usedControls
controlsVisible sets the whole controls widget visible/invisile

svn path=/trunk/KDE/kdelibs/; revision=925247
2009-02-12 20:51:49 +00:00
Marco Martin
1e4e0d86b4 the controls slides in and out with an animation depending on mouse
events

svn path=/trunk/KDE/kdelibs/; revision=925207
2009-02-12 18:19:32 +00:00
Marco Martin
f47eb66c08 add all the other optional buttons support.
but removed next/previous for now, not sure really makes sense to export
them in the simple api

svn path=/trunk/KDE/kdelibs/; revision=925173
2009-02-12 16:47:30 +00:00
Marco Martin
97dd8b072e as decided at tokamak include basic controls right in the widget, they
can be enabled and disabled with flags
so for now the applet shows double controls until the transplant is
really complete

svn path=/trunk/KDE/kdelibs/; revision=925125
2009-02-12 13:58:10 +00:00
Marco Martin
12c645ff82 use setUrl instead of setPath, more general, but still use a qstring,
seems to work better with javascript

svn path=/trunk/KDE/kdelibs/; revision=924896
2009-02-11 21:34:07 +00:00
Alessandro Diaferia
bb01ec253d use boundingRect instead of geometry otherwise the signal will never be emitted
svn path=/trunk/KDE/kdelibs/; revision=924644
2009-02-11 10:24:06 +00:00
Marco Martin
ecb67cfee5 a bit of comments doesn't hurt
svn path=/trunk/KDE/kdelibs/; revision=923865
2009-02-09 16:09:34 +00:00
Marco Martin
501b3bfe1c align text to the left when the icon is horizontal
svn path=/trunk/KDE/kdelibs/; revision=923738
2009-02-09 10:51:21 +00:00
Marco Martin
ba196464eb enable build of videowidget, depending if Phonon is found or not
svn path=/trunk/KDE/kdelibs/; revision=923520
2009-02-08 21:41:08 +00:00
Marco Martin
b0ad8d6535 import the video widget, will add later to the build
svn path=/trunk/KDE/kdelibs/; revision=923508
2009-02-08 21:20:41 +00:00
Marco Martin
4dd753fe19 remove the ugly #ifdef since with qt4.5 the clipping bug of proxywidgets
is fixed yeheeee :D

svn path=/trunk/KDE/kdelibs/; revision=923190
2009-02-08 13:26:33 +00:00
Frederik Schwarzer
83f2503169 global typo fix
svn path=/trunk/KDE/kdelibs/; revision=922431
2009-02-07 01:12:28 +00:00
Marco Martin
96fdff9468 SVN_SILENT: add @since 4.3 to the shiny new stuff
svn path=/trunk/KDE/kdelibs/; revision=921029
2009-02-04 10:59:15 +00:00
Marco Martin
9c971e11ba ability to hide the tabbar, now can be used like it's a QStackedWidget :)
svn path=/trunk/KDE/kdelibs/; revision=921018
2009-02-04 10:32:20 +00:00
Aaron J. Seigo
9bd8fe0219 better context menu handling
svn path=/trunk/KDE/kdelibs/; revision=919698
2009-02-01 14:55:00 +00:00
Marco Martin
21c11b6ed9 initialize member vars, will backport to 4.2
svn path=/trunk/KDE/kdelibs/; revision=918216
2009-01-29 17:04:46 +00:00
Marco Martin
0aefb02462 fix resizing in the panel.... again
svn path=/trunk/KDE/kdelibs/; revision=916933
2009-01-26 13:58:39 +00:00
Marco Martin
7efa1412b8 VN_SILENT: warning--
svn path=/trunk/KDE/kdelibs/; revision=916695
2009-01-25 19:34:41 +00:00
Marco Martin
d0fb10f0cc don't crash when removing the currently active tab
will backport to 4.2

svn path=/trunk/KDE/kdelibs/; revision=916689
2009-01-25 19:21:14 +00:00
Alessandro Diaferia
82fb975523 a useful method to remove a previously set iconAction
svn path=/trunk/KDE/kdelibs/; revision=916376
2009-01-25 09:58:02 +00:00
Marco Martin
2836267745 with a minimum size policy screws a little bit less in layouts
svn path=/trunk/KDE/kdelibs/; revision=915265
2009-01-22 16:59:13 +00:00
Aaron J. Seigo
fb8af31791 some missing API bits
svn path=/trunk/KDE/kdelibs/; revision=914441
2009-01-21 05:59:33 +00:00
Aaron J. Seigo
9d262c3619 update() on icon config changes
BUG:181298

svn path=/trunk/KDE/kdelibs/; revision=913904
2009-01-20 02:37:52 +00:00
Marco Martin
e2e814e9bf IconWidget background looked freaking old, now uses the svg backgrond from
the folderview icons (and as a bonus it's even less code :D)

svn path=/trunk/KDE/kdelibs/; revision=913758
2009-01-19 20:41:45 +00:00
Marco Martin
88abeaf783 icon() and setIcon() in the api, pretty foundamental in a tool button...
svn path=/trunk/KDE/kdelibs/; revision=913027
2009-01-18 17:28:04 +00:00
Marco Martin
53658a106e style with FrameSvg all the lineedits, spinboxes and comboboxes, use
Plasma::Style to achieve that, since it's a kinda repetitive thing and
comboboxes and spinboxes are complex controls
the svg used will probably change

svn path=/trunk/KDE/kdelibs/; revision=912567
2009-01-17 18:00:33 +00:00
Marco Martin
eb7588ae9a forward also editingFinished
patch by Dario Andres
BUG: 180261

svn path=/trunk/KDE/kdelibs/; revision=909009
2009-01-10 19:35:29 +00:00
Alex Merry
9c1570f13e apidocs fixes.
Remember to document ALL parameters to methods.  They may seem obvious to you, but I had to look at the code for at least two of the methods in order to document their parameters correctly.

*waves stick of EBN-ness*


svn path=/trunk/KDE/kdelibs/; revision=908604
2009-01-10 00:08:31 +00:00
Stephan Kulow
f9abcd96e4 anoter case of useless warnings
svn path=/trunk/KDE/kdelibs/; revision=907540
2009-01-08 11:32:55 +00:00
Stephan Kulow
6e8e615e73 don't create "QEventDispatcherUNIX::unregisterTimer: invalid argument"
svn path=/trunk/KDE/kdelibs/; revision=907536
2009-01-08 11:27:39 +00:00
Davide Bettio
08104d35ba Added Plasma::SpinBox.
svn path=/trunk/KDE/kdelibs/; revision=907258
2009-01-07 18:54:43 +00:00
Aaron J. Seigo
fe0acf8202 clean this up while we still can. not sure how this one slipped by us, but it's been on my list for a week; no actual logic changes, just cleans out the header of crud that doesn't belong.
svn path=/trunk/KDE/kdelibs/; revision=906780
2009-01-06 21:11:54 +00:00
Aaron J. Seigo
d8c68f8d5f update the icon when the svg changes
svn path=/trunk/KDE/kdelibs/; revision=906159
2009-01-05 17:34:40 +00:00
Marco Martin
a2fe3d80af don't call setCurrentIdex a second time by calling
d->tabProxy->native->setCurrentIndex(index) too early

svn path=/trunk/KDE/kdelibs/; revision=905666
2009-01-04 20:04:37 +00:00
Aaron J. Seigo
b40732d7ab don't change the current tab again, otherwise current==old and bad things happen ;)
svn path=/trunk/KDE/kdelibs/; revision=905635
2009-01-04 18:43:30 +00:00
Marco Martin
47c511c86c build on arm
svn path=/trunk/KDE/kdelibs/; revision=904274
2009-01-01 19:17:53 +00:00
Marco Martin
786bd0be2a draw the black block only is there is no svg background
svn path=/trunk/KDE/kdelibs/; revision=903932
2008-12-31 17:30:52 +00:00
Marco Martin
17bd4d2e99 use the svg background as default
svn path=/trunk/KDE/kdelibs/; revision=903928
2008-12-31 17:19:48 +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
Aaron J. Seigo
e193aaa46e if there's a tooltip set, keep it in sync with the action
svn path=/trunk/KDE/kdelibs/; revision=902698
2008-12-28 23:52:41 +00:00
Aaron J. Seigo
227e28ffa9 no need to set the style at the end now that we have the shared pointer based style
svn path=/trunk/KDE/kdelibs/; revision=902674
2008-12-28 22:45:22 +00:00
Marco Martin
66bb0f6bda avoid harder divisions by zero
BUG:178746

svn path=/trunk/KDE/kdelibs/; revision=902555
2008-12-28 17:09:21 +00:00
Aaron J. Seigo
f1316fb4b8 avoid div by zero
BUG:178854

svn path=/trunk/KDE/kdelibs/; revision=901977
2008-12-27 05:37:50 +00:00
Marco Martin
938b6291fc use always qreal and convert to int just at the last moment, should
avoid some nice divide by 0
CCBUG:178746

svn path=/trunk/KDE/kdelibs/; revision=901542
2008-12-25 21:23:26 +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
0ea6365356 restore the svg size, oops
svn path=/trunk/KDE/kdelibs/; revision=900801
2008-12-23 16:41:34 +00:00
Marco Martin
d1e083f211 paint the background as the same size of the progress bar, no more empty
areas before and after
support for stretched bars

svn path=/trunk/KDE/kdelibs/; revision=900723
2008-12-23 13:05:37 +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
Marco Martin
11da4f11f8 use the plasma font
svn path=/trunk/KDE/kdelibs/; revision=899819
2008-12-21 16:55:19 +00:00
Aaron J. Seigo
bad9871ccf * remove some dead code
* set a 1px margin only if there is no background
* use width, not height, went horizontal and there is no text
BUG:177871

svn path=/trunk/KDE/kdelibs/; revision=897398
2008-12-15 23:42:29 +00:00
Aaron J. Seigo
9c25aa59a5 share one style amongst all the widgets
svn path=/trunk/KDE/kdelibs/; revision=897366
2008-12-15 21:17:43 +00:00
Aaron J. Seigo
adaed62351 * forward the valueChanged signal
* simplify the ctor to be more in line with the other widgets
* add setOrientation

combined, this elminates the need pretty much everywhere its used for nativeWidget() to be accessed. woo!

svn path=/trunk/KDE/kdelibs/; revision=897341
2008-12-15 20:34:03 +00:00
Marco Martin
1d7144e6f7 die hardcoded colors, die!
svn path=/trunk/KDE/kdelibs/; revision=894466
2008-12-08 17:51:53 +00:00
Rob Scheepmaker
7a90f822a5 Resize Plasma::Meter not to it's native size, since larger fonts will get cut off. Instead count the amount of label rows and multiply with the font height.
svn path=/trunk/KDE/kdelibs/; revision=893992
2008-12-07 16:45:49 +00:00
Marco Martin
b47c32869f use elements dimensions to resize the scrollbar
svn path=/trunk/KDE/kdelibs/; revision=893050
2008-12-05 21:04:33 +00:00
Marco Martin
1c4f777dd4 hide and unhide the icon when its action visibility changes (no more
ghost lockers with zoomed out desktop:)

svn path=/trunk/KDE/kdelibs/; revision=892159
2008-12-03 17:53:13 +00:00
Rob Scheepmaker
ab56a3a388 Couple of fixes:
* Close empty extender when clicking in it.
BUG:176545
* Saner size policy for Plasma::Meter. (the height should never be able to be smaller then svg's height because labels could otherwise overlap, actually, the whole current approach doesn't consider font size, I think we should think of a better approach for 4.3)
* Use the same spacer as used in the panel for extenders. I think we would want some svg themable shared spacer widget for 4.3, but at least this adds some consistency.


svn path=/trunk/KDE/kdelibs/; revision=891328
2008-12-01 18:30:42 +00:00
Aaron J. Seigo
258a749f36 fix build on arm
svn path=/trunk/KDE/kdelibs/; revision=891099
2008-12-01 08:48:25 +00:00
Aaron J. Seigo
807b2cf637 make wheel events work, based on a patch by afiestas
CCMAIL:alex@eyeos.org

svn path=/trunk/KDE/kdelibs/; revision=890354
2008-11-29 00:03:08 +00:00
Marco Martin
069dc43c79 forward hover events, so the a:hover properties and such works
accept keyboard focus->forms works :)

svn path=/trunk/KDE/kdelibs/; revision=886923
2008-11-20 15:38:51 +00:00
Marco Martin
33e2b141ef why i don't read them before committing?
svn path=/trunk/KDE/kdelibs/; revision=886280
2008-11-18 22:24:43 +00:00
Marco Martin
d72387aff2 ...buut still delete the style, hope more correct this time
svn path=/trunk/KDE/kdelibs/; revision=886265
2008-11-18 22:09:50 +00:00
Marco Martin
e3268fa145 setStyle(0) in the dtor isn't such a good idea...
svn path=/trunk/KDE/kdelibs/; revision=886254
2008-11-18 21:49:30 +00:00
Marco Martin
9cfe6246ec make the tabbar widget stretch also in height (thus umbreaking it in the
panel), with a dirty hack on minimum/maximum sizes, but i think it's the
only way for now, since minimumTabSizeHint() and maximumTabSizeHint()
are private in QTabBar and will be protected probably not before Qt5 O.o

svn path=/trunk/KDE/kdelibs/; revision=886098
2008-11-18 15:27:04 +00:00
Aaron J. Seigo
5dbc0a7da0 don't hang onto deleted actions
svn path=/trunk/KDE/kdelibs/; revision=885851
2008-11-18 00:33:44 +00:00
Laurent Montel
720c589cc4 ...and don't leak private class :)
svn path=/trunk/KDE/kdelibs/; revision=884509
2008-11-15 07:39:59 +00:00
Aaron J. Seigo
74acdc9534 don't leak the style.
svn path=/trunk/KDE/kdelibs/; revision=884504
2008-11-15 07:08:30 +00:00
Aaron J. Seigo
1376b1dc9b consistent mocing
svn path=/trunk/KDE/kdelibs/; revision=884497
2008-11-15 06:11:17 +00:00
Aaron J. Seigo
2fc960f455 disconnect if the page changes but we don't own it
svn path=/trunk/KDE/kdelibs/; revision=884087
2008-11-14 08:04:23 +00:00
Marco Martin
c94f93e4ef making the theme more complex wasn't such a good idea
svn path=/trunk/KDE/kdelibs/; revision=882952
2008-11-11 18:31:21 +00:00
Marco Martin
ff775cfaf0 SVN_SILENT: whoops slipped a copypasted copyright in the header :)
svn path=/trunk/KDE/kdelibs/; revision=882819
2008-11-11 12:52:25 +00:00
Marco Martin
ec70aa7179 paint correctly not autoraise buttons (default behaviour is autoraise)
and expose setautoraise in the api

svn path=/trunk/KDE/kdelibs/; revision=882816
2008-11-11 12:50:42 +00:00
Marco Martin
bf6ef3f41d pushbutton has a glow also when pressed, toolbutton not.
svn path=/trunk/KDE/kdelibs/; revision=882769
2008-11-11 12:15:35 +00:00
Marco Martin
3cc9af418d as the name says, ehi, it's a toolbutton :)
svn path=/trunk/KDE/kdelibs/; revision=882689
2008-11-11 09:30:05 +00:00
Marco Martin
0c5a17b624 don't animate pressed buttons, avoids flicker
svn path=/trunk/KDE/kdelibs/; revision=882058
2008-11-09 17:00:49 +00:00
Aaron J. Seigo
271b20924e tonights shinyness: make meters progress smoothly instead of jump if the change is both large enough and animations are enabled
also: keep the value within the min/max bounds and don't update if the value hasn't actually changed.

svn path=/trunk/KDE/kdelibs/; revision=881849
2008-11-09 04:16:27 +00:00
Aaron J. Seigo
4a23952936 get krazy off my back
svn path=/trunk/KDE/kdelibs/; revision=881296
2008-11-07 18:04:32 +00:00