kleopatra
resultitemwidget.cpp
Go to the documentation of this file.
79 explicit Private( const shared_ptr<const Task::Result> result, ResultItemWidget* qq ) : q( qq ), m_result( result ), m_detailsLabel( 0 ), m_showDetailsLabel( 0 ), m_closeButton( 0 ) { assert( m_result ); }
104 m_showDetailsLabel->setText( QString::fromLatin1( "<a href=\"kleoresultitem://toggledetails/\">%1</a><br/>%2" ).arg( detailsVisible ? i18n( "Hide Details" ) : i18n( "Show Details" ), auditLogLink ) );
107 ResultItemWidget::ResultItemWidget( const shared_ptr<const Task::Result> & result, QWidget * parent, Qt::WindowFlags flags ) : QWidget( parent, flags ), d( new Private( result, this ) )
110 setStyleSheet( QString::fromLatin1( "* { background-color: %1; margin: 0px; } QFrame#resultFrame{ border-color: %2; border-style: solid; border-radius: 3px; border-width: 2px } QLabel { padding: 5px; border-radius: 3px }" ).arg( color.lighter( 150 ).name(), color.name() ) );
136 connect( d->m_showDetailsLabel, SIGNAL(linkActivated(QString)), this, SLOT(slotLinkActivated(QString)) );
144 connect( d->m_detailsLabel, SIGNAL(linkActivated(QString)), this, SLOT(slotLinkActivated(QString)) );
186 kWarning() << "key link invalid, or nonce not matching! link=" << link << " nonce" << m_result->nonce();
void linkActivated(const QString &link)
bool detailsVisible() const
Definition: resultitemwidget.cpp:168
void closeButtonClicked()
Definition: task.h:130
void detailsToggled(bool)
~ResultItemWidget()
Definition: resultitemwidget.cpp:159
void showAuditLog()
Definition: resultitemwidget.cpp:203
void showDetails(bool show=true)
Definition: resultitemwidget.cpp:207
Definition: task.h:129
ResultItemWidget(const boost::shared_ptr< const Task::Result > &result, QWidget *parent=0, Qt::WindowFlags flags=0)
Definition: resultitemwidget.cpp:107
Definition: task.h:128
void showCloseButton(bool show)
Definition: resultitemwidget.cpp:163
bool hasErrorResult() const
Definition: resultitemwidget.cpp:173
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:42 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:56:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.