All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Brief description of class still missing. More...
#include <PrintDialogWrapper.h>
Public Member Functions | |
PrintDialogWrapper (QPrintDialog *parent) |
Brief description of class still missing.
Current interface for QPrintDialog is rather poor. This class tries to imporve it in a relatively ugly way. But there is not other choice, all is private in QPrintDialog
QGpGuiTools::PrintDialogWrapper::PrintDialogWrapper | ( | QPrintDialog * | parent | ) |
Description of constructor still missing
References TRACE.
: QObject(parent) { TRACE; _btnBrowse=parent->findChild<QPushButton *>("btnBrowse"); _leFile=parent->findChild<QLineEdit *>("leFile"); if(_btnBrowse && _leFile) { _btnBrowse->disconnect(SIGNAL(clicked())); connect(_btnBrowse, SIGNAL(clicked()), this, SLOT(browse())); } _chbPrintToFile=parent->findChild<QCheckBox *>("chbPrintToFile"); // Force toggle if(_chbPrintToFile) { bool b=_chbPrintToFile->isChecked(); _chbPrintToFile->setChecked(!b); _chbPrintToFile->setChecked(b); } }