Changeset View
Changeset View
Standalone View
Standalone View
libkcups/PPDModel.cpp
Context not available. | |||||
82 | return Qt::ItemIsSelectable | Qt::ItemIsEnabled; | 82 | return Qt::ItemIsSelectable | Qt::ItemIsEnabled; | ||
---|---|---|---|---|---|
83 | } | 83 | } | ||
84 | 84 | | |||
85 | void PPDModel::clear() | | |||
86 | { | | |||
87 | // Remove all rows from the model | | |||
88 | removeRows(0, rowCount()); | | |||
89 | } | | |||
90 | | ||||
91 | QStandardItem *PPDModel::createPPDItem(const QVariantHash &ppd, bool recommended) | 85 | QStandardItem *PPDModel::createPPDItem(const QVariantHash &ppd, bool recommended) | ||
92 | { | 86 | { | ||
93 | auto ret = new QStandardItem; | 87 | auto ret = new QStandardItem; | ||
Context not available. |