[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [Konversation] d5b7e77: Fix for broken TabBars in QT3.3+
From: Dario Abatianni <eisfuchs () tigress ! com>
Date: 2010-07-01 13:27:18
Message-ID: 20100701132718.840D4BB558D () projects ! kde ! org
[Download RAW message or body]
commit d5b7e771a89c5aa8542f89c9e02b1019d351b90b
Author: Dario Abatianni <eisfuchs@tigress.com>
Date: Sat Jan 24 14:50:36 2004 +0000
Fix for broken TabBars in QT3.3+
svn path=/trunk/kdeextragear-2/konversation/; revision=282244
diff --git a/konversation/ledtabbar.cpp b/konversation/ledtabbar.cpp
index b9bb8e6..05fed26 100644
--- a/konversation/ledtabbar.cpp
+++ b/konversation/ledtabbar.cpp
@@ -294,8 +294,17 @@ void LedTabBar::layoutTabs()
QRect r=ltab->rect();
r.setWidth(r.width()+LABEL_OFFSET);
+#if QT_VERSION >= 0x030300
+ if(index)
+ r.moveLeft(offset);
+ else
+ r.moveLeft(0);
+
+ offset+=r.width();
+#else
r.moveBy(offset,0);
offset+=LABEL_OFFSET;
+#endif
ltab->setRect(r);
} // endfor
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic