[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/koffice/1.4/koffice/kexi/plugins/forms
From:       Raphael Langerhorst <raphael-langerhorst () gmx ! at>
Date:       2005-07-09 13:32:11
Message-ID: 1120915931.924129.3387.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 433029 by raphael:

KOffice 1.4 Backport

Backport fix for kexilabel by jstaniek


 M  +18 -0     kexilabel.cpp  
 M  +0 -1      kexilabel.h  


--- branches/koffice/1.4/koffice/kexi/plugins/forms/kexilabel.cpp #433028:433029
@@ -33,6 +33,24 @@
 #define SHADOW_DIAGONAL_FACTOR 1.0
 #define SHADOW_THICKNESS 1
 
+class KexiLabelPrivate : public QLabel {
+		friend class KexiLabel;
+	public:
+		KexiLabelPrivate( KexiLabel* );
+		virtual ~KexiLabelPrivate();
+
+	protected:
+		void updateFrame();
+
+		QImage makeShadow( const QImage& textImage, const QColor &bgColor, const QRect& boundingRect );
+		QRect getBounding( const QImage &image, const QRect& startRect );
+//		double defaultDecay( QImage& source, int i, int j );
+		KPixmap getShadowPixmap();
+
+		QRect p_shadowRect;
+		KexiLabel *p_parentLabel;
+};
+
 KexiLabelPrivate::KexiLabelPrivate( KexiLabel* parent )
 	: QLabel( parent )
 {
--- branches/koffice/1.4/koffice/kexi/plugins/forms/kexilabel.h #433028:433029
@@ -173,7 +173,6 @@
 			QLabel::showEvent( e );
 		}
 
-	private:
 		void updatePixmapLater();
 
 		KPixmap p_shadowPixmap;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic