Prechádzať zdrojové kódy

joli connect dans Dialog

François Drouhard 3 rokov pred
rodič
commit
ccb8cadddf
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      Dialog.cpp

+ 2 - 2
Dialog.cpp

@@ -39,8 +39,8 @@ Dialog::Dialog(Options *option, QWidget *parent) :
     layoutDialog->addWidget(boutonJouer);
     setLayout(layoutDialog);
 
-    QObject::connect(boutonJouer , SIGNAL(accepted()) , this, SLOT(accept()));
-    QObject::connect(boutonJouer , SIGNAL(rejected()) , this, SLOT(close()));
+    QObject::connect(boutonJouer , &QDialogButtonBox::accepted , this, &Dialog::accept);
+    QObject::connect(boutonJouer , &QDialogButtonBox::rejected , this, &Dialog::close);
 }
 
 Dialog::~Dialog() {