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

List:       kde-commits
Subject:    [kdelibs/frameworks] kdeui/widgets: Remove reimplementation of Qt3 virtual method, never called.
From:       David Faure <faure+bluesystems () kde ! org>
Date:       2012-11-25 11:39:39
Message-ID: 20121125113939.327ADA60C4 () git ! kde ! org
[Download RAW message or body]

Git commit 9d56a36d5241c8a8fac90a2f4a5f4c8042235cae by David Faure.
Committed on 25/11/2012 at 12:41.
Pushed by dfaure into branch 'frameworks'.

Remove reimplementation of Qt3 virtual method, never called.

The reason for this code has disappeared in Qt4.

M  +0    -7    kdeui/widgets/kcombobox.cpp
M  +0    -6    kdeui/widgets/kcombobox.h
M  +0    -7    kdeui/widgets/klineedit.cpp
M  +0    -6    kdeui/widgets/klineedit.h

http://commits.kde.org/kdelibs/9d56a36d5241c8a8fac90a2f4a5f4c8042235cae

diff --git a/kdeui/widgets/kcombobox.cpp b/kdeui/widgets/kcombobox.cpp
index a7f168d..f352c7f 100644
--- a/kdeui/widgets/kcombobox.cpp
+++ b/kdeui/widgets/kcombobox.cpp
@@ -274,13 +274,6 @@ KCompletionBox * KComboBox::completionBox( bool create )
     return 0;
 }
 
-// QWidget::create() turns off mouse-Tracking which would break auto-hiding
-void KComboBox::create( WId id, bool initializeWindow, bool destroyOldWindow )
-{
-    QComboBox::create( id, initializeWindow, destroyOldWindow );
-    KCursor::setAutoHideCursor( lineEdit(), true, true );
-}
-
 void KComboBox::wheelEvent( QWheelEvent *ev )
 {
     // Not necessary anymore
diff --git a/kdeui/widgets/kcombobox.h b/kdeui/widgets/kcombobox.h
index 3edef79..90e0be9 100644
--- a/kdeui/widgets/kcombobox.h
+++ b/kdeui/widgets/kcombobox.h
@@ -509,12 +509,6 @@ protected:
     */
     virtual void setCompletedText( const QString& /* */, bool /*marked*/ );
 
-    /**
-     * Reimplemented for internal reasons, the API is not affected.
-     */
-    virtual void create( WId = 0, bool initializeWindow = true,
-                         bool destroyOldWindow = true );
-
     virtual void wheelEvent( QWheelEvent *ev );
 
     virtual QSize minimumSizeHint() const;
diff --git a/kdeui/widgets/klineedit.cpp b/kdeui/widgets/klineedit.cpp
index b2e88df..87adeb2 100644
--- a/kdeui/widgets/klineedit.cpp
+++ b/kdeui/widgets/klineedit.cpp
@@ -1648,13 +1648,6 @@ void KLineEdit::setCompletionObject( KCompletion* comp, bool hsig )
     KCompletionBase::setCompletionObject( comp, hsig );
 }
 
-// QWidget::create() turns off mouse-Tracking which would break auto-hiding
-void KLineEdit::create( WId id, bool initializeWindow, bool destroyOldWindow )
-{
-    QLineEdit::create( id, initializeWindow, destroyOldWindow );
-    KCursor::setAutoHideCursor( this, true, true );
-}
-
 void KLineEdit::setUserSelection(bool userSelection)
 {
     //if !d->userSelection && userSelection we are accepting a completion,
diff --git a/kdeui/widgets/klineedit.h b/kdeui/widgets/klineedit.h
index 1c81278..1d4568c 100644
--- a/kdeui/widgets/klineedit.h
+++ b/kdeui/widgets/klineedit.h
@@ -624,12 +624,6 @@ protected:
     void setUserSelection( bool userSelection );
 
     /**
-     * Reimplemented for internal reasons, the API is not affected.
-     */
-    virtual void create( WId = 0, bool initializeWindow = true,
-                         bool destroyOldWindow = true );
-
-    /**
      * Whether in current state text should be auto-suggested
     */
     bool autoSuggest() const;
[prev in list] [next in list] [prev in thread] [next in thread] 

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