SHARE
TWEET

Untitled

a guest Aug 12th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "addmoviedata.h"
  2.  
  3. AddMovieData::AddMovieData(QWidget *parent) : QDialog(parent)
  4. {
  5.     setupUi(this);
  6.     rbNo->setChecked(true);
  7.     editLocation->setEnabled(false);
  8.     labelPhoto->setPixmap(QPixmap());
  9.     btnAdd->setEnabled(false);
  10.     editActorName->setEnabled(false);
  11.     editActoressName->setEnabled(false);
  12.     editLanguageName->setEnabled(false);
  13.     editDirectorName->setEnabled(false);
  14.     editReleasedate->setEnabled(false);
  15.  
  16.  
  17.     connect(rbYes,SIGNAL(toggled(bool)),this,SLOT(onRbYes()));
  18.     connect(rbNo,SIGNAL(toggled(bool)),this,SLOT(onRbNo()));
  19.  
  20. }
  21.  
  22. AddMovieData::~AddMovieData()
  23. {
  24. }
  25.  
  26. void AddMovieData::onRbNo()
  27. {
  28.     editLocation->setEnabled(false);
  29. }
  30.  
  31. void AddMovieData::onRbYes()
  32. {
  33.     editLocation->setEnabled(true);
  34. }
RAW Paste Data
Top