Commit Graph

52 Commits

Author SHA1 Message Date
Marco Martin
3d8425e6ef don't bork horizontal tabbar size
svn path=/trunk/KDE/kdelibs/; revision=1117183
2010-04-21 13:16:46 +00:00
Marco Martin
36e45c7929 behave slightly better in layouts
svn path=/trunk/KDE/kdelibs/; revision=1117180
2010-04-21 13:05:57 +00:00
Marco Martin
ee661f4347 while still adjusting hard size hints, keep the tabbar centered
svn path=/trunk/KDE/kdelibs/; revision=1115434
2010-04-16 12:57:59 +00:00
Marco Martin
6ff8621d3a update fixed size hints as soon as the tabwidgetmode changes
svn path=/trunk/KDE/kdelibs/; revision=1115431
2010-04-16 12:51:07 +00:00
Marco Martin
92730e9e15 (almost) fix the tabbar animation.
there are still repaint issues on the native tabbar tough

svn path=/trunk/KDE/kdelibs/; revision=1085531
2010-02-05 12:24:46 +00:00
Aaron J. Seigo
751e79c666 SVN_SILENT: remove some fairly silly debug output
svn path=/trunk/KDE/kdelibs/; revision=1083611
2010-02-01 16:23:08 +00:00
Igor Trindade Oliveira
157711c581 port tabbar to new animation api.
svn path=/trunk/KDE/kdelibs/; revision=1078747
2010-01-22 19:31:42 +00:00
Marco Martin
eb13d0f4cd unbreak when the tabbar is hidden
svn path=/trunk/KDE/kdelibs/; revision=1060780
2009-12-09 21:24:58 +00:00
Marco Martin
a5ccb23ebd it appears is necessary to resize the new page 2 times for it to take effect, invalidating the layout doesn't seem to be enough
svn path=/trunk/KDE/kdelibs/; revision=1060726
2009-12-09 19:19:00 +00:00
Marco Martin
f449a1586a remove a bit of margins
svn path=/trunk/KDE/kdelibs/; revision=1060698
2009-12-09 17:44:56 +00:00
Petri Damstén
71fa982797 * Use correct font for size hint in Frame
* Use correct font in IconWidget setLayoutOptions
* layout fonts are set in IconWidget setLayoutOptions and layoutTextItems. No need to set them in paint.
* Fix using QGraphicsWidget font when customFont == true in several widgets.

svn path=/trunk/KDE/kdelibs/; revision=1047017
2009-11-10 09:46:14 +00:00
Marco Martin
5bd2af94f8 invalidate the main layout when te new page is inserted, only way to get
the preferred size right, apparently

svn path=/trunk/KDE/kdelibs/; revision=1042410
2009-10-29 19:05:04 +00:00
Marco Martin
c71cd00557 delay cuurentchanged after the animation, use a preferredsize policy for the
pages

svn path=/trunk/KDE/kdelibs/; revision=1042395
2009-10-29 18:31:27 +00:00
Marco Martin
4418fb8971 revert last bogus commit
svn path=/trunk/KDE/kdelibs/; revision=1042383
2009-10-29 17:58:52 +00:00
Marco Martin
7e8d330582 some qgraphicslayout hack to return a meaningful size hint, pretty
unfortunate

svn path=/trunk/KDE/kdelibs/; revision=1042375
2009-10-29 17:50:44 +00:00
Aaron J. Seigo
211a206277 the count is always 1 larger than the index, so > is not enough
svn path=/trunk/KDE/kdelibs/; revision=1036289
2009-10-16 22:41:39 +00:00
Marco Martin
0e59e70583 move correctly the pages at the first animation
svn path=/trunk/KDE/kdelibs/; revision=1031682
2009-10-05 18:40:58 +00:00
Marco Martin
bb11bbf81b another null pointer check
svn path=/trunk/KDE/kdelibs/; revision=1027780
2009-09-24 18:52:58 +00:00
Marco Martin
03c1fca71d properly fix previous commit don't crash setting an active page < 0
don't crash setting a new one if the old one was 0

svn path=/trunk/KDE/kdelibs/; revision=1027767
2009-09-24 18:26:48 +00:00
Marco Martin
1ae2f714bb don't explode on setCurrentIndex(index<0)
svn path=/trunk/KDE/kdelibs/; revision=1027763
2009-09-24 17:57:53 +00:00
Marco Martin
eedf3c47ff update the current index when inserting tabs
svn path=/trunk/KDE/kdelibs/; revision=1026753
2009-09-22 14:04:20 +00:00
Marco Martin
b16ed00bc4 off by one, crash--
svn path=/trunk/KDE/kdelibs/; revision=1026750
2009-09-22 13:53:29 +00:00
Marco Martin
67515c758a always use plasma::theme font, unless somebody call setFont on the
widget                                                                                
round two: sync the native widgets fonts with the plasma::theme font,                 
unless setFont was called

svn path=/trunk/KDE/kdelibs/; revision=1023050
2009-09-13 19:18:29 +00:00
Marco Martin
462f323042 add tabAt(int) function
actually the correspondent qtabwidget is widget(), but on a
qgraphicsproxywidget it is taken, maybe needs a beter name?
CCMAIL: plasma-devel@kde.org

svn path=/trunk/KDE/kdelibs/; revision=1019013
2009-09-02 15:54:18 +00:00
Aaron J. Seigo
1e8fc7272f only reset the sizes when we have no tabs
BUG:205457

svn path=/trunk/KDE/kdelibs/; revision=1016724
2009-08-28 17:28:15 +00:00
Marco Martin
6257d4b7a8 takeTab(), removes a tab and returns the tab contents
svn path=/trunk/KDE/kdelibs/; revision=1004310
2009-07-29 20:30:07 +00:00
Aaron J. Seigo
ff763aab1a SVN_SILENT:--compilerWarnings;
svn path=/trunk/KDE/kdelibs/; revision=951382
2009-04-09 06:00:57 +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
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
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
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
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
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
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
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
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
df73771a1b ++compile
svn path=/trunk/KDE/kdelibs/; revision=879801
2008-11-04 02:55:37 +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
Aaron J. Seigo
8c7ed93278 if we're given a layout, don't create another layout for it to live in
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879360
2008-11-03 04:15:34 +00:00
Marco Martin
9c6184b1bf a bit more cleaner
more fitts law friendly when is in a top panel (still some resizing
issues)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=871308
2008-10-14 13:16:56 +00:00
Allen Winter
eae853582b coding style fixes.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870205
2008-10-12 01:31:54 +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
Marco Martin
df487ae43c should behave a bit better when the pages are empty
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849643
2008-08-19 21:09:06 +00:00
Marco Martin
3a008feb23 revert a bit of stuff that wasn't supposed to be committed in the first
place

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=848389
2008-08-17 15:34:46 +00:00
Marco Martin
76d6071e46 svg themed scrollbars:
scrollbar widget in libplasma
private qstyle that draws scrollbars with svg
folderview uses the scrollbar widget
textview scrollbars themed
 

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=846473
2008-08-13 14:47:27 +00:00