Qt 4.8
Public Functions | Public Variables | List of all members
QPrinterDescription Struct Reference

#include <qprinterinfo_unix_p.h>

Public Functions

 QPrinterDescription (const QString &n, const QString &h, const QString &c, const QStringList &a)
 
bool samePrinter (const QString &printer) const
 

Public Variables

QStringList aliases
 
QString comment
 
QString host
 
QString name
 

Detailed Description

Definition at line 77 of file qprinterinfo_unix_p.h.

Constructors and Destructors

◆ QPrinterDescription()

QPrinterDescription::QPrinterDescription ( const QString n,
const QString h,
const QString c,
const QStringList a 
)
inline

Definition at line 78 of file qprinterinfo_unix_p.h.

Functions

◆ samePrinter()

bool QPrinterDescription::samePrinter ( const QString printer) const
inline

Definition at line 84 of file qprinterinfo_unix_p.h.

Referenced by qt_perhapsAddPrinter().

84  {
85  return name == printer || aliases.contains(printer);
86  }
QBool contains(const QString &str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the list contains the string str; otherwise returns false.
Definition: qstringlist.h:172

Properties

◆ aliases

QStringList QPrinterDescription::aliases

Definition at line 83 of file qprinterinfo_unix_p.h.

◆ comment

QString QPrinterDescription::comment

◆ host

QString QPrinterDescription::host

Definition at line 81 of file qprinterinfo_unix_p.h.

Referenced by QUnixPrintWidgetPrivate::_q_printerChanged().

◆ name

QString QPrinterDescription::name

The documentation for this struct was generated from the following file: