]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphintooltip.cpp
prevent that the user can open more than one instance of the settings dialog
[dolphin.git] / src / dolphintooltip.cpp
index 84eb2ed702937647a92c0f3d638bd7469523141e..bc3be33aa7ef6bf7e002208c602551c50b2b4662 100644 (file)
@@ -16,7 +16,7 @@
  *   Free Software Foundation, Inc.,                                       *
  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
  ***************************************************************************/
+
 #include "dolphintooltip.h"
 
 #include <kicon.h>
@@ -25,9 +25,6 @@
 
 #include <QtGui/QPixmap>
 
-const int PREVIEW_WIDTH = 256;
-const int PREVIEW_HEIGHT = 256;
-
 DolphinBalloonTooltipDelegate::DolphinBalloonTooltipDelegate()
 {
 }
@@ -46,7 +43,7 @@ QSize DolphinBalloonTooltipDelegate::sizeHint(const KStyleOptionToolTip* option,
 }
 
 void DolphinBalloonTooltipDelegate::paint(QPainter* painter, const KStyleOptionToolTip* option, const KToolTipItem* item) const
-{    
+{
     KStyleOptionToolTip updatedStyleOption = *option;
     updatedStyleOption.decorationSize = QSize(PREVIEW_WIDTH, PREVIEW_HEIGHT);
     return KFormattedBalloonTipDelegate::paint(painter, &updatedStyleOption, item);