@ -453,12 +453,14 @@ TextInputWidget::TextInputWidget(QWidget *parent)
topLayout_ - > setSpacing ( 0 ) ;
topLayout_ - > setContentsMargins ( 13 , 1 , 13 , 0 ) ;
# ifdef GSTREAMER_AVAILABLE
callBtn_ = new FlatButton ( this ) ;
changeCallButtonState ( WebRTCSession : : State : : DISCONNECTED ) ;
connect ( & WebRTCSession : : instance ( ) ,
& WebRTCSession : : stateChanged ,
this ,
& TextInputWidget : : changeCallButtonState ) ;
# endif
QIcon send_file_icon ;
send_file_icon . addFile ( " :/icons/icons/ui/paper-clip-outline.png " ) ;
@ -528,7 +530,9 @@ TextInputWidget::TextInputWidget(QWidget *parent)
emojiBtn_ - > setIcon ( emoji_icon ) ;
emojiBtn_ - > setIconSize ( QSize ( ButtonHeight , ButtonHeight ) ) ;
# ifdef GSTREAMER_AVAILABLE
topLayout_ - > addWidget ( callBtn_ ) ;
# endif
topLayout_ - > addWidget ( sendFileBtn_ ) ;
topLayout_ - > addWidget ( input_ ) ;
topLayout_ - > addWidget ( emojiBtn_ ) ;
@ -536,7 +540,9 @@ TextInputWidget::TextInputWidget(QWidget *parent)
setLayout ( topLayout_ ) ;
# ifdef GSTREAMER_AVAILABLE
connect ( callBtn_ , & FlatButton : : clicked , this , & TextInputWidget : : callButtonPress ) ;
# endif
connect ( sendMessageBtn_ , & FlatButton : : clicked , input_ , & FilteredTextEdit : : submit ) ;
connect ( sendFileBtn_ , SIGNAL ( clicked ( ) ) , this , SLOT ( openFileSelection ( ) ) ) ;
connect ( input_ , & FilteredTextEdit : : message , this , & TextInputWidget : : sendTextMessage ) ;