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

List:       kde-commits
Subject:    =?utf-8?q?=5Bcirkuit/zoomable-preview=5D_src/widgets=3A_Removed_?=
From:       Matteo Agostinelli <agostinelli () gmail ! com>
Date:       2011-01-31 21:32:32
Message-ID: 20110131213232.04AECA60B0 () git ! kde ! org
[Download RAW message or body]

Git commit 6d25f7f3b6a38a7829e5d8fd1364678388cde806 by Matteo Agostinelli.
Pushed by agostinelli into branch 'zoomable-preview'.

Removed unneeded code from the dock widget

M  +0    -20   src/widgets/livepreviewwidget.cpp     
M  +0    -9    src/widgets/livepreviewwidget.h     

http://commits.kde.org/74f3f67f/6d25f7f3b6a38a7829e5d8fd1364678388cde806

diff --git a/src/widgets/livepreviewwidget.cpp b/src/widgets/livepreviewwidget.cpp
index ffe9882..2dc56a6 100644
--- a/src/widgets/livepreviewwidget.cpp
+++ b/src/widgets/livepreviewwidget.cpp
@@ -30,12 +30,6 @@ LivePreviewWidget::LivePreviewWidget(const QString & title, QWidget * parent, Qt
 {
     m_imageView = new ImageView(this);
   
-    m_timer = new QTimer;
-    m_timer->setSingleShot(true);
-    m_timer->setInterval(100);
-  
-    connect(m_timer, SIGNAL(timeout()), this, SLOT(setSmoothTransformation()));
-  
     setWidget(m_imageView);
     setMinimumHeight(180);
     setMinimumWidth(150);
@@ -43,7 +37,6 @@ LivePreviewWidget::LivePreviewWidget(const QString & title, QWidget * parent, Qt
 
 void LivePreviewWidget::setImage(const QImage& image)
 {
-    setSmoothTransformation();
     m_imageView->setImage(image);
 }
 
@@ -52,19 +45,6 @@ void LivePreviewWidget::clear()
     m_imageView->clear();
 }
 
-void LivePreviewWidget::resizeEvent (QResizeEvent* event)
-{
-    Q_UNUSED(event)
-    //m_imageView->setFastTransformation(true);
-  
-    m_timer->start();
-}
-
-void LivePreviewWidget::setSmoothTransformation()
-{
-    //m_imageView->setFastTransformation(false);
-}
-
 ImageView* LivePreviewWidget::view() const
 {
     return m_imageView;
diff --git a/src/widgets/livepreviewwidget.h b/src/widgets/livepreviewwidget.h
index a7800fe..397fb63 100644
--- a/src/widgets/livepreviewwidget.h
+++ b/src/widgets/livepreviewwidget.h
@@ -37,19 +37,10 @@ public:
 
 private:
     ImageView* m_imageView;
-    QTimer* m_timer;
 
 public slots:
     void setImage(const QImage&);
     void clear();
-    
-    void setSmoothTransformation();
-
-protected:
-//     void dragEnterEvent ( QDragEnterEvent * event );
-//     void dragLeaveEvent ( QDragLeaveEvent * event );
-//     void moveEvent ( QMoveEvent * event );
-    void resizeEvent ( QResizeEvent * event );
 };
 
 #endif

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

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