Marco Martin
2f10450c17
make the animate property do something
...
BUG:332884
CCBUG:332869
2014-04-03 18:08:13 +02:00
Marco Martin
2fd322536b
text areas use textViewColor
2014-04-01 17:18:12 +02:00
Marco Martin
91cb51e3c3
fix behavior of inverted sliders
...
BUG:332688
2014-03-28 11:51:19 +01:00
Marco Martin
f3aed6ac4a
less groowe width rather reposition of handle
...
BUG:332587
2014-03-28 11:43:51 +01:00
Sebastian Kügler
84a212469f
Disable elide in TabButton
...
This messes up the fontmetrics needed to size the tab button. Before,
the labels would be elided no matter what.
This is more a band-aid than a real fix, we'll need to investigate how
we can make the sizing work correctly, but at least it "unscrews" the
layout of all of our tabbars.
2014-03-26 00:13:54 +01:00
Marco Martin
91642b0868
qtextracomponents->kquickcontrolsaddons
2014-03-25 17:10:25 +01:00
Marco Martin
1415c07d4b
the bounds of the slider are centered on the handle
...
BUG:332587
2014-03-25 15:30:00 +01:00
Marco Martin
0205aa1ec6
if not flat, use button color
...
BUG:332138
2014-03-20 17:55:22 +01:00
Marco Martin
50b5c62d81
fix highdpi mode for slider and progressbar
...
progressbar looks like still needs some serious work
2014-03-07 17:59:33 +01:00
Marco Martin
f4daf5f7d9
export location
2014-03-05 20:58:42 +01:00
Marco Martin
6fe147f4d7
new graphics for tabbars
2014-03-05 20:14:52 +01:00
Marco Martin
9cac91b652
try harder to avoid scroll buttons
...
also event copmpress the relayout
2014-03-03 22:24:05 +01:00
Marco Martin
9c600c5d68
add a new property in TabBar: tabPosition
...
it makes the tabbar eventually vertical and appearing oriented differently towards the content
possible values:
Qt.TopEdge (default)
Qt.LeftEdge
Qt.RightEdge
Qt.BottomEdge
2014-03-03 19:43:13 +01:00
Marco Martin
b2fec905b5
Merge branch 'mart/svgHiDpi'
...
REVIEW:116027
2014-02-26 16:39:52 +01:00
Marco Martin
9976c47ad9
add a transientParent property
...
if this contextmenu is done from a Dialog, add this as transientParent
2014-02-24 14:01:05 +01:00
Marco Martin
c009c7f0cd
concept of fixedMargins
...
sometimes we need to know what the margins are of a framesvg, even if some of them are disabled
2014-02-21 21:13:12 +01:00
Marco Martin
4a0be9acd9
Revert "Slider scales with devicePixelRatio"
...
This reverts commit 4b0e828e29
.
2014-02-21 19:41:31 +01:00
Sebastian Kügler
4b0e828e29
Slider scales with devicePixelRatio
...
Conflicts:
src/declarativeimports/plasmacomponents/qml/Slider.qml
2014-02-21 19:28:34 +01:00
Sebastian Kügler
bc7a54bb09
Compile-time connect in PlasmaComponents.Menu
2014-02-18 01:05:26 +01:00
David Edmundson
e82b1dab9d
Enable Plasma Controls for tab-navigation
2014-02-06 12:35:32 +01:00
David Edmundson
a3a434ced5
Upgrade all components to use QtQuick2.1
...
This has some new features like activeFocusOnTab which are awesome.
2014-02-06 12:16:43 +01:00
David Edmundson
b97e726ae2
Set minimumWidth of button to actually show the text
...
The minimumWidth of a plasma button is based on the paintedWidth
of the text item. There is no way to work out the correct width it
should be if we set the text to elide.
(except for the hack of using a hidden fake text item)
We should always fit contents. This won't cause any problems unless a
developer has a broken layout, at which point that should be fixed
REVIEW: 115500
2014-02-05 17:00:34 +01:00
Sebastian Kügler
09564783a3
Fix wrong property name
2014-02-04 03:15:01 +01:00
Sebastian Kügler
1d0c41f936
Fix animations with animations disabled
...
This may sound a bit weird, but we can't just switch off everything, as
in some cases, the animation is not just eye-candy, but carries
important semantics of the UI -- examples are BusyIndicator and
ProgressBar. Behaviour for those is restored.
2014-02-04 01:32:12 +01:00
Sebastian Kügler
86e458cdd0
Normalize animations in PlasmaComponents
2014-02-04 00:16:55 +01:00
Sebastian Kügler
27eae008d6
250ms animations become units.longDuration
2014-02-03 18:56:32 +01:00
David Edmundson
9de921e34d
Warnings-- if modelData.seperator is not set
2014-01-29 18:39:20 +01:00
Sebastian Kügler
cc7bd8e11e
Port from theme iconsize to units.iconSizes.*
2014-01-23 00:24:38 +01:00
Sebastian Kügler
e10b77f236
Move units from PlasmaComponents into PlasmaCore
2014-01-23 00:06:43 +01:00
Sebastian Kügler
7e5604cc56
icon sizes move into Units
...
They go into the propertymap, so are accessible now with
units.iconSizes.huge, units.iconSizes.large, etc.
2014-01-22 23:59:23 +01:00
Sebastian Kügler
d51711edc6
Add dpi function from theme
...
printScreenInfo() has the debugging prints for now, removes random crap
from the shell output.
2014-01-22 01:36:30 +01:00
Sebastian Kügler
0c3e49866a
Add dpiScale property to dynamically scale the whole ui
2014-01-22 01:18:54 +01:00
Sebastian Kügler
60950e8333
Correct api docs
2014-01-22 00:39:54 +01:00
Sebastian Kügler
0dc8a7ee53
Move iconSizes from theme here
...
This is means two things:
- icon sizes have moved from theme.iconSizes.* to units.iconSizes.*,
will provide porting script and update docs
- we can kill PlasmaCore's ThemeProxy now. Icon sizing and dpi handling
is kept outside of Plasma::Theme for now, as it pulls in too many
deps.
2014-01-22 00:28:09 +01:00
Sebastian Kügler
c84e549715
Use msize.height, not width for gridUnit
...
This change does two things:
- it increases the gridUnit to 11 pixel on 102DPI, 18 on 170DPI. This
means on the one hand larger sizing, but aligns gridUnit and
theme.largeSpacing consistently, and thus makes these types work
together better.
- it scales the gridUnit with the DPI. The width of the font's bounding
box doesn't change on the displays I've tried, the height does.
As a result, gridUnit now scales linearly with the DPI setting.
2014-01-21 23:47:32 +01:00
Sebastian Kügler
13a6a38628
Some debugging for gridUnit
2014-01-21 17:55:47 +01:00
Marco Martin
92fe107329
put namespace around KDeclarative
2014-01-13 21:21:14 +01:00
David Edmundson
d200bd0d16
Add a new component ModelMenu
...
This is a wrapper round ContextMenu that allows one to populate
the menu items from a model
REVIEW: 114925
2014-01-10 12:28:29 +01:00
Aleix Pol
e1a868e4f6
Fix QMenuItem connections
...
Don't emit twice textChanged when changed.
checkableChanged signal doesn't exist anymore. Use changed instead as
suggested by the Q_PROPERTY
2014-01-07 16:45:27 +01:00
Sebastian Kügler
e9a43b165b
Quicker animation in pagestack
2013-12-28 06:57:57 +01:00
Sebastian Kügler
682affabf8
Allow to switch off pagestack transitions
2013-12-28 06:44:58 +01:00
Marco Martin
4f3228ab44
fix rendering issues
2013-12-27 11:23:16 +01:00
Christophe Giboudeaux
26948d0cea
Fix includes
2013-12-19 15:23:02 +01:00
Sebastian Kügler
462cfdcdc7
Port from activateWindow to requestActivate
2013-12-17 03:05:16 +01:00
Aurélien Gâteau
02d6b37976
Renames for the KF5 prefix
2013-12-11 21:40:54 +01:00
Martin Klapetek
3214bd8132
Add KF5 prefix to plasma framework
...
This changes the lib name and package names to follow other frameworks
libFoo -> libKF5Foo
find_package(KFoo) -> find_package(KF5Foo)
REVIEW: 114389
2013-12-11 21:40:54 +01:00
Aleix Pol
6c82a1ee86
Reduce compiler warnings
...
Remove unused and deprecated headers
Port some K_GLOBAL_STATIC to Q_GLOBAL_STATIC
2013-12-09 16:50:18 +01:00
Aleix Pol
0fa21b4af5
Iterate over the cmake scripts
...
Prefer using imported targets rather than cmake variables.
2013-11-15 16:46:59 +01:00
Sebastian Kügler
7b0faed939
Remove QIconItem
2013-10-30 17:20:57 +01:00
Sebastian Kügler
79ad02c244
Out of bounds checking for array access
...
This fixes a crasher in v4, without backtrace. Trying to reproduce it
in a simpler case, but this at least makes PageStack work.
2013-10-28 04:20:52 +01:00
Stephen Kelly
b071260d15
Use target name instead of variable.
2013-10-24 12:45:26 +02:00
Aleix Pol
af8a7bad7d
Stop using Qt5Transitional in Plasma Frameworks
...
Removes the find_package(Qt5Transitional) and does the proper
find_package(Qt5) with the list of modules.
Most of the porting is about using the Qt5:: targets.
REVIEW: 113345
2013-10-22 00:40:17 +02:00
Sebastian Kügler
d5bef21f7b
Rename target plasma to Plasma
...
This is in line with the frameworks naming policy, camelcasing. Up until
now, libplasma was the only library being KF5::plasma, that is now
KF5::Plasma.
2013-10-16 00:47:47 +02:00
Sebastian Kügler
c7c9e8fefc
Put steve's changes back in
...
CCMAIL:steveire@gmail.com
2013-10-13 02:00:32 +02:00
Sebastian Kügler
c2be5b6b12
Revert bef789642e
...
That commit breaks the build, not finding qtest_kde.h, and cascading
errors from there.
CCMAIL:steveire@gmail.com
2013-10-12 21:47:07 +02:00
Stephen Kelly
bef789642e
Remove obsolete include_directories use.
2013-10-12 15:25:19 +02:00
Sebastian Kügler
2ad8ff7c55
plasmacomponents builds without kde4support
2013-10-05 02:48:09 +02:00
Aleix Pol
1891066fc2
Adapt to kdelibs ab56e2f.
2013-10-04 18:40:47 +02:00
Marco Martin
9b3b387b0b
new install targe
2013-09-18 21:36:36 +02:00
Marco Martin
cdc778f417
test applet for config uis
2013-09-11 17:39:09 +02:00
Marco Martin
abbe19722f
use native text rendering
2013-09-06 13:43:19 +02:00
Marco Martin
86a2847c84
revert bd6927138f
...
apparently we can't tap into the valuetype conversion of QFont at all
theme.mSize(font) it is
2013-08-28 14:07:07 +02:00
Sebastian Kügler
19c4b555d5
Less warnings in TabButton
2013-08-27 04:27:28 +02:00
Andreas Cord-Landwehr
24c60ed48c
Fix button width computation when height is set.
...
This commit fixes the button label overlapping over the button borders
when the button height is manually set to a value bigger than the
icon's smallsize.
Review done by notmart on IRC.
2013-08-22 21:14:42 +02:00
Martin Gräßlin
531e6c3db5
Fix linking
...
KDEUI is dead which caused quite some collateral damage in our
CMakeLists.
2013-08-20 07:47:09 +02:00
heena mahour
b17ca9f007
Merge branch 'heenamahour/gsoc' of git://anongit.kde.org/plasma-framework into heenamahour/plasma2
2013-08-17 08:15:01 +00:00
heena mahour
3fb515ca6d
Added margin Hints to highlight and indent Desktop.qml
2013-08-16 15:36:32 +00:00
Sebastian Kügler
2256c5ad1c
Fix text elide in button and toolbutton
...
Also use a Plasma.Label, instead of doing it on our own
2013-08-14 05:46:55 +02:00
Sebastian Kügler
db9b0016d1
remove last remains of kdebug
2013-08-09 04:14:26 +02:00
Marco Martin
ea42678895
make minimumWidth/maximum/implicit exportable
...
both the applet and its compact representation can now export minimumWidth,implicitWidth etc and those are exported to the root graphics item.
the minimum width of the applet is used to collapse in popup
2013-08-05 15:37:21 +02:00
Kevin Ottens
0e590217f8
Port away from kdebug
2013-07-30 08:05:09 +02:00
Marco Martin
c0f3730686
forward port the scrolling fixes of plasma1 vers
2013-07-16 19:30:25 +02:00
Marco Martin
5b0b17f86a
respect contents hints
2013-07-01 18:21:29 +02:00
Sebastian Kügler
057d592a1a
Ensure the busyindicator is square
2013-06-17 15:22:15 +02:00
Marco Martin
7a7914126e
Switch is a CheckBox on desktop
...
the sliding Switch is touch specific
2013-05-25 12:50:32 +02:00
Marco Martin
669ed7a35c
register Units
2013-05-16 13:39:30 +02:00
Marco Martin
75cbf80f47
add Units from Plasma1
2013-05-15 17:58:30 +02:00
Marco Martin
c13a58cf11
checkable and checked properties
2013-05-09 16:16:16 +02:00
Sebastian Kügler
b68317e930
Use QVariant for MenuItem::icon
...
This way, we can cover string and QIcon assignments transparently,
another backwards compatibility fix, and easier thing in Plasma2: Now
the user doesn't have to worry about creating QIcons, but can just
assign the icon name, and it will get loaded from the theme. Models that
provide QIcons (such as QStandardItems) now work correctly with
PlasmaCore.MenuItems.
2013-04-30 02:50:42 +02:00
Marco Martin
31e39640ce
correct kdeclarative includes
2013-04-26 17:36:45 +02:00
Stephen Kelly
268f44fc3b
Remove use of qt4_automoc.
...
It is obsolete.
2013-04-12 11:09:43 +02:00
Marco Martin
c3e2a6e671
smaller sectionscroller
2013-04-05 11:08:30 +02:00
Sebastian Kügler
cbe0d39b99
add spacing in buttonrow and column
2013-03-27 22:27:22 +01:00
Sebastian Kügler
a0fb4356dc
Positioning of Menu on screen
...
Actually quite a bit more lightweight than its QGV predecessor.
2013-03-26 22:34:35 +01:00
Sebastian Kügler
0ef4080e4f
positioning for context menu
2013-03-26 22:17:25 +01:00
Sebastian Kügler
335e0b6d9d
Port Menu and MenuItem to QtQuick2
...
In MenuItem, we can't inherit QAction anymore (our MenuItem has to be a
QQuickItem), so we need to aggregate, which means adding glue API.
Positioning code is disabled, icons broken, but a QMenu with our items
inside shows up and is works.
2013-03-26 20:15:56 +01:00
Sebastian Kügler
9c6b7539bc
fix namespacing in ContextMenu
2013-03-26 01:12:04 +01:00
Marco Martin
ed36b6aab4
bigger clear button
2013-03-20 21:14:04 +01:00
Sebastian Kügler
a3b39a8321
All imports are now 2.0
...
This patch changes the version numbers of the plugins to 2.0. This
includes the previously 0.1 plasmacomponents, extras and
qtextracomponents. DragandDrop, which was at 1.0 is now also at 2.0.
Also, all the QML code has been changed to import the 2.0 plugins.
As a side-effect, we now share a version number with QtQuick 2.0 now.
2013-03-13 02:34:53 +01:00
Sebastian Kügler
4cfc6863af
change all 0.1 imports to 2.0 in qml files
2013-03-13 01:56:19 +01:00
Marco Martin
83baa3691e
theme.defaultFont.mSize api changed
...
QML2 has QFont directly binded, but doesn't have mSize, so move it to Theme
theme.defaultFont.mSize to theme.mSize(theme.defaultFont)
2013-03-11 17:06:05 +01:00
Marco Martin
e6eae78f06
propagate size hints
2013-03-07 12:01:29 +01:00
Sebastian Kügler
1a31c22e57
debug--
2013-03-07 02:42:13 +01:00
Sebastian Kügler
112fb3f78a
Fix API
2013-02-27 14:54:55 +01:00
Sebastian Kügler
00c93c186d
Test code for placement
2013-02-22 03:43:09 +01:00
Sebastian Kügler
006eb99b55
Make dialog-in-separate-window kind of work
...
inlining is still broken, disabled right now. popupPosition has moved
into PlasmaCore.Dialog internally, so don't handle it in QML.
2013-02-22 02:18:16 +01:00
Sebastian Kügler
6461683f58
Some work on PlasmaComponents.Dialog
...
Still broken in all kinds of ways, buttons, geometry, etc.
2013-02-20 06:56:48 +01:00
Sebastian Kügler
305e711c8c
Fix namespace of RangeModel in Slider and ProgressBar
...
Now those components work as well.
2013-02-20 05:27:11 +01:00
Sebastian Kügler
71e2114541
Fix RangeModel namespace
2013-02-20 05:24:03 +01:00
Sebastian Kügler
4375b61759
Add module identier to qmldirs
2013-02-20 02:09:23 +01:00