@ -82,8 +82,8 @@ QtSoftwareKeyboardDialog::QtSoftwareKeyboardDialog(
: QString : : fromStdU16String ( parameters . submit_text ) ,
: QString : : fromStdU16String ( parameters . submit_text ) ,
QDialogButtonBox : : AcceptRole ) ;
QDialogButtonBox : : AcceptRole ) ;
connect ( buttons , & QDialogButtonBox : : accepted , this , & QtSoftwareKeyboardDialog : : Submi t) ;
connect ( buttons , & QDialogButtonBox : : rejected , this , & QtSoftwareKeyboardDialog : : R eject) ;
connect ( buttons , & QDialogButtonBox : : accepted , this , & QtSoftwareKeyboardDialog : : accep t) ;
connect ( buttons , & QDialogButtonBox : : rejected , this , & QtSoftwareKeyboardDialog : : r eject) ;
layout - > addWidget ( header_label ) ;
layout - > addWidget ( header_label ) ;
layout - > addWidget ( sub_label ) ;
layout - > addWidget ( sub_label ) ;
layout - > addWidget ( guide_label ) ;
layout - > addWidget ( guide_label ) ;
@ -96,16 +96,16 @@ QtSoftwareKeyboardDialog::QtSoftwareKeyboardDialog(
QtSoftwareKeyboardDialog : : ~ QtSoftwareKeyboardDialog ( ) = default ;
QtSoftwareKeyboardDialog : : ~ QtSoftwareKeyboardDialog ( ) = default ;
void QtSoftwareKeyboardDialog : : Submi t( ) {
void QtSoftwareKeyboardDialog : : accep t( ) {
ok = true ;
ok = true ;
text = line_edit - > text ( ) . toStdU16String ( ) ;
text = line_edit - > text ( ) . toStdU16String ( ) ;
accept ( ) ;
QDialog : : accept ( ) ;
}
}
void QtSoftwareKeyboardDialog : : R eject( ) {
void QtSoftwareKeyboardDialog : : r eject( ) {
ok = false ;
ok = false ;
text . clear ( ) ;
text . clear ( ) ;
accep t( ) ;
QDialog : : rejec t( ) ;
}
}
std : : u16string QtSoftwareKeyboardDialog : : GetText ( ) const {
std : : u16string QtSoftwareKeyboardDialog : : GetText ( ) const {