[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: KMultiTabBar Patch
From: Sascha Cunz <mail () SaCu ! DE>
Date: 2004-04-13 1:49:41
Message-ID: 200404132032.28361.mail () SaCu ! DE
[Download RAW message or body]
Hi, i've fixed a bug in KMultiTabBar; and tried to send a patch for review to
it's author. But his inbox seems to be full.
Sascha
=========
Hi Joseph,
the attached patch fixes a little problem with KMultiTabBar:
- After changeing the system's font via the control center, the tabs
theirselves are resized, but not repositioned.
This behaviour can be seen at least in konqueror and kdevelop.
Can i commit it?
Cheers
Sascha
["kmultitabbar.patch" (text/plain)]
? kmultitabbar.patch
Index: kmultitabbar.cpp
===================================================================
RCS file: /home/kde/kdelibs/kutils/kmultitabbar.cpp,v
retrieving revision 1.52
diff -u -3 -r1.52 kmultitabbar.cpp
--- kmultitabbar.cpp 24 Feb 2004 18:25:22 -0000 1.52
+++ kmultitabbar.cpp 13 Apr 2004 01:23:37 -0000
@@ -834,6 +834,12 @@
for (uint i=0;i<m_buttons.count();i++)
m_buttons.at(i)->setPosition(pos);
}
+void KMultiTabBar::fontChange(const QFont& /* oldFont */)
+{
+ for (uint i=0;i<tabs()->count();i++)
+ tabs()->at(i)->resize();
+ repaint();
+}
QPtrList<KMultiTabBarTab>* KMultiTabBar::tabs() {return m_internal->tabs();}
QPtrList<KMultiTabBarButton>* KMultiTabBar::buttons() {return &m_buttons;}
Index: kmultitabbar.h
===================================================================
RCS file: /home/kde/kdelibs/kutils/kmultitabbar.h,v
retrieving revision 1.29
diff -u -3 -r1.29 kmultitabbar.h
--- kmultitabbar.h 24 Feb 2004 18:25:22 -0000 1.29
+++ kmultitabbar.h 13 Apr 2004 01:23:38 -0000
@@ -133,6 +133,8 @@
* might vanish, not sure yet
*/
void showActiveTabTexts(bool show=true);
+protected:
+ virtual void fontChange( const QFont& );
private:
class KMultiTabBarInternal *m_internal;
@@ -214,6 +216,7 @@
* this is only used in classic mode if at all
*/
void showActiveTabText(bool show);
+ void resize(){ setSize( neededSize() ); }
private:
bool m_showActiveTabText;
int m_expandedSize;
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic