kmail
kmsearchmessagemodel.cpp
Go to the documentation of this file.
77 const QString textDirection = textIsLeftToRight ? QLatin1String( "left" ) : QLatin1String( "right" );
90 ).arg( txtColorName ).arg( bckColorName ).arg( Qt::escape( msg->subject()->asUnicodeString() ) ).arg( textDirection );
113 tip += htmlCodeForStandardRow.arg( i18n( "From" ) ).arg( MessageCore::StringUtil::stripEmailAddr( msg->from()->asUnicodeString() ) );
114 tip += htmlCodeForStandardRow.arg( i18nc( "Receiver of the email", "To" ) ).arg( MessageCore::StringUtil::stripEmailAddr( msg->to()->asUnicodeString() ) );
115 tip += htmlCodeForStandardRow.arg( i18n( "Date" ) ).arg( KGlobal::locale()->formatDateTime( msg->date()->dateTime().toLocalZone(), KLocale::FancyLongDate ) );
117 tip += htmlCodeForStandardRow.arg( i18n( "Preview" ) ).arg( content.replace( QLatin1Char( '\n' ), QLatin1String( "<br>" ) ) );
120 tip += htmlCodeForStandardRow.arg( MessageCore::StringUtil::stripEmailAddr( msg->from()->asUnicodeString() ) ).arg( i18n( "From" ) );
121 tip += htmlCodeForStandardRow.arg( MessageCore::StringUtil::stripEmailAddr( msg->to()->asUnicodeString() ) ).arg( i18nc( "Receiver of the email", "To" ) );
122 tip += htmlCodeForStandardRow.arg( KGlobal::locale()->formatDateTime( msg->date()->dateTime().toLocalZone(), KLocale::FancyLongDate ) ).arg( i18n( "Date" ) );
124 tip += htmlCodeForStandardRow.arg( content.replace( QLatin1Char( '\n' ), QLatin1String( "<br>" ) ) ).arg( i18n( "Preview" ) );
157 return i18nc( "@label", "This model can only handle email folders. The current collection holds mimetypes: %1",
171 return MailCommon::Util::fullCollectionPath( Akonadi::Collection( item.storageCollectionId() ) );
181 return KGlobal::locale()->formatDateTime( msg->date()->dateTime().toLocalZone(), KLocale::FancyLongDate );
198 return MailCommon::Util::fullCollectionPath( Akonadi::Collection( item.storageCollectionId() ) );
225 QVariant KMSearchMessageModel::headerData( int section, Qt::Orientation orientation, int role ) const
~KMSearchMessageModel()
Definition: kmsearchmessagemodel.cpp:63
KMSearchMessageModel(QObject *parent=0)
Definition: kmsearchmessagemodel.cpp:56
int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: kmsearchmessagemodel.cpp:135
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: kmsearchmessagemodel.cpp:148
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: kmsearchmessagemodel.cpp:225
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.