Commit Graph

1292 Commits

Author SHA1 Message Date
Aleix Pol
d391a907e1 Reduce warning
Don't add graphics items twice to the scene.
Reparenting already sets the scene.

REVIEW: 108079
2013-01-02 18:38:04 +01:00
Aleix Pol
bb2688392a Reduce many connect() warnings when loading Declarative plasmoids.
Right now, every QML plasmoid can provide a number of properties
(6, actually) to specify some size hints (maximum, minimum and
preferred).
If you don't provide those properties you get many warnings because
of the missing changed connections. This patch removes such warnings
by making sure the property is present before connecting and querying
the property at all.

REVIEW: 107261
2012-11-09 13:42:01 +01:00
Montel Laurent
fead6ece87 Merge remote-tracking branch 'origin/KDE/4.9' into KDE/4.10 2012-10-18 20:49:50 +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
Jaime Torres
fe259f19bb include missing initializations
an uninitialized variable can be the origin of several bugs.
unfortunately, not the one I suffer.

REVIEW: 106781
2012-10-10 19:07:06 +02:00
Marco Martin
8db63c42a9 support maximum and preferred sizes as well 2012-09-20 11:49:17 +02:00
Marco Martin
e2b94040e6 intersect the clip rect when painting 2012-09-07 22:27:58 +02:00
Ignat Semenov
3c46a565df slots -> Q_SLOTS 2012-07-15 23:26:14 +04:00
Marco Martin
988737b128 fix behavior when hint-bar-stretch is present 2012-06-21 15:32:52 +02:00
Nick Shaforostoff
816efa3b16 disable visual feedback for hovering of lineedit as a workaround for 290111
CCBUG: 290111
2012-03-12 11:46:23 +02:00
Dawit Alemayehu
fb0b49af8c Normalize all signal/slot connections.
REVIEW: 103728
2012-02-13 14:27:21 -05: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
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
e34c70415e git rid of the native member, it's redundant; use d->setWidget which notes that it's not a palette customization 2011-12-04 14:00:32 +01:00
Jaime Torres
4aa690ccc8 return a double usind qMin
qMin is a template, use the right datatype for it.
part of review 103323
2011-12-04 12:28:04 +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
Marco Martin
71ad31df23 add the import paths right into libkdeclarative 2011-11-08 17:19:47 +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
Marco Martin
4fad696891 possibility to put the focus over the frame
fixes the wrong shading of the lineedits, but staying retrocompatible with the old themes designed to have an highlight outside
2011-11-07 23:22:11 +01:00
Alexey Chernov
9abdf64813 Remove waste setTextBackgroundColor() for internal KTextEdit
Removed setTextBackgroundColor() for internal KTextEdit as it
seems to be useless and leads to QTBUG-21522
(http://bugreports.qt.nokia.com/browse/QTBUG-21522).

REVIEW: 102698
2011-10-02 00:24:15 +04:00
Sebastian Kügler
98cb6e0a83 focusChanged(bool) signal for LineEdit 2011-08-29 21:09:08 +02:00
Marco Martin
c12af537e4 support minimumSize
if the root object has a minimumSize set, set it as minimum size for the declarative widget, and keep it in sync
2011-08-20 17:34:36 +02:00
Marco Martin
b4c5e52c0f ensure the frame is resized 2011-08-12 16:06:09 +02:00
David Faure
c21fc57968 Fix @since tag to reflect backport 2011-08-07 00:46:27 +02:00
Marco Martin
15fbd34fae bind tickInterval property 2011-08-06 19:34:12 +02:00
Marco Martin
c21910e833 check the properties are really changed 2011-08-06 19:34:12 +02:00
Viranch Mehta
12e7e6f612 Notify when meter's value changes 2011-06-21 01:24:54 +05:30
Marco Martin
317510047d notify on textChanged, not edited
it must be emitted also when changed programmatically
2011-06-20 17:53:20 +02:00
Aaron Seigo
c3157acf2c delete the NAM; it isn't deleted by the QDeclarativeEngine 2011-06-15 14:18:31 +02:00
Frederik Schwarzer
5c0d0e8e8e Replace doxygen tag @arg by @param.
The @param doxygen tag is formatted way nicer and should be used
throughout our apidox.

REVIEW: 101596
2011-06-13 14:47:29 +02:00
Viranch Mehta
0e9d609542 Fix: WRITE method for Q_PROPERTY maximum was setMinimum, which should be setMaximum 2011-06-03 00:50:18 +05:30
Matthias Fuchs
d9568fb2c5 Adds a setTabHighlighted and a isTabHighligted method to Plasma::TabBar.
When a tab is highlighted the text is drawn with a different color.
The icon will then have an active effect and a pressed button will be drawn at its background.

REVIEW:101264
2011-05-04 13:01:30 +02:00
Marco Martin
a6fa660809 bindings for dataengine in DeclarativeWidget 2011-04-30 12:43:29 +02:00
Aaron Seigo
c5cf7f8460 style 2011-04-28 10:54:23 +02:00
Sebastian Kügler
6de3205490 Switch off scrollbars when in dragToScroll mode
They don't work with dragging, anyway since flicking and scrollbars
operate in different directions.
2011-04-24 16:21:19 +02:00
Marco Martin
14d3286096 use Item width and height as minimumSize
massively not optimal. however qml doesn't have concept of size hints unfortunately
2011-04-20 20:34:52 +02:00
Aaron Seigo
bd3f840f3b similar work around in mousePressEvent as we have in contextMenuEvent 2011-04-09 20:07:00 +02:00
Marco Martin
fb2db78521 FEATURE: access to the QScriptEngine 2011-04-07 22:10:56 +02:00
Marco Martin
256532e240 use libkdeclarative in Plasma::DeclarativeWidget 2011-04-04 23:05:23 +02:00
Marco Martin
c6215bb249 set main object size after loading 2011-02-28 13:47:35 +01:00
Marco Martin
80eb4eafea correctly reposition the main item when resizes 2011-02-27 17:00:53 +01:00
Marco Martin
17c0805063 ask for on screen keyboard hiding on focus lost 2011-02-17 15:23:06 +01:00
Lasse Liehu
d0e8d977b4 ignore() key press event for keys not handled
(cherry picked from commit 6e208cf0cc60d3e7016a3bbdbb6dfd3c1b105186)
2011-02-10 21:05:34 +02:00
Marco Martin
c158ebbaa4 realign the widget if it's resized
svn path=/trunk/KDE/kdelibs/; revision=1216378
2011-01-22 22:13:42 +00:00
Marco Martin
312bdcf909 if the theme wants to paint with the system style just let the proxy paint
svn path=/trunk/KDE/kdelibs/; revision=1216324
2011-01-22 17:55:14 +00:00
Marco Martin
8e152270ce set a custom geometry also in init, not only when the size doesn't change, because it can happen that the size will never change (so the focusindicator staying at the wrong size)
svn path=/trunk/KDE/kdelibs/; revision=1214258
2011-01-13 20:00:33 +00:00
Alex Merry
54ad0622e7 Simplify an if-else statement in the tabbar - d->tabBarShown makes the else if condition obsolete
svn path=/trunk/KDE/kdelibs/; revision=1212398
2011-01-06 20:50:09 +00:00
Alex Merry
082ddcb95a Don't add the tabbar to the layout twice, or try to remove it twice.
BUG: 258867


svn path=/trunk/KDE/kdelibs/; revision=1212395
2011-01-06 20:33:56 +00:00
Marco Martin
244ec458f8 don't handle wheel events in the event filter, let any widget that wants to steal it do so
seems to have a more natural behaviour

svn path=/trunk/KDE/kdelibs/; revision=1212343
2011-01-06 15:30:55 +00:00