Abstract base class for details views. Handles generic stuff like HTML formatting, Qt slots and display only if this view is visible at all ( it may be hidden if it's part of a QTabWidget ).
More...
#include <YQPkgGenericDetailsView.h>
|
static QString | htmlStart () |
|
static QString | htmlEnd () |
|
static QString | htmlHeading (ZyppSel selectable, bool showVersion=false) |
|
static QString | htmlEscape (const QString &plainText) |
|
static QString | table (const QString &contents) |
|
static QString | row (const QString &contents) |
|
static QString | cell (QString contents) |
|
static QString | cell (int contents) |
|
static QString | cell (const string &contents) |
|
static QString | cell (const zypp::Date &date) |
|
static QString | hcell (QString contents) |
|
|
void | reloadTab (int newCurrent) |
|
virtual void | reload () |
|
|
QTabWidget * | _parentTab |
|
ZyppSel | _selectable |
|
Abstract base class for details views. Handles generic stuff like HTML formatting, Qt slots and display only if this view is visible at all ( it may be hidden if it's part of a QTabWidget ).
◆ YQPkgGenericDetailsView()
YQPkgGenericDetailsView::YQPkgGenericDetailsView |
( |
QWidget * |
parent | ) |
|
|
protected |
◆ ~YQPkgGenericDetailsView()
YQPkgGenericDetailsView::~YQPkgGenericDetailsView |
( |
| ) |
|
|
protectedvirtual |
◆ cell()
QString YQPkgGenericDetailsView::cell |
( |
QString |
contents | ) |
|
|
static |
Returns a string containing a HTML table cell with 'contents'.
◆ hcell()
QString YQPkgGenericDetailsView::hcell |
( |
QString |
contents | ) |
|
|
static |
Returns a string containing a HTML table cell with 'contents' for table headers.
◆ htmlEscape()
QString YQPkgGenericDetailsView::htmlEscape |
( |
const QString & |
plainText | ) |
|
|
static |
Escapes characters special to HTML in a ( plain text ) string, such as: '<' -> '<' '>' -> '>' '&' -> '&'
Returns the escaped string.
◆ htmlHeading()
QString YQPkgGenericDetailsView::htmlHeading |
( |
ZyppSel |
selectable, |
|
|
bool |
showVersion = false |
|
) |
| |
|
static |
Returns a uniform heading in HTML format for the specified selectable: name and summary or name, version and summary, if 'showVersion' is 'true'
◆ htmlStart()
QString YQPkgGenericDetailsView::htmlStart |
( |
| ) |
|
|
static |
starts the html tag and set the style
◆ minimumSizeHint()
QSize YQPkgGenericDetailsView::minimumSizeHint |
( |
| ) |
const |
|
virtual |
Returns the minimum size required for this widget. Inherited from QWidget.
◆ reloadTab
void YQPkgGenericDetailsView::reloadTab |
( |
int |
newCurrent | ) |
|
|
protectedslot |
Show data for the last package.
◆ row()
QString YQPkgGenericDetailsView::row |
( |
const QString & |
contents | ) |
|
|
static |
Returns a string containing a HTML table row with 'contents'.
◆ showDetails
virtual void YQPkgGenericDetailsView::showDetails |
( |
ZyppSel |
selectable | ) |
|
|
pure virtualslot |
◆ showDetailsIfVisible
void YQPkgGenericDetailsView::showDetailsIfVisible |
( |
ZyppSel |
selectable | ) |
|
|
slot |
Show details for the specified package. Delayed ( optimized ) display if this is embedded into a QTabWidget parent: In this case, wait until this page becomes visible.
◆ table()
QString YQPkgGenericDetailsView::table |
( |
const QString & |
contents | ) |
|
|
static |
Returns a string containing a HTML table with 'contents'.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt-pkg/src/YQPkgGenericDetailsView.h
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt-pkg/src/YQPkgGenericDetailsView.cc