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

List:       kde-commits
Subject:    koffice/libs/flake
From:       Thomas Zander <zander () kde ! org>
Date:       2010-09-27 19:33:40
Message-ID: 20100927193340.41512AC895 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1180370 by zander:

Add 'clear' method to cheaply clear the insets

 M  +9 -1      KoInsets.h  


--- trunk/koffice/libs/flake/KoInsets.h #1180369:1180370
@@ -1,5 +1,5 @@
 /* This file is part of the KDE project
- * Copyright (C) 2006 Thomas Zander <zander@kde.org>
+ * Copyright (C) 2006, 2010 Thomas Zander <zander@kde.org>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -50,6 +50,14 @@
     KoInsets() : top(0.), bottom(0.), left(0.), right(0.) {
     }
 
+    /// clears the insets so all sides are set to zero
+    void clear() {
+        top = 0;
+        bottom = 0;
+        left = 0;
+        right = 0;
+    }
+
     qreal top;     ///< Top inset
     qreal bottom;  ///< Bottom inset
     qreal left;    ///< Left inset
[prev in list] [next in list] [prev in thread] [next in thread] 

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