本文整理汇总了C++中LineEdit::grab_focus方法的典型用法代码示例。如果您正苦于以下问题:C++ LineEdit::grab_focus方法的具体用法?C++ LineEdit::grab_focus怎么用?C++ LineEdit::grab_focus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LineEdit
的用法示例。
在下文中一共展示了LineEdit::grab_focus方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: show_dialog
void show_dialog() {
project_path->clear();
project_name->clear();
if (mode==MODE_IMPORT) {
set_title(TTR("Import Existing Project"));
get_ok()->set_text(TTR("Import"));
pp->set_text(TTR("Project Path (Must Exist):"));
pn->set_text(TTR("Project Name:"));
pn->hide();
project_name->hide();
popup_centered(Size2(500,125)*EDSCALE);
} else if (mode==MODE_NEW){
set_title(TTR("Create New Project"));
get_ok()->set_text(TTR("Create"));
pp->set_text(TTR("Project Path:"));
pn->set_text(TTR("Project Name:"));
pn->show();
project_name->show();
popup_centered(Size2(500,145)*EDSCALE);
} else if (mode==MODE_INSTALL){
set_title(TTR("Install Project:")+" "+zip_title);
get_ok()->set_text(TTR("Install"));
pp->set_text(TTR("Project Path:"));
pn->hide();
project_name->hide();
popup_centered(Size2(500,125)*EDSCALE);
}
project_path->grab_focus();
_test_path();
}