kmail
kmsearchmessagemodel.cpp
Go to the documentation of this file.
74 const QString textDirection = textIsLeftToRight ? QLatin1String( "left" ) : QLatin1String( "right" );
87 ).arg( txtColorName ).arg( bckColorName ).arg( Qt::escape( msg->subject()->asUnicodeString() ) ).arg( textDirection );
110 tip += htmlCodeForStandardRow.arg( i18n( "From" ) ).arg( MessageCore::StringUtil::stripEmailAddr( msg->from()->asUnicodeString() ) );
111 tip += htmlCodeForStandardRow.arg( i18nc( "Receiver of the email", "To" ) ).arg( MessageCore::StringUtil::stripEmailAddr( msg->to()->asUnicodeString() ) );
112 tip += htmlCodeForStandardRow.arg( i18n( "Date" ) ).arg( KGlobal::locale()->formatDateTime( msg->date()->dateTime().toLocalZone(), KLocale::FancyLongDate ) );
114 tip += htmlCodeForStandardRow.arg( i18n( "Preview" ) ).arg( content.replace( QLatin1Char( '\n' ), QLatin1String( "<br>" ) ) );
117 tip += htmlCodeForStandardRow.arg( MessageCore::StringUtil::stripEmailAddr( msg->from()->asUnicodeString() ) ).arg( i18n( "From" ) );
118 tip += htmlCodeForStandardRow.arg( MessageCore::StringUtil::stripEmailAddr( msg->to()->asUnicodeString() ) ).arg( i18nc( "Receiver of the email", "To" ) );
119 tip += htmlCodeForStandardRow.arg( KGlobal::locale()->formatDateTime( msg->date()->dateTime().toLocalZone(), KLocale::FancyLongDate ) ).arg( i18n( "Date" ) );
121 tip += htmlCodeForStandardRow.arg( content.replace( QLatin1Char( '\n' ), QLatin1String( "<br>" ) ) ).arg( i18n( "Preview" ) );
154 return i18nc( "@label", "This model can only handle email folders. The current collection holds mimetypes: %1",
168 return MailCommon::Util::fullCollectionPath( Akonadi::Collection( item.storageCollectionId() ) );
178 return KGlobal::locale()->formatDateTime( msg->date()->dateTime().toLocalZone(), KLocale::FancyLongDate );
195 return MailCommon::Util::fullCollectionPath( Akonadi::Collection( item.storageCollectionId() ) );
220 QVariant KMSearchMessageModel::headerData( int section, Qt::Orientation orientation, int role ) const
Qt::LayoutDirection layoutDirection()
QString name() const
~KMSearchMessageModel()
Definition: kmsearchmessagemodel.cpp:60
KMSearchMessageModel(QObject *parent=0)
Definition: kmsearchmessagemodel.cpp:53
const QColor & color(ColorGroup group, ColorRole role) const
bool isValid() const
int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: kmsearchmessagemodel.cpp:132
bool isEmpty() const
int row() const
QPalette palette()
QString & replace(int position, int n, QChar after)
QString escape(const QString &plain)
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: kmsearchmessagemodel.cpp:145
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: kmsearchmessagemodel.cpp:220
int column() const
QString fromLatin1(const char *str, int size)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.