Browse Source

UI: Replace SIGNAL and SLOT macros in auth

gxalpha 2 years ago
parent
commit
fc07e59754
1 changed files with 4 additions and 4 deletions
  1. 4 4
      UI/auth-youtube.cpp

+ 4 - 4
UI/auth-youtube.cpp

@@ -355,10 +355,10 @@ void YoutubeChatDock::SetWidget(QCefWidget *widget_)
 	widget->setLayout(layout);
 	setWidget(widget);
 
-	QWidget::connect(lineEdit, SIGNAL(returnPressed()), this,
-			 SLOT(SendChatMessage()));
-	QWidget::connect(sendButton, SIGNAL(pressed()), this,
-			 SLOT(SendChatMessage()));
+	QWidget::connect(lineEdit, &LineEditAutoResize::returnPressed, this,
+			 &YoutubeChatDock::SendChatMessage);
+	QWidget::connect(sendButton, &QPushButton::pressed, this,
+			 &YoutubeChatDock::SendChatMessage);
 
 	cefWidget.reset(widget_);
 }