Commit Graph

843 Commits

Author SHA1 Message Date
Marco Martin
46f6571eea export isClearButtonShown
svn path=/trunk/KDE/kdelibs/; revision=982630
2009-06-16 13:45:11 +00:00
Marco Martin
d55d16976e don't paint button background if it's disabled
svn path=/trunk/KDE/kdelibs/; revision=982337
2009-06-15 14:35:00 +00:00
Alan Alpert
390a8931d5 Add NOTIFYs to Q_PROPERTYs for plasma widgets
See http://reviewboard.kde.org/r/844/ for more details.


svn path=/trunk/KDE/kdelibs/; revision=982204
2009-06-15 09:47:14 +00:00
Aaron J. Seigo
b16294bdec it looks far, far better with that margin, i'm afraid.
svn path=/trunk/KDE/kdelibs/; revision=982045
2009-06-14 20:14:28 +00:00
Aaron J. Seigo
c9f6055a93 SVN_SILENT: @since
svn path=/trunk/KDE/kdelibs/; revision=982009
2009-06-14 18:09:54 +00:00
Aaron J. Seigo
c7c841e33a SVN_SILENT: sshh
svn path=/trunk/KDE/kdelibs/; revision=982008
2009-06-14 18:09:41 +00:00
Laurent Montel
7f7557b781 Add missing svg function
svn path=/trunk/KDE/kdelibs/; revision=981750
2009-06-14 09:53:12 +00:00
Laurent Montel
5dd9e528fa Add missing read function
svn path=/trunk/KDE/kdelibs/; revision=981749
2009-06-14 09:51:10 +00:00
Aaron J. Seigo
23638e7f84 only return a curved shape if we are drawing the curved background
svn path=/trunk/KDE/kdelibs/; revision=979520
2009-06-10 02:18:41 +00:00
Aaron J. Seigo
c2717ed3f2 not sure if i like this (visually) yet, but let's try with a zero px border
BUG:177871

svn path=/trunk/KDE/kdelibs/; revision=979507
2009-06-10 00:06:51 +00:00
Marco Martin
75e7968ae5 don't make a loop of scrollbar updating->position updating
svn path=/trunk/KDE/kdelibs/; revision=979074
2009-06-08 21:06:23 +00:00
Marco Martin
49043d7f49 update scrollbars position if the widget gets moved
svn path=/trunk/KDE/kdelibs/; revision=979057
2009-06-08 20:33:56 +00:00
Aaron J. Seigo
64d02688f9 add some api widgets are using and which seems semi-common
svn path=/trunk/KDE/kdelibs/; revision=977687
2009-06-05 01:29:19 +00:00
Marco Martin
856b4664fe HighlightColor is a background, we need a text color
svn path=/trunk/KDE/kdelibs/; revision=976834
2009-06-02 19:01:46 +00:00
Fathi Boudra
9078536006 Plasma::ToolButton::setIcon()/icon() since 4.3
CCMAIL: notmart@gmail.com

svn path=/trunk/KDE/kdelibs/; revision=975842
2009-05-31 12:20:57 +00:00
Marco Martin
c96b3739db use klocale to kill mnemonics
svn path=/trunk/KDE/kdelibs/; revision=971913
2009-05-23 17:16:15 +00:00
Marco Martin
80621aa1a7 pretty important textbrowser functions, le's export them
svn path=/trunk/KDE/kdelibs/; revision=971727
2009-05-23 10:23:07 +00:00
Marco Martin
9622b2cfe8 qtextayout can't show mnemonics, so when there is a qaction use
painter.drawtext
(unlikely we will have a multiline caption in this case)
this should fix the & appearing in the desktop toolbox

svn path=/trunk/KDE/kdelibs/; revision=969532
2009-05-18 13:20:32 +00:00
Aaron J. Seigo
b967d0944e turn off caching when we are rending the bar
BUG:185642

svn path=/trunk/KDE/kdelibs/; revision=967637
2009-05-13 16:40:51 +00:00
Laurent Montel
efbba51e0a Necessary to fix compile with enable-final
svn path=/trunk/KDE/kdelibs/; revision=966210
2009-05-10 16:15:42 +00:00
Marco Martin
30620609ae unbreak glow animation
svn path=/trunk/KDE/kdelibs/; revision=966173
2009-05-10 14:46:46 +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
92b51d7751 set a tooltip only when the main text is elided
BUG: 189716

svn path=/trunk/KDE/kdelibs/; revision=964973
2009-05-07 18:49:22 +00:00
Aaron J. Seigo
ef6d0641dd disabled and paused state support
svn path=/trunk/KDE/kdelibs/; revision=964482
2009-05-06 18:35:31 +00:00
Aaron J. Seigo
6ca62962e2 do a sweep for kapplication usage
svn path=/trunk/KDE/kdelibs/; revision=963961
2009-05-05 18:11:50 +00:00
Marco Martin
359c2145b3 use the brand new slider svg
svn path=/trunk/KDE/kdelibs/; revision=962188
2009-05-01 17:44:31 +00:00
Marco Martin
540090a1b7 use the shared style on slider
dinamically resize controls widget of videoplayer depending on the
player size

svn path=/trunk/KDE/kdelibs/; revision=962181
2009-05-01 17:10:14 +00:00
Marco Martin
f2ba67f0b1 volume slider is smaller than the progress
svn path=/trunk/KDE/kdelibs/; revision=961832
2009-04-30 19:43:01 +00:00
Aaron J. Seigo
12000ecad1 no more white background, huzzah
svn path=/trunk/KDE/kdelibs/; revision=960564
2009-04-28 16:47:50 +00:00
Aaron J. Seigo
9ddc33a663 allow setting a QAction on push and tool buttons
svn path=/trunk/KDE/kdelibs/; revision=958514
2009-04-24 07:40:52 +00:00
Andrew Coles
c54617a1bd Hypothetically, if you run through the conditions on the if, there's an implicit third branch that isn't matched,
corresponding to the first but with the != changed to a ==.  Of course, in practice, I can't see why this would /ever/ 
happen, but the compiler picked up on it.  Hence, to shut the damned thing up and in case I'm wrong, the pointer is 
now initialised to zero and a Q_ASSERT used to make sure it isn't zero at the point where we try to use it.  Quiet 
compiler, and a modicum more robustness.


svn path=/trunk/KDE/kdelibs/; revision=957515
2009-04-22 10:11:01 +00:00
Marco Martin
8a4ce887ea why oh why i always forget @since? :)
svn path=/trunk/KDE/kdelibs/; revision=957272
2009-04-21 17:58:51 +00:00
Marco Martin
04a722f05b provide a nextRequested and previousRequested signals, don't make the
widget too heavy with an internal management of the playlist

svn path=/trunk/KDE/kdelibs/; revision=957136
2009-04-21 13:35:42 +00:00
Davide Bettio
eb7617ab4e Added 2 missing update()s.
svn path=/trunk/KDE/kdelibs/; revision=956845
2009-04-20 19:07:40 +00:00
Marco Martin
63c009bf68 unbreak the animation of text background
svn path=/trunk/KDE/kdelibs/; revision=954953
2009-04-16 15:41:56 +00:00
Rob Scheepmaker
fac4e005d0 Replace the "i" icon for showing/hiding jobs and notifications in the systray with a spinner widget. When jobs are running it is animated. It also shows one or two numbers in front of the widget to indicate the amount of completed, and the total amount of items. (only one number if all items are completed)
Apparently I also had something else uncomitted: showing an eta in the applicationjobs dataengine, and no using double margins in extenderitems.


svn path=/trunk/KDE/kdelibs/; revision=954560
2009-04-15 22:21:29 +00:00
Aaron J. Seigo
4c009d93d4 allow a color lozenge behind the text to make it work on any sort of background
svn path=/trunk/KDE/kdelibs/; revision=952083
2009-04-10 21:16:14 +00:00
Aaron J. Seigo
ff763aab1a SVN_SILENT:--compilerWarnings;
svn path=/trunk/KDE/kdelibs/; revision=951382
2009-04-09 06:00:57 +00:00
Wang Kai
ec7651c5e1 Scroll fix:
If scroll widget is wider/taller than the internal widget,
then the internal widget should be positioned to scroll widget's top left, not bottom right.


svn path=/trunk/KDE/kdelibs/; revision=951376
2009-04-09 04:52:38 +00:00
Aaron J. Seigo
0b5bceb2e9 * implement the READ side of the properties
* remove a compile warning

thanks, Laurent, for noticing the properties missing READs

CCMAIL:montel@kde.org

svn path=/trunk/KDE/kdelibs/; revision=950458
2009-04-07 08:33:51 +00:00
Davide Bettio
2f0da61660 The previous "hover effect on drag" patch was buggy. Now we are using sceneEventFilter and it seems better.
svn path=/trunk/KDE/kdelibs/; revision=948792
2009-04-03 19:57:13 +00:00
Davide Bettio
44d2194253 Use hover background when something is dragged on the icon.
BUG: 110952

svn path=/trunk/KDE/kdelibs/; revision=948303
2009-04-02 18:33:39 +00:00
Marco Martin
c7aa7e7a6a don't override minimum and maximum sizes so often
svn path=/trunk/KDE/kdelibs/; revision=948218
2009-04-02 15:16:53 +00:00
Marco Martin
bc01148110 some q_property
svn path=/trunk/KDE/kdelibs/; revision=946865
2009-03-30 13:27:25 +00:00
Marco Martin
d6f6c69817 add missing @since 4.3
svn path=/trunk/KDE/kdelibs/; revision=946801
2009-03-30 12:21:52 +00:00
Marco Martin
810a3a293c add setDragToScroll, makes the webview to work like a touchscreen, it
selects the text instead of dragging if the move is less than 250
milliseconds after the mouse press, not really reliable but don't know
how to save both functionalities

svn path=/trunk/KDE/kdelibs/; revision=946794
2009-03-30 11:58:23 +00:00
Harald Hvaal
570242531f Make the iconwidget's a teeny bit smaller when pressed down. This gives a good response when clicking buttons in plasma.
svn path=/trunk/KDE/kdelibs/; revision=946711
2009-03-30 06:42:19 +00:00
Marco Martin
2ebcc9f481 workaround on a qt bug: if i call setVisible(true) on a child of an
hidden item it gets shown anyways (will get around doing a test case)

svn path=/trunk/KDE/kdelibs/; revision=946139
2009-03-28 19:11:43 +00:00
Marco Martin
93a9b754a6 manage the isChecked case
svn path=/trunk/KDE/kdelibs/; revision=945111
2009-03-26 21:45:05 +00:00
Marco Martin
eb46f78fd9 scrollbarPolicy->scrollBarPolicy, luckily it was spotted before any
release :)

svn path=/trunk/KDE/kdelibs/; revision=945072
2009-03-26 20:21:48 +00:00
Aaron J. Seigo
599fcdd138 ignore timer id's that aren't ours
svn path=/trunk/KDE/kdelibs/; revision=944581
2009-03-25 19:10:02 +00:00
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