mountOptions::mountOptions( QString * options,QWidget * parent ) : QDialog( parent ),m_ui( new Ui::mountOptions ),m_options( options ) { m_ui->setupUi( this ) ; this->setFixedSize( this->size() ) ; this->setWindowFlags( Qt::Window | Qt::Dialog ) ; this->setFont( parent->font() ) ; connect( m_ui->pbOk,SIGNAL( clicked() ),this,SLOT( pbOK() ) ) ; connect( m_ui->pbCancel,SIGNAL( clicked() ),this,SLOT( pbCancel() ) ) ; }
DialogMsg::DialogMsg( QWidget * parent ) : QDialog( parent ), m_ui( new Ui::DialogMsg ) { m_ui->setupUi( this ) ; if( parent ){ this->setFont( parent->font() ) ; } connect( m_ui->pbNo,SIGNAL( clicked() ),this,SLOT( pbNo() ) ) ; connect( m_ui->pbYes,SIGNAL( clicked() ),this,SLOT( pbYes() ) ) ; connect( m_ui->pbOk,SIGNAL( clicked() ),this,SLOT( pbOK() ) ) ; this->installEventFilter( this ) ; }
cryptoinfo::cryptoinfo( QWidget * parent,QString path,QString msg ) : QWidget( parent ),m_ui( new Ui::cryptoinfo ),m_path( path ),m_msg( msg ) { m_ui->setupUi( this ) ; if( !m_msg.isEmpty() ){ m_ui->label->setText( m_msg ) ; } this->setFixedSize( this->size() ) ; this->setWindowFlags( Qt::Window | Qt::Dialog ) ; this->setFont( parent->font() ) ; m_ui->checkBox->setChecked( false ) ; connect( m_ui->pbOK,SIGNAL( clicked() ),this,SLOT( pbOK() ) ) ; connect( m_ui->checkBox,SIGNAL( clicked( bool ) ),this,SLOT( checkBoxChecked( bool ) ) ) ; this->installEventFilter( this ) ; this->Show() ; }