All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
QGpGuiTools::PrintDialogWrapper Class Reference

Brief description of class still missing. More...

#include <PrintDialogWrapper.h>

List of all members.

Public Member Functions

 PrintDialogWrapper (QPrintDialog *parent)

Detailed Description

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


Constructor & Destructor Documentation

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);
  }
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines