[Kde-pim] KDE/kdepim/libkdepim
Casey Link
unnamedrambler at gmail.com
Wed Jul 14 18:48:18 BST 2010
SVN commit 1149967 by link:
Emit a signal when an item is completed in the addressee line edit.
This is necessary because the signal editingFinished is emitted when the line edit loses focus, which occurs when focus is given to the completion popup, when in reality the editing hasn't been finished until the completion box is dismissed.
CCMAIL: kde-pim at kde.org
M +7 -0 addresseelineedit.cpp
M +3 -0 addresseelineedit.h
--- trunk/KDE/kdepim/libkdepim/addresseelineedit.cpp #1149966:1149967
@@ -644,6 +644,7 @@
q->setText( m_previousAddresses + completion.trimmed() );
q->cursorAtEnd();
updateSearchString();
+ q->emitTextCompleted();
}
void AddresseeLineEdit::Private::slotReturnPressed( const QString & )
@@ -1380,4 +1381,10 @@
return KLineEdit::eventFilter( object, event );
}
+void AddresseeLineEdit::emitTextCompleted()
+{
+ emit textCompleted();
+}
+
+
#include "addresseelineedit.moc"
--- trunk/KDE/kdepim/libkdepim/addresseelineedit.h #1149966:1149967
@@ -83,6 +83,8 @@
* Reimplemented for setting the @p font for line edit and completion box.
*/
void setFont( const QFont &font );
+ Q_SIGNALS:
+ void textCompleted();
public Q_SLOTS:
/**
@@ -167,6 +169,7 @@
private:
virtual bool eventFilter( QObject *, QEvent * );
+ void emitTextCompleted();
//@cond PRIVATE
class Private;
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list