Commit Graph

39 Commits

Author SHA1 Message Date
Aaron Seigo
faa9bd1eb2 remove close support, clean up code a bit while in there 2011-05-04 14:12:33 +02:00
Aaron Seigo
4a1ed3e6aa don't paint the icon highlight if there is no icon 2011-05-04 14:10:34 +02:00
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
59211cfea4 remove old unused variable
svn path=/trunk/KDE/kdelibs/; revision=1143742
2010-06-28 16:29:37 +00:00
Marco Martin
60b151b23e discard the stored active tab rectangle if the animation is not running
BUG:225355

svn path=/trunk/KDE/kdelibs/; revision=1143717
2010-06-28 16:08:30 +00:00
Marco Martin
791fa67a23 recalculate the active tab rectangle when a tab gets added or removed
BUG:243002

svn path=/trunk/KDE/kdelibs/; revision=1143660
2010-06-28 13:00:54 +00:00
Marco Martin
f99d57fdc1 support drag in vertical tabbars
BUG:239020

svn path=/trunk/KDE/kdelibs/; revision=1131253
2010-05-27 20:30:05 +00:00
Aaron J. Seigo
9e1aa5472f keep the position bounded to what setColorAt wants
svn path=/trunk/KDE/kdelibs/; revision=1084461
2010-02-03 08:41:25 +00:00
Igor Trindade Oliveira
291f30e9f9 move nativetabbar to the new animation api
svn path=/trunk/KDE/kdelibs/; revision=1077713
2010-01-20 18:38:37 +00:00
Fredrik Höglund
1deb1a958a Add a margin between the button contents and the frame, and put some
space between the icon and the label.

svn path=/trunk/KDE/kdelibs/; revision=1056854
2009-12-01 00:39:44 +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
65a85e7a3d fade out the tabs text at the edges of the tabbar if the tabs are too
many for the space 

svn path=/trunk/KDE/kdelibs/; revision=1028649
2009-09-27 20:23:13 +00:00
Aaron J. Seigo
507a0eb677 clicking on the tabs in the weather widget felt normal. scroll wheeling == nice. but i kept trying to grab the tab thumb and move it around! now i can :)
svn path=/trunk/KDE/kdelibs/; revision=951391
2009-04-09 06:41:37 +00:00
Marco Martin
893093b85c initialize a value
svn path=/trunk/KDE/kdelibs/; revision=937990
2009-03-10 22:44:46 +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
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
21144164ff no camelcase includes, fixes build, sooory
svn path=/trunk/KDE/kdelibs/; revision=916620
2009-01-25 17:08:54 +00:00
Marco Martin
e720a24966 paint close buttons if asked to
svn path=/trunk/KDE/kdelibs/; revision=916527
2009-01-25 13:26:53 +00:00
Marco Martin
84685506af one more tiny size fix
svn path=/trunk/KDE/kdelibs/; revision=903507
2008-12-30 18:00:59 +00:00
Marco Martin
1417e507f3 get size hints of tabs a bit better, in the panel is way better now
svn path=/trunk/KDE/kdelibs/; revision=903488
2008-12-30 16:41:15 +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
4d962352a9 respect drawBase()
svn path=/trunk/KDE/kdelibs/; revision=889814
2008-11-27 18:36:42 +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
74acdc9534 don't leak the style.
svn path=/trunk/KDE/kdelibs/; revision=884504
2008-11-15 07:08:30 +00:00
Aaron J. Seigo
89f4735cc9 call the right parent class methods
svn path=/trunk/KDE/kdelibs/; revision=881295
2008-11-07 18:03:16 +00:00
Aaron J. Seigo
c948455956 use ktabbar here, as per krazy's suggestion
svn path=/trunk/KDE/kdelibs/; revision=880622
2008-11-05 23:28:07 +00:00
Aaron J. Seigo
beaa49aeb2 ++compile
svn path=/trunk/KDE/kdelibs/; revision=879800
2008-11-04 02:39:56 +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
Kevin Ottens
f66b4d819b API changes as announced:
* ConfigXml becomes ConfigLoader
  * Containment::(add|remove)ToolBoxTool(QAction *action) becomes
    Containment::(add|remove)ToolBoxAction(QAction *action)
  * Flash becomes FlashingLabel
  * Icon becomes IconWidget
  * PanelSvg becomes FrameSvg

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=877504
2008-10-29 17:46:33 +00:00
Allen Winter
3674a94a99 more coding style fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870169
2008-10-11 23:28:20 +00:00
Marco Martin
0dc100928d style the tabbar scroll buttons with plasma colors
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868202
2008-10-05 17:53:37 +00:00
Marco Martin
e037260031 this patch removes the centering and makes the tabbar to take up all the
width when it's not like a tabwidget and there is some
sizepolicy/preferred sizes setting fixes that makes it behave better in
a panel (especially vertical ones)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=854953
2008-08-30 18:14:45 +00:00
Alex Merry
1aec75e5e6 SVN_SILENT:
whitespace fixes


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851432
2008-08-23 16:27:52 +00:00
Alex Merry
15b36b0bfe SVN_SILENT:
Source files shouldn't be executable


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851428
2008-08-23 16:23:09 +00:00
Marco Martin
37be252250 add button text and button background colors
accessible by the ButtonTextColor and ButtonBackgroundColor color roles

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842203
2008-08-04 21:23:40 +00:00
Laurent Montel
cc7db99997 Mem leak--
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841816
2008-08-04 06:40:35 +00:00
Aaron J. Seigo
b123a8e8b1 integrate TabBar into the build
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841797
2008-08-04 05:30:32 +00:00
Aaron J. Seigo
8e43410243 private impl of a tabwidget that works with QGraphicsWidget
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841793
2008-08-04 05:23:49 +00:00