Codebase list mozc / 348bc43
Set Qt::WindowCloseButtonHint The lack of Qt::WindowCloseButtonHint had not been obvious until we switched to Qt 5, where the close icon on the dialog frame does not work because of that. Fix #400. BUG=#400 TEST=Manually on Qt 4.8.7 (Win), Qt 5.6.2 (Win), Qt 5.2.1 (Ubuntu 14.04) REF_BUG=33255809 REF_CL=140697910 REF_TIME=2016-11-30T23:53:06-08:00 REF_TIME_RAW=1480578786 -0800 Yohei Yukawa 7 years ago
11 changed file(s) with 20 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
2929
3030 MAJOR=2
3131 MINOR=19
32 BUILD=2665
32 BUILD=2666
3333 REVISION=102
3434 # This version represents the version of Mozc IME engine (converter, predictor,
3535 # etc.). This version info is included both in the Mozc server and in the Mozc
7878 : QDialog(parent),
7979 callback_(NULL) {
8080 setupUi(this);
81 setWindowFlags(Qt::WindowSystemMenuHint);
81 setWindowFlags(Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint);
8282 setWindowModality(Qt::NonModal);
8383 QPalette window_palette;
8484 window_palette.setColor(QPalette::Window, QColor(255, 255, 255));
4545 AdministrationDialog::AdministrationDialog() {
4646 setupUi(this);
4747 setWindowFlags(Qt::WindowSystemMenuHint |
48 Qt::WindowCloseButtonHint |
4849 Qt::MSWindowsFixedSizeDialogHint |
4950 Qt::WindowStaysOnTopHint);
5051 setWindowModality(Qt::NonModal);
8282 mozc::gui::WindowsSelectionHandler callback;
8383 mozc::gui::SelectionHandler::SetSelectionCallback(&callback);
8484
85 window->setWindowFlags(Qt::WindowSystemMenuHint);
85 window->setWindowFlags(Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint);
8686
8787 // Set Top-Most bit:
8888 // Use SWP_NOACTIVATE so that the GUI window will not get focus from the
9494 initial_use_keyboard_to_change_preedit_method_(false),
9595 initial_use_mode_indicator_(true) {
9696 setupUi(this);
97 setWindowFlags(Qt::WindowSystemMenuHint);
97 setWindowFlags(Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint);
9898 setWindowModality(Qt::NonModal);
9999
100100 #ifdef OS_WIN
7979 column_size_(column_size) {
8080 setupUi(this);
8181 editorTableWidget->setAlternatingRowColors(true);
82 setWindowFlags(Qt::WindowSystemMenuHint | Qt::Tool);
82 setWindowFlags(Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint |
83 Qt::Tool);
8384 editorTableWidget->setColumnCount(column_size_);
8485
8586 CHECK_GT(column_size_, 0);
515515 KeyBindingEditor::KeyBindingEditor(QWidget *parent, QWidget *trigger_parent)
516516 : QDialog(parent), trigger_parent_(trigger_parent) {
517517 setupUi(this);
518 #ifdef OS_LINUX
518 #if defined(OS_LINUX)
519519 // Workaround for the issue https://github.com/google/mozc/issues/9
520520 // Seems that even after clicking the button for the keybinding dialog,
521521 // the edit is not raised. This might be a bug of setFocusProxy.
522 setWindowFlags(Qt::WindowSystemMenuHint | Qt::Tool |
523 Qt::WindowStaysOnTopHint);
522 setWindowFlags(Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint |
523 Qt::Tool | Qt::WindowStaysOnTopHint);
524524 #else
525 setWindowFlags(Qt::WindowSystemMenuHint | Qt::Tool);
525 setWindowFlags(Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint |
526 Qt::Tool);
526527 #endif
527528
528529 QPushButton *ok_button =
103103 QProgressDialog *progress =
104104 new QProgressDialog(message, "", 0, size, parent);
105105 CHECK(progress);
106 progress->setWindowFlags(Qt::Window | Qt::CustomizeWindowHint);
106 progress->setWindowFlags(Qt::Window |
107 Qt::CustomizeWindowHint |
108 Qt::WindowCloseButtonHint);
107109 progress->setWindowModality(Qt::WindowModal);
108110 // This cancel button is invisible to users.
109111 // We don't accept any cancel operation
5151 : setuputil_(new SetupUtil()) {
5252 setupUi(this);
5353 setWindowFlags(Qt::WindowSystemMenuHint |
54 Qt::WindowCloseButtonHint |
5455 Qt::MSWindowsFixedSizeDialogHint |
5556 Qt::WindowStaysOnTopHint);
5657 setWindowModality(Qt::NonModal);
5252 SetDefaultDialog::SetDefaultDialog() {
5353 setupUi(this);
5454 setWindowFlags(Qt::WindowSystemMenuHint |
55 Qt::WindowCloseButtonHint |
5556 Qt::MSWindowsFixedSizeDialogHint |
5657 Qt::WindowStaysOnTopHint);
5758 setWindowModality(Qt::NonModal);
111111 window_title_(tr("Mozc")),
112112 pos_list_provider_(new POSListProvider()) {
113113 setupUi(this);
114 setWindowFlags(Qt::WindowSystemMenuHint | Qt::WindowStaysOnTopHint);
114 setWindowFlags(Qt::WindowSystemMenuHint |
115 Qt::WindowCloseButtonHint |
116 Qt::WindowStaysOnTopHint);
115117 setWindowModality(Qt::NonModal);
116118
117119 ReadinglineEdit->setMaxLength(kMaxEditLength);